open-notebook icon indicating copy to clipboard operation
open-notebook copied to clipboard

[Bug]: Waiting too long to Connect to API Server

Open LimKim opened this issue 4 months ago • 1 comments

What did you do when it broke?

  1. I started Docker compose up
  2. Visit the homepage
  3. Display 'Unable to Connect to API Server'
  4. Wait for a period of time, refresh again, the system is normal

How did it break?

services: open_notebook: image: lfnovo/open_notebook:v1-latest-single ports: - "48502:8502" - "45055:5055" environment: - OPENAI_COMPATIBLE_BASE_URL=http://172.10.128.1:11112/v1 - OPENAI_COMPATIBLE_API_KEY=local - API_URL=http://192.168.3.191:45055 - OPENAI_COMPATIBLE_BASE_URL_EMBEDDING=http://wrapper:8000/v1 # 数据库配置 - SURREAL_URL=ws://localhost:8000/rpc - SURREAL_USER=root - SURREAL_PASSWORD=root - SURREAL_NAMESPACE=open_notebook - SURREAL_DATABASE=production volumes: - ./notebook_data:/app/data - ./surreal_data:/mydata restart: always

here is my docker-compose.yml,when I visit http://192.168.3.191:48502/ The error message is' Unable to Connect to API Server

Image

But if I continue to wait, after about 5-10 minutes, I will be able to access it normally. Does the API server need to be initialized for too long?

And when I look at Docker's logs, as shown in the following figure, there will be a huge amount of similar logs Image

Logs or Screenshots

No response

Open Notebook Version

v1-latest (Docker)

Environment

No response

Additional Context

No response

Contribution

  • [ ] I am a developer and would like to work on fixing this issue (pending maintainer approval)

LimKim avatar Dec 10 '25 10:12 LimKim

same

chillizex avatar Dec 11 '25 00:12 chillizex