chatbi启动cpu服务codeserver起不来
更新时间: 2024-12-19 16:29:23
阅读 14
背景
在升级chatbi v1.19.0版本的过程中,启动cpu服务会报错
解决方案
原因是v1.19.0打的包有问题,full_stack_cpu.yaml有问题。导致codeserver起不来,报错如下:
原先的yaml配置如下
这个配置和最新的镜像不兼容,需要更改文件配置如下:
version: '3.7'
services:
codeserver:
image: localhost:5000/yddocker/codeserver:master-2024-10-17-18-21-26-cc60be
restart: always
ports:
- "7080:8080"
environment:
SQL_URL: "http://gensql_app:8501/inference"
SQL_ONLY_URL: "http://gensql_app:8501/inference"
FAQ_BASE_URL: "http://robot-base-interface:8080"
COMPRESS_URL: "http://gensql_app:8501/compress_table"
CHOOSE_URL: "http://gensql_app:8501/choose_table"
SQL_POST_URL: "http://gensql_app:8501/post_process_sql"
healthcheck:
test: "curl -f http://localhost:8080/hello || exit 1"
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
networks:
- monitor
gensql_app:
image: localhost:5000/yddocker/nl2sql:master-2024-10-17-15-41-46-c65155
restart: always
deploy:
resources:
limits:
cpus: '4'
memory: '6000M'
reservations:
cpus: '4'
memory: '6000M'
environment:
TGI_HOST: "gensql_tgi"
TGI_PORT: 8080
CHECK_ALL_URL: http://license-auth:8080/auth/verify
BASE_URL_OF_FAQ: "http://robot-base-interface:8080"
BASE_URL_OF_COMPRESS: "http://nezha:8000/inference"
NL2SQL_URL: "http://gensql_tgi:8080/v1"
#GENERAL_URL: "http://10.196.189.16:8080/v1" # 通用大模型地址
volumes:
- ../models/gen_sql_0910_v1.19_hf_v2:/model
- ../gen_sql/app-enc/code.zip:/workspace/code.zip
networks:
- monitor
networks:
monitor:
external: true
name: youdata_youdata
更改完之后再次启动服务就不会报错了。
文档反馈
以上内容对您是否有帮助?