# It doesn't work for kuberay set a working\_dir to a local zip file

**URL:** <https://discuss.ray.io/t/it-doesnt-work-for-kuberay-set-a-working-dir-to-a-local-zip-file/11830>\
**Category:** Kubernetes\
**Created:** [August 17, 2023, 10:31am UTC](https://discuss.ray.io/t/it-doesnt-work-for-kuberay-set-a-working-dir-to-a-local-zip-file/11830 "2023-08-17T10:31:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaolin](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chaolin](https://discuss.ray.io/u/chaolin)\
**Post date:** [August 17, 2023, 10:31am UTC](https://discuss.ray.io/t/it-doesnt-work-for-kuberay-set-a-working-dir-to-a-local-zip-file/11830/1 "2023-08-17T10:31:44Z")

</div>

It is work, when I run the sample config of kuberay as following file:

[https://github.com/ray-project/kuberay/blob/release-0.5/ray-operator/config/samples/ray\_v1alpha1\_rayservice.yaml](https://github.com/ray-project/kuberay/blob/release-0.5/ray-operator/config/samples/ray_v1alpha1_rayservice.yaml)

But when I change the value of **working\_dir** to a local file path (the file is download by above link):

```auto
working_dir: "file:///home/k8s/lin-test-ray/test_dag-41d09119cbdf8450599f993f51318e9e27c59098.zip"
or
working_dir: "file:/home/k8s/lin-test-ray/test_dag-41d09119cbdf8450599f993f51318e9e27c59098.zip"

```

The service has something wrong, and output of **kubectl describe** are:

```auto
Status:
  Active Service Status:
    App Status:
    Dashboard Status:
    Ray Cluster Status:
      Available Worker Replicas: 1
      Desired Worker Replicas: 1
      Endpoints:
        Client: 10001
        Dashboard: 8265
        Dashboard - Agent: 52365
        Gcs - Server: 6379
        Metrics: 8080
        Serve: 8000
      Head:
        Pod IP: 172.20.83.92
        Service IP: 10.96.197.164
      Last Update Time: 2023-08-17T10:07:23Z
      Max Worker Replicas: 5
      Min Worker Replicas: 1
      Observed Generation: 1
      State: ready
  Observed Generation: 1
  Pending Service Status:
    App Status:
      Health Last Update Time: 2023-08-17T10:07:29Z
      Last Update Time: 2023-08-17T10:08:26Z
      Status: DEPLOYING
    Dashboard Status:
      Health Last Update Time: 2023-08-17T10:08:26Z
      Is Healthy: true
      Last Update Time: 2023-08-17T10:08:26Z
    Ray Cluster Name: rayservice-sample-raycluster-xrt2z
    Ray Cluster Status:
      Head:
  Service Status: WaitForServeDeploymentReady

Events:
  Type Reason Age From Message
  ---- ------ ---- ---- -------
  Normal WaitForDashboard 6m32s (x2 over 6m33s) rayservice-controller Service "rayservice-sample-raycluster-prgjs-dashboard-svc" not found
  Normal WaitForServeDeploymentReady 6m25s (x7 over 6m31s) rayservice-controller Put "http://rayservice-sample-raycluster-prgjs-dashboard-svc.default.svc.cluster.local:52365/api/serve/deployments/": dial tcp 10.96.32.70:52365: connect: connection refused
  Normal ServiceNotReady 6m7s (x8 over 6m21s) rayservice-controller The service is not ready yet. Controller will perform a round of actions in 2s.
  Normal SubmittedServeDeployment 92s (x143 over 6m21s) rayservice-controller Controller sent API request to update Serve deployments on cluster rayservice-sample-raycluster-prgjs

```

What Happen? Can I use the local zip file?  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![chaolin](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chaolin](https://discuss.ray.io/u/chaolin)\
**Post date:** [August 18, 2023, 7:45am UTC](https://discuss.ray.io/t/it-doesnt-work-for-kuberay-set-a-working-dir-to-a-local-zip-file/11830/2 "2023-08-18T07:45:58Z")

</div>

I solved the problem as:

1. mount the zip file to all containers;

2. the value format of working\_dir is

```auto
working_dir: "file:///tmp/data/test_model.zip"

```
