DB-GPT icon indicating copy to clipboard operation
DB-GPT copied to clipboard

[Bug] [server activate] 启动server 出现403 error

Open kkatrina28 opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

  • [ ] Chat Data
  • [ ] Chat Excel
  • [ ] Chat DB
  • [ ] Chat Knowledge
  • [X] Model Management
  • [ ] Dashboard
  • [ ] Plugins

Installation Information

Device information

device: mac ventura 13.5

Models information

llm: azure openai

What happened

i change my env to proxy and fill with openai credentials. but when i run the server, i encountered the error 403.

ERROR: [Errno 48] error while attempting to bind on address ('0.0.0.0', 5000): address already in use INFO: Waiting for application shutdown. INFO [pilot.model.cluster.worker.manager] Stop all workers INFO [pilot.model.cluster.worker.manager] Apply req: None, apply_func: <function LocalWorkerManager._stop_all_worker.._stop_worker at 0x7ff5e2196290> INFO [pilot.model.cluster.worker.manager] Apply to all workers INFO [pilot.model.loader] Load proxyllm WARNI [pilot.model.cluster.worker.manager] Stop worker, ignored exception from deregister_func: Remote request error, error code: 403, error msg: WARNI [pilot.model.cluster.worker.manager] Stop worker, ignored exception from deregister_func: Remote request error, error code: 403, error msg: ERROR [pilot.model.cluster.worker.manager] Error starting worker manager: model proxyllm@proxy(10.181.17.130:5000) start failed, Remote request error, error code: 403, error msg:

What you expected to happen

  1. not sure which part of my settings is incorrect, my friend used the same .env file and it works perfectly fine.
  2. is it the vpn problem?

How to reproduce

my .env

LLM_MODEL=proxyllm MODEL_SERVER=http://127.0.0.1:8000 PROXY_API_TYPE = azure PROXY_API_BASE = xxxx PROXY_API_VERSION = xxx PROXY_API_KEY = xxxx PROXY_SERVER_URL=https://api.openai.com/v1/chat/completions

Additional context

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

kkatrina28 avatar Oct 25 '23 09:10 kkatrina28

error while attempting to bind on address ('0.0.0.0', 5000): address already in use

error while attempting to bind on address ('0.0.0.0', 5000): address already in use

maybe you 5000 port you have already binded

Aries-ckt avatar Oct 25 '23 15:10 Aries-ckt

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] avatar Dec 19 '23 21:12 github-actions[bot]

I have the same issue.

eastlunar avatar Jan 02 '24 08:01 eastlunar

5000端口是MacOS默认使用的端口

可以看这个帖子去修改 https://forums.developer.apple.com/forums/thread/682332

johnmai-dev avatar Jan 19 '24 09:01 johnmai-dev

相同问题,搞不懂为什么用默认5000端口,应该避开常用端口

Toketec avatar Jan 30 '24 10:01 Toketec

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] avatar Feb 29 '24 21:02 github-actions[bot]

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.

github-actions[bot] avatar Mar 08 '24 21:03 github-actions[bot]