[Bug]: Waiting too long to Connect to API Server
What did you do when it broke?
- I started Docker compose up
- Visit the homepage
- Display 'Unable to Connect to API Server'
- 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
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
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)
same