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
2.94k stars 455 forks source link

用源码部署后bin/dev启动,然后页面显示无法访问 #576

Open zhaoxinhua opened 1 month ago

zhaoxinhua commented 1 month ago

root@hcss-ecs-c9de:/www/wwwroot/opencsg/CSGHub-main# bin/dev 16:31:15 web.1 | started with pid 15760 16:31:15 css.1 | started with pid 15761 16:31:15 js.1 | started with pid 15762 16:31:15 js.1 | yarn run v1.22.22 16:31:15 js.1 | $ node build.dev.js 16:31:16 js.1 | Watching... 16:31:17 web.1 | => Booting Puma 16:31:17 web.1 | => Rails 7.0.8 application starting in development 16:31:17 web.1 | => Run bin/rails server --help for more startup options 16:31:17 web.1 | Puma starting in single mode... 16:31:17 web.1 | Puma version: 5.6.7 (ruby 3.2.2-p53) ("Birdie's Version") 16:31:17 web.1 | Min threads: 5 16:31:17 web.1 | Max threads: 5 16:31:17 web.1 | Environment: development 16:31:17 web.1 | PID: 15760 16:31:17 web.1 | Listening on http://0.0.0.0:3000 16:31:17 web.1 | Use Ctrl-C to stop 16:31:19 js.1 | ▲ [WARNING]

cannot be child of

, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality. 16:31:19 js.1 | 22 |

16:31:19 js.1 | 23 |

16:31:19 js.1 | 24 |

16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 25 | {{ private ? $t("all.private") : $t("all.public") }} 16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 26 |
16:31:19 js.1 | | ^^^^^^^^^^^^^^ [plugin vue] 16:31:19 js.1 | 16:31:19 js.1 | app/javascript/components/endpoints/EndpointPage.vue:1:142: 16:31:19 js.1 | 1 │ ...der } from "/www/wwwroot/opencsg/CSGHub-main/app/javascript/comp... 16:31:19 js.1 | ╵ ~~~~~~~~~~~~~ 16:31:19 js.1 | 16:31:19 js.1 | ▲ [WARNING]
cannot be child of

, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality. 16:31:19 js.1 | 25 | {{ private ? $t("all.private") : $t("all.public") }} 16:31:19 js.1 | 26 |

16:31:19 js.1 | 27 |
16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 28 | {{ $t('endpoints.detail.currentEndpointReplica')}} 16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 29 | : 16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 30 | {{ endpointReplica }} 16:31:19 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:19 js.1 | 31 |
16:31:19 js.1 | | ^^^^^^^^^^^^^^ [plugin vue] 16:31:19 js.1 | 16:31:19 js.1 | app/javascript/components/endpoints/EndpointPage.vue:1:142: 16:31:19 js.1 | 1 │ ...der } from "/www/wwwroot/opencsg/CSGHub-main/app/javascript/comp... 16:31:19 js.1 | ╵ ~~~~~~~~~~~~~ 16:31:19 js.1 | 16:31:19 css.1 | Browserslist: caniuse-lite is outdated. Please run: 16:31:19 css.1 | npx update-browserslist-db@latest 16:31:19 css.1 | Why you should do it regularly: https://github.com/browserslist/update-db#readme 16:31:20 css.1 | 16:31:20 css.1 | Rebuilding... 16:31:21 css.1 | 16:31:21 css.1 | Done in 1804ms.

这里启动成功了,但是前端每个页面都报错 根据上面提示 更新browserslist image

然后重新执行bin/dev image

依旧提示这个 16:34:39 js.1 | ▲ [WARNING]

cannot be child of

, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality. 16:34:39 js.1 | 22 |

16:34:39 js.1 | 23 |

16:34:39 js.1 | 24 |

16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 25 | {{ private ? $t("all.private") : $t("all.public") }} 16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 26 |
16:34:39 js.1 | | ^^^^^^^^^^^^^^ [plugin vue] 16:34:39 js.1 | 16:34:39 js.1 | app/javascript/components/endpoints/EndpointPage.vue:1:142: 16:34:39 js.1 | 1 │ ...der } from "/www/wwwroot/opencsg/CSGHub-main/app/javascript/comp... 16:34:39 js.1 | ? ~~~~~~~~~~~~~ 16:34:39 js.1 | 16:34:39 js.1 | ▲ [WARNING]
cannot be child of

, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality. 16:34:39 js.1 | 25 | {{ private ? $t("all.private") : $t("all.public") }} 16:34:39 js.1 | 26 |

16:34:39 js.1 | 27 |
16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 28 | {{ $t('endpoints.detail.currentEndpointReplica')}} 16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 29 | : 16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 30 | {{ endpointReplica }} 16:34:39 js.1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:39 js.1 | 31 |
16:34:39 js.1 | | ^^^^^^^^^^^^^^ [plugin vue] 16:34:39 js.1 | 16:34:39 js.1 | app/javascript/components/endpoints/EndpointPage.vue:1:142: 16:34:39 js.1 | 1 │ ...der } from "/www/wwwroot/opencsg/CSGHub-main/app/javascript/comp... 16:34:39 js.1 | ? ~~~~~~~~~~~~~ 16:34:39 js.1 | 16:34:39 css.1 | Browserslist: caniuse-lite is outdated. Please run: 16:34:39 css.1 | npx update-browserslist-db@latest 16:34:39 css.1 | Why you should do it regularly: https://github.com/browserslist/update-db#readme 16:34:40 css.1 | 16:34:40 css.1 | Rebuilding... 16:34:41 css.1 | 16:34:41 css.1 | Done in 1814ms.

image