Ollama: 502 Server Error: Bad Gateway for url: http://localhost:11434/api/chat Install without docker #631

Closed
opened 2025-11-11 14:27:51 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @peuportier on GitHub (Apr 11, 2024).

Bug Report

I get this message error : Ollama: 502 Server Error: Bad Gateway for URL: http://localhost:11434/api/chat

Description

My installation is without docker and was running very well. I close my computer and then reopen it. The problem happening

Bug Summary:
I have installed it on My Mac M1 - 14.4.1 Somona - open-WebUI without the use of docker. By running the normal process described in your doc. Running it very well. Can get the model from Ollama and run the request. I shut down my computer. Restart it and always now get this problem.

Steps to Reproduce:
Just run "bash install.sh" from terminal
Go to localhost:8080
Login
Then select my model and ask a request. Get this message error

Expected Behavior:
Normally get the answer on the chat

Actual Behavior:
Get nothing and have a popup shows Ollama: 502 Server Error: Bad Gateway for url: http://localhost:11434/api/chat

Environment

  • Operating System: Mac OS Somona 14.4.1
  • Browser (if applicable): [e.g., Firefox 124.0.2 or safari 17.4.1]

Reproduction Details

Confirmation:

  • [x ] I have read and followed all the instructions provided in the README.md.
  • [ x] I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
[Include relevant Docker container logs, if applicable]

Screenshots (if applicable):
Screenshot 2024-04-11 at 23 25 12

Installation Method

git clone https://github.com/open-webui/open-webui.git
cd open-webui/

# Copying required .env file
cp -RPp .env.example .env

# Building Frontend Using Node
npm i
npm run build

# Serving Frontend with the Backend
cd ./backend
pip install -r requirements.txt -U
bash start.sh

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @peuportier on GitHub (Apr 11, 2024). # Bug Report I get this message error : Ollama: 502 Server Error: Bad Gateway for URL: http://localhost:11434/api/chat ## Description My installation is without docker and was running very well. I close my computer and then reopen it. The problem happening **Bug Summary:** I have installed it on My Mac M1 - 14.4.1 Somona - open-WebUI without the use of docker. By running the normal process described in your doc. Running it very well. Can get the model from Ollama and run the request. I shut down my computer. Restart it and always now get this problem. **Steps to Reproduce:** Just run "bash install.sh" from terminal Go to localhost:8080 Login Then select my model and ask a request. Get this message error **Expected Behavior:** Normally get the answer on the chat **Actual Behavior:** Get nothing and have a popup shows Ollama: 502 Server Error: Bad Gateway for url: http://localhost:11434/api/chat ## Environment - **Operating System:** Mac OS Somona 14.4.1 - **Browser (if applicable):** [e.g., Firefox 124.0.2 or safari 17.4.1] ## Reproduction Details **Confirmation:** - [x ] I have read and followed all the instructions provided in the README.md. - [ x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** [Include relevant Docker container logs, if applicable] **Screenshots (if applicable):** <img width="1440" alt="Screenshot 2024-04-11 at 23 25 12" src="https://github.com/open-webui/open-webui/assets/30169867/60373cf6-d0f4-4c57-b82f-1eb9a395abe9"> ## Installation Method ``` git clone https://github.com/open-webui/open-webui.git cd open-webui/ # Copying required .env file cp -RPp .env.example .env # Building Frontend Using Node npm i npm run build # Serving Frontend with the Backend cd ./backend pip install -r requirements.txt -U bash start.sh ``` ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#631