OpenCSGs / csghub

CSGHub is an open-source large model platform just like on-premise version of Hugging Face. You can easily manage models and datasets, deploy model applications and setup model finetune or inference jobs with user interface. CSGHub also provides Python SDK with full compatibility of hf sdk. Join us together to build a safer and more open platform⭐️
https://opencsg.com
3.01k stars 465 forks source link

nginx failed to start after run csghub-installer #776

Open Rader opened 4 days ago

Rader commented 4 days ago

Describe the bug nginx failed to start after run csghub-installer

Environment CSGHub Version: latest... OS: MacOS.. Hardware: 4c8G Launch: docker compose

To Reproduce Steps to reproduce the behavior:

  1. clone csghub-install
  2. follow the doc to run startup.sh after change .env
  3. check nginx container health

Expected behavior nginx start successfully

Screenshots

Additional context error log of nginx container:

/docker-entrypoint.sh: Configuration complete; ready for start up
nginx: [emerg] host not found in "_CSGHUB_DOMAINPORT" of the "listen" directive in /etc/nginx/nginx.conf:102
Rader commented 4 days ago

i found the startup.sh failed to execute some commands:

[2024-11-12 15:32:57] [NORM] 1.1 Replace server domain and port in nginx.conf for nginx.
./startup.sh: line 76: gsed: command not found
./startup.sh: line 76: gsed: command not found
[2024-11-12 15:32:57] [NORM] 1.2 Replace server domain and port in init_data.json for casdoor.
./startup.sh: line 76: gsed: command not found
./startup.sh: line 76: gsed: command not found
[2024-11-12 15:32:57] [NORM] 1.3 Replace knative gateway host and port in nginx.conf for proxy nginx.
./startup.sh: line 76: gsed: command not found
./startup.sh: line 76: gsed: command not found