# Error: Missing argument 'CLUSTER\_CONFIG\_FILE'. Ray GCP

**URL:** <https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153>\
**Category:** Ray Clusters\
**Created:** [July 8, 2024, 3:06pm UTC](https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153 "2024-07-08T15:06:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm-nab](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jm-nab/32/6289_2.png) [@jm-nab](https://discuss.ray.io/u/jm-nab)\
**Post date:** [July 8, 2024, 3:06pm UTC](https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153/1 "2024-07-08T15:06:38Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Is there an easy way to generate a CLUSTER\_CONFIG\_FILE from an existing cluster?

I looked at the documentation, and it is not clear to me because 1) its overwhelming 2) not sure which pieces are the bare minimum 3) i didn’t see any configs on the existing ray head node 4) the step by step guides didn’t make it very clear

[https://docs.ray.io/en/latest/cluster/vms/references/ray-cluster-configuration.html#cluster-config](https://docs.ray.io/en/latest/cluster/vms/references/ray-cluster-configuration.html#cluster-config)

```auto
jm/add-ray-raven-tf:$ ray up ./ray-deploy-gcp.yaml
Cluster: minimal

2024-07-08 15:17:08,952	INFO util.py:382 -- setting max workers for head node type to 0
2024-07-08 15:17:08,952	INFO util.py:386 -- setting max workers for ray_worker_small to 2
Checking GCP environment settings
> /home/jm/repos/testray/vertexai_loaders/venv_311/lib/python3.11/site-packages/ray/autoscaler/_private/gcp/config.py(654)_list_subnets()
-> return response["items"]
(Pdb) response
{'kind': 'compute#subnetworkList', 'id': 'projects/genai-qa-1234/regions/us-west1/subnetworks', 'selfLink': 'https://www.googleapis.com/compute/v1/projects/genai-qa-1234/regions/us-west1/subnetworks'}
(Pdb) dir(response)
[' __class__', ' __class_getitem__', ' __contains__', ' __delattr__', ' __delitem__', ' __dir__', ' __doc__', ' __eq__', ' __format__', ' __ge__', ' __getattribute__', ' __getitem__', ' __getstate__', ' __gt__', ' __hash__', ' __init__', ' __init_subclass__', ' __ior__', ' __iter__', ' __le__', ' __len__', ' __lt__', ' __ne__', ' __new__', ' __or__', ' __reduce__', ' __reduce_ex__', ' __repr__', ' __reversed__', ' __ror__', ' __setattr__', ' __setitem__', ' __sizeof__', ' __str__', ' __subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']
(Pdb) response.items
<built-in method items of dict object at 0xffffa5034500>
(Pdb) response.items()
dict_items([('kind', 'compute#subnetworkList'), ('id', 'projects/genai-qa-1234/regions/us-west1/subnetworks'), ('selfLink', 'https://www.googleapis.com/compute/v1/projects/genai-qa-1234/regions/us-west1/subnetworks')])
(Pdb)

```

Here are more details: [google cloud platform - Error: Missing argument 'CLUSTER\_CONFIG\_FILE'. Ray GCP - Stack Overflow](https://stackoverflow.com/questions/78721592/error-missing-argument-cluster-config-file-ray-gcp)

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [July 8, 2024, 4:18pm UTC](https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153/2 "2024-07-08T16:18:00Z")

</div>

There is not - this is actually a good idea as a future feature request. Can you create one in Github and link it back here? @jm-nab

---

<div class="post-metadata">

**Author:** ![jm-nab](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jm-nab/32/6289_2.png) [@jm-nab](https://discuss.ray.io/u/jm-nab)\
**Post date:** [July 9, 2024, 3:01pm UTC](https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153/3 "2024-07-09T15:01:20Z")

</div>

> <https://github.com/ray-project/ray/issues/14998>
>
> \### Describe your feature request
> 
> For feature requests or questions, post on …our Discussion page instead: https://discuss.ray.io/
> 
> When you first call \`ray.init()\`, you get a dictionary of cluster information including head node IP, etc:
> 
> \`\`\`
> \>\>\> ray.init("auto")
> 2021-03-29 13:56:08,644 INFO worker.py:653 -- Connecting to existing Ray cluster at address: 172.31.61.153:6379
> {'node\_ip\_address': '172.31.61.153', 'raylet\_ip\_address': '172.31.61.153', 'redis\_address': '172.31.61.153:6379', 'object\_store\_address': '/tmp/ray/session\_2021-03-29\_13-56-02\_184304\_17642/sockets/plasma\_store', 'raylet\_socket\_name': '/tmp/ray/session\_2021-03-29\_13-56-02\_184304\_17642/sockets/raylet', 'webui\_url': '127.0.0.1:8265', 'session\_dir': '/tmp/ray/session\_2021-03-29\_13-56-02\_184304\_17642', 'metrics\_export\_port': 8080, 'node\_id': '06873d5ae668b9bf8af405b7d32821c78dc56282aa71daee6adfa335'}
> \`\`\`
> 
> However there is no way to get this dictionary \_after\_ initialization using public API. Some information, e.g. the head node address, can be obtained via private API like \`ray.worker.\_global\_node.address\`, but it would be great if there is a public API for it.
> 
> cc @rkooo567 @edoakes @richardliaw

---

<div class="post-metadata">

**Author:** ![jjyao](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jjyao/32/1799_2.png) [@jjyao](https://discuss.ray.io/u/jjyao)\
**Post date:** [July 22, 2024, 9:29pm UTC](https://discuss.ray.io/t/error-missing-argument-cluster-config-file-ray-gcp/15153/4 "2024-07-22T21:29:29Z")

</div>

I tried `ray up cluster.yaml` with the content

```auto
auth:
  ssh_user: ubuntu
cluster_name: minimal
provider:
  availability_zone: us-west1-a
  project_id: genai-qa-1234
  region: us-west1
  type: gcp

```

and it worked for me.
