Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

serve status fails on the head pod after model is deployed #141

Open
viirya opened this issue Mar 11, 2024 · 0 comments
Open

serve status fails on the head pod after model is deployed #141

viirya opened this issue Mar 11, 2024 · 0 comments

Comments

@viirya
Copy link

viirya commented Mar 11, 2024

I've deployed rayllm on K8s with amazon--LightGPT model. I can query it from local using curl.

But when I go to run serve status on the head pod, I got the following error:

serve config
Traceback (most recent call last):
  File "/home/ray/anaconda3/bin/serve", line 8, in <module>
    sys.exit(cli())
  File "/home/ray/anaconda3/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/ray/anaconda3/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ray/anaconda3/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ray/anaconda3/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.9/site-packages/ray/serve/scripts.py", line 554, in config
    **ServeSubmissionClient(address).get_serve_details()
  File "/home/ray/anaconda3/lib/python3.9/site-packages/ray/dashboard/modules/serve/sdk.py", line 61, in __init__
    self._check_connection_and_version_with_url(
  File "/home/ray/anaconda3/lib/python3.9/site-packages/ray/dashboard/modules/dashboard_sdk.py", line 267, in _check_connection_and_version_with_url
    r.raise_for_status()
  File "/home/ray/anaconda3/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://localhost:8265/api/ray/version

However, the service URL is working when I manually get something from it:

wget http://localhost:8265/api/ray/version
--2024-03-11 16:01:42--  http://localhost:8265/api/ray/version
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8265... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8265... connected.
HTTP request sent, awaiting response... 200 OK

Is anything I miss?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant