Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [core] 最新main版本用DB-GPT/docker/base /build_image.sh编译docker镜像后无法运行,提示clickhouse connect无法找到 #969

Closed
10 of 15 tasks
Plus-xu opened this issue Dec 23, 2023 · 2 comments
Labels
bug Something isn't working Waiting for reply

Comments

@Plus-xu
Copy link

Plus-xu commented Dec 23, 2023

Search before asking

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

Operating system information

Linux

Python version information

3.10

DB-GPT version

main
12234ae

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

Distro : Ubuntu 22.04.3 LTS aarch64
Processor : Neoverse-N1

Models information

LLM_MODEL=proxyllm
EMBEDDING_MODEL=text2vec
编译模式:bash docker/base/build_image.sh -b ubuntu:22.04 -i https://pypi.tuna.tsinghua.edu.cn/simple --language zh --install-mode openai

What happened

db-gpt-db-1 | [Entrypoint] MySQL Docker Image 8.0.32-1.2.11-server
db-gpt-db-1 | [Entrypoint] Initializing database
db-gpt-db-1 | 2023-12-23T07:34:01.748575Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
db-gpt-db-1 | 2023-12-23T07:34:01.748681Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
db-gpt-db-1 | 2023-12-23T07:34:01.748702Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.32) initializing of server in progress as process 17
db-gpt-db-1 | 2023-12-23T07:34:01.763440Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db-gpt-db-1 | 2023-12-23T07:34:02.379282Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db-gpt-webserver-1 | 2023-12-23 15:34:04 df036edfe866 matplotlib.font_manager[1] INFO generated new fontManager
db-gpt-db-1 | 2023-12-23T07:34:04.472629Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
db-gpt-webserver-1 |
db-gpt-webserver-1 |
db-gpt-webserver-1 | =========================== WebServerParameters ===========================
db-gpt-webserver-1 |
db-gpt-webserver-1 | host: 0.0.0.0
db-gpt-webserver-1 | port: 5000
db-gpt-webserver-1 | daemon: False
db-gpt-webserver-1 | controller_addr: None
db-gpt-webserver-1 | model_name: proxyllm
db-gpt-webserver-1 | share: False
db-gpt-webserver-1 | remote_embedding: False
db-gpt-webserver-1 | log_level: INFO
db-gpt-webserver-1 | light: False
db-gpt-webserver-1 | log_file: dbgpt_webserver.log
db-gpt-webserver-1 | tracer_file: dbgpt_webserver_tracer.jsonl
db-gpt-webserver-1 | tracer_storage_cls: None
db-gpt-webserver-1 | disable_alembic_upgrade: False
db-gpt-webserver-1 |
db-gpt-webserver-1 | ======================================================================
db-gpt-webserver-1 |
db-gpt-webserver-1 |
db-gpt-webserver-1 | Traceback (most recent call last):
db-gpt-webserver-1 | File "/app/dbgpt/app/dbgpt_server.py", line 233, in
db-gpt-webserver-1 | run_webserver()
db-gpt-webserver-1 | File "/app/dbgpt/app/dbgpt_server.py", line 228, in run_webserver
db-gpt-webserver-1 | param = initialize_app(param)
db-gpt-webserver-1 | File "/app/dbgpt/app/dbgpt_server.py", line 153, in initialize_app
db-gpt-webserver-1 | model_start_listener = _create_model_start_listener(system_app)
db-gpt-webserver-1 | File "/app/dbgpt/app/base.py", line 75, in _create_model_start_listener
db-gpt-webserver-1 | from dbgpt.datasource.manages.connection_manager import ConnectManager
db-gpt-webserver-1 | File "/app/dbgpt/datasource/manages/connection_manager.py", line 15, in
db-gpt-webserver-1 | from dbgpt.datasource.rdbms.conn_clickhouse import ClickhouseConnect
db-gpt-webserver-1 | File "/app/dbgpt/datasource/rdbms/conn_clickhouse.py", line 3, in
db-gpt-webserver-1 | import clickhouse_connect
db-gpt-webserver-1 | ModuleNotFoundError: No module named 'clickhouse_connect'
db-gpt-webserver-1 exited with code 0

What you expected to happen

修复dockerfile

How to reproduce

最新main版本用DB-GPT/docker/base /build_image.sh编译镜像
编译命令:bash docker/base/build_image.sh -b ubuntu:22.04 -i https://pypi.tuna.tsinghua.edu.cn/simple --language zh --install-mode openai

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@Plus-xu Plus-xu added bug Something isn't working Waiting for reply labels Dec 23, 2023
@fangyinc
Copy link
Collaborator

Fixed in #967
Please pull latest code and try again.

@Plus-xu
Copy link
Author

Plus-xu commented Dec 23, 2023

Fixed in #967 Please pull latest code and try again.
运行正常,谢谢

@Plus-xu Plus-xu closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

2 participants