[GH-ISSUE #1724] 503 Server Error #979

Closed
opened 2026-04-12 10:40:22 -05:00 by GiteaMirror · 9 comments
Owner

Originally created by @gonnaK on GitHub (Dec 27, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1724

the ollama sever is running. When I try to use the api I get an error.
image
image

Originally created by @gonnaK on GitHub (Dec 27, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1724 the ollama sever is running. When I try to use the api I get an error. <img width="692" alt="image" src="https://github.com/jmorganca/ollama/assets/56569171/51251b5b-e206-4b6f-8cbb-41c9fbdb4dde"> <img width="790" alt="image" src="https://github.com/jmorganca/ollama/assets/56569171/ce2d9aea-2a82-419c-a37d-8fec5ca53f25">
Author
Owner

@technovangelist commented on GitHub (Dec 27, 2023):

Hi @gonnaK , thanks for submitting this issue. Just want to make sure you are on the same machine, correct? What happens if you make the same call using curl on the command line? This will help determine where the issue actually is.

<!-- gh-comment-id:1869963471 --> @technovangelist commented on GitHub (Dec 27, 2023): Hi @gonnaK , thanks for submitting this issue. Just want to make sure you are on the same machine, correct? What happens if you make the same call using curl on the command line? This will help determine where the issue actually is.
Author
Owner

@gonnaK commented on GitHub (Dec 27, 2023):

Hi @gonnaK , thanks for submitting this issue. Just want to make sure you are on the same machine, correct? What happens if you make the same call using curl on the command line? This will help determine where the issue actually is.

Yes,on the same machine. If i use curl on the command line,it will work normally.
image

<!-- gh-comment-id:1869987776 --> @gonnaK commented on GitHub (Dec 27, 2023): > Hi @gonnaK , thanks for submitting this issue. Just want to make sure you are on the same machine, correct? What happens if you make the same call using curl on the command line? This will help determine where the issue actually is. Yes,on the same machine. If i use curl on the command line,it will work normally. <img width="1155" alt="image" src="https://github.com/jmorganca/ollama/assets/56569171/89c5a64a-89ed-4e7e-8b25-f6203ae57505">
Author
Owner

@technovangelist commented on GitHub (Dec 28, 2023):

That is interesting. What sdk are you using? I can take a closer look.

<!-- gh-comment-id:1871500617 --> @technovangelist commented on GitHub (Dec 28, 2023): That is interesting. What sdk are you using? I can take a closer look.
Author
Owner

@gonnaK commented on GitHub (Jan 2, 2024):

That is interesting. What sdk are you using? I can take a closer look.

ollama version is 0.1.17
image

<!-- gh-comment-id:1873659809 --> @gonnaK commented on GitHub (Jan 2, 2024): > That is interesting. What sdk are you using? I can take a closer look. ollama version is 0.1.17 <img width="626" alt="image" src="https://github.com/jmorganca/ollama/assets/56569171/cd7e31a2-ccc6-4d39-9121-97625be46d21">
Author
Owner

@BruceMacD commented on GitHub (Jan 2, 2024):

It looks like this could be running in a Jupiter notebook, where are you making this call from (ex: Google Colab)?

<!-- gh-comment-id:1874086003 --> @BruceMacD commented on GitHub (Jan 2, 2024): It looks like this could be running in a Jupiter notebook, where are you making this call from (ex: Google Colab)?
Author
Owner

@gonnaK commented on GitHub (Jan 3, 2024):

It looks like this could be running in a Jupiter notebook, where are you making this call from (ex: Google Colab)?

yes,I making this call from Jupiter notebook

<!-- gh-comment-id:1875161309 --> @gonnaK commented on GitHub (Jan 3, 2024): > It looks like this could be running in a Jupiter notebook, where are you making this call from (ex: Google Colab)? yes,I making this call from Jupiter notebook
Author
Owner

@BruceMacD commented on GitHub (Jan 3, 2024):

Im suspecting one of two possibilities here:

  • Ensure that the Jupyter server is running on the same machine where you're trying to access localhost. If you're running Jupyter on a remote server but trying to access localhost, it won't work because localhost refers to the local machine where the browser is running, not the remote machine where Jupyter is hosted.
  • If you're running Jupyter inside a virtual environment (like a Docker container or a virtual machine), localhost might not point to the host machine you expect. In this case, you might need to configure network settings to allow access to services running on the host machine.
<!-- gh-comment-id:1875345774 --> @BruceMacD commented on GitHub (Jan 3, 2024): Im suspecting one of two possibilities here: - Ensure that the Jupyter server is running on the same machine where you're trying to access localhost. If you're running Jupyter on a remote server but trying to access localhost, it won't work because localhost refers to the local machine where the browser is running, not the remote machine where Jupyter is hosted. - If you're running Jupyter inside a virtual environment (like a Docker container or a virtual machine), localhost might not point to the host machine you expect. In this case, you might need to configure network settings to allow access to services running on the host machine.
Author
Owner

@gonnaK commented on GitHub (Jan 4, 2024):

Im suspecting one of two possibilities here:

  • Ensure that the Jupyter server is running on the same machine where you're trying to access localhost. If you're running Jupyter on a remote server but trying to access localhost, it won't work because localhost refers to the local machine where the browser is running, not the remote machine where Jupyter is hosted.
  • If you're running Jupyter inside a virtual environment (like a Docker container or a virtual machine), localhost might not point to the host machine you expect. In this case, you might need to configure network settings to allow access to services running on the host machine.

The Jupyter server is running on the same machine where you're trying to access localhost. I am not running Jupyter inside a virtual environment. I install Jupyter on my macos machine.

<!-- gh-comment-id:1876786988 --> @gonnaK commented on GitHub (Jan 4, 2024): > Im suspecting one of two possibilities here: > > * Ensure that the Jupyter server is running on the same machine where you're trying to access localhost. If you're running Jupyter on a remote server but trying to access localhost, it won't work because localhost refers to the local machine where the browser is running, not the remote machine where Jupyter is hosted. > * If you're running Jupyter inside a virtual environment (like a Docker container or a virtual machine), localhost might not point to the host machine you expect. In this case, you might need to configure network settings to allow access to services running on the host machine. The Jupyter server is running on the same machine where you're trying to access localhost. I am not running Jupyter inside a virtual environment. I install Jupyter on my macos machine.
Author
Owner

@jmorganca commented on GitHub (Feb 20, 2024):

Given curl works, this could be something with the client library you are using. Would it be possible to try the Ollama Python library? https://github.com/ollama/ollama-python

Let me know if you're still encountering this issue

<!-- gh-comment-id:1953349474 --> @jmorganca commented on GitHub (Feb 20, 2024): Given `curl` works, this could be something with the client library you are using. Would it be possible to try the Ollama Python library? https://github.com/ollama/ollama-python Let me know if you're still encountering this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#979