当前位置:   article > 正文

DB-GPT 阿里云部署记录【小白专用】

db-gpt

今天在阿里云服务器上部署了下DB-GPT

先引入依赖

  1. yum -y install git
  2. yum install git-lfs
  3. yum install g++
  4. yum install docker

再拉项目代码

git clone https://github.com/csunny/DB-GPT.git 

然后

  1. Last login: Sun Aug 13 16:21:29 2023 from 47.96.60.217
  2. [root@iZbp1ics75hlcsisqyvxaeZ ~]# cd
  3. [root@iZbp1ics75hlcsisqyvxaeZ ~]# ls
  4. auto_install  DB-GPT  NVIDIA_CUDA-11.4_Samples
  5. [root@iZbp1ics75hlcsisqyvxaeZ ~]# cd DB-GPT
  6. [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# LS
  7. -bash: LS: command not found
  8. [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# ls
  9. assets           docker              Dockerfile  examples  MANIFEST.in  plugins    README.zh.md      SECURITY.md  tests
  10. CONTRIBUTING.md  docker-compose.yml  docs        LICENSE   pilot        README.md  requirements.txt  setup.py     tools
  11. [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# mkdir models

遇到报错

mkdir命令找不到,那么就重启

  1. [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# ls
  2. assets           docker-compose.yml  examples     models   README.md         SECURITY.md  tools
  3. CONTRIBUTING.md  Dockerfile          LICENSE      pilot    README.zh.md      setup.py
  4. docker           docs                MANIFEST.in  plugins  requirements.txt  tests
  5. [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# cd models
  6. [root@iZbp1ics75hlcsisqyvxaeZ models]# ls
  7. [root@iZbp1ics75hlcsisqyvxaeZ models]# git clone https://huggingface.co/Tribbiani/vicuna-13b 
  8. Cloning into 'vicuna-13b'...
  9. fatal: unable to access 'https://huggingface.co/Tribbiani/vicuna-13b/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to huggingface.co:443 

发现原来是自己以前用过代理,这里取消代理就可以了

  1. [root@iZbp1ics75hlcsisqyvxaeZ models]# git config --global --unset http.proxy
  2. [root@iZbp1ics75hlcsisqyvxaeZ models]# git config --global --unset https.proxy

本地部署一下数据库

  1. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ? Please select an image: ▸ registry.access.redhat.com/mysql:latest registry.redhat.io/mysql:latest docker.io/library/mysql:latest
  2. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ✔ registry.access.redhat.com/mysql:latest Trying to pull registry.access.redhat.com/mysql:latest... Error: initializing source docker://registry.access.redhat.com/mysql:latest: reading manifest latest in registry.access.redhat.com/mysql: name unknown: Repo not found
  3.  cat /etc/passwd|awk -F ':' '{print $3,$4}'|sort
  4. [root@iZbp1ics75hlcsisqyvxaeZ ~]# cat /etc/group|awk -F ':' '{print $3}'|sort
  1. cat /etc/subuid [root@iZbp1ics75hlcsisqyvxaeZ ~]# cat /etc/subgid [root@iZbp1ics75hlcsisqyvxaeZ ~]# echo root:70000:80000 >> /etc/subuid [root@iZbp1ics75hlcsisqyvxaeZ ~]# echo root:70000:80000 >> /etc/subgid [root@iZbp1ics75hlcsisqyvxaeZ ~]# podman system migrate [root@iZbp1ics75hlcsisqyvxaeZ ~]# podman info
  2. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ✔ registry.access.redhat.com/mysql:latest Trying to pull registry.access.redhat.com/mysql:latest... Error: initializing source docker://registry.access.redhat.com/mysql:latest: reading manifest latest in registry.access.redhat.com/mysql: name unknown: Repo not found [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ✔ registry.redhat.io/mysql:latest Trying to pull registry.redhat.io/mysql:latest... Error: initializing source docker://registry.redhat.io/mysql:latest: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ✔ docker.io/library/mysql:latest Trying to pull docker.io/library/mysql:latest... Getting image source signatures Copying blob b193354265ba done Copying blob 9a89a1d664ee done Copying blob 02da291ad1e4 done Copying blob b85424247193 done Copying blob 14a15c0bb358 done Copying blob a24ae6513051 done Copying blob 9a240a3b3d51 done Copying blob 8bf57120f71f done Copying blob c64090e82a0b done Copying blob af7c7515d542 done Copying config 99afc808f1 done Writing manifest to image destination Storing signatures b81c8014a115f837610e75e5098ffe941db6e5cf0ee53f794e6c6d20e3113ac2
  1. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest
  2. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
  3. ✔ registry.access.redhat.com/mysql:latest
  4. Trying to pull registry.access.redhat.com/mysql:latest...
  5. Error: initializing source docker://registry.access.redhat.com/mysql:latest: reading manifest latest in registry.access.redhat.com/mysql: name unknown: Repo not found
  6. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest
  7. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
  8. ✔ registry.redhat.io/mysql:latest
  9. Trying to pull registry.redhat.io/mysql:latest...
  10. Error: initializing source docker://registry.redhat.io/mysql:latest: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
  11. [root@iZbp1ics75hlcsisqyvxaeZ ~]# docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest
  12. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
  13. ✔ docker.io/library/mysql:latest
  14. Trying to pull docker.io/library/mysql:latest...
  15. Getting image source signatures
  16. Copying blob b193354265ba done
  17. Copying blob 9a89a1d664ee done
  18. Copying blob 02da291ad1e4 done

首先安装环境与依赖

python 环境我们要起是大于3.9,这里我们用3.10来进行安装。

首先我们需要安装conda环境,我们使用miniconda3

  1. wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
  2. sh Miniconda3-py310_23.3.1-0-Linux-x86_64.sh

如上,我们就安装conda环境完成了,安装完成之后,需要生效一下环境变量。

  1. source /root/.bashrc
  2. conda create -n dbgpt_env python=3.10
  3. conda activate dbgpt_env

运行一下服务端,成功,sucess!

  1. (dbgpt_env) [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# python pilot/server/llmserver.py
  2. playsound is relying on another python subprocess. Please use `pip install pygobject` if you want playsound to run more efficiently.
  3. /root/DB-GPT/pilot/embedding_engine/loader/ppt_loader.py:22: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  4. if hasattr(shape, "text") and shape.text is not "":
  5. Loading vicuna-13b LLM ModelServer in cuda! Please Wait......
  6. model_params:
  7. ModelParams(device='cuda', model_name='vicuna-13b', model_path='/root/DB-GPT/models/vicuna-13b', model_type='huggingface', num_gpus=None, max_gpu_memory=None, cpu_offloading=False, load_8bit=True, load_4bit=False, quant_type='nf4', use_double_quant=True, compute_dtype=None, debug=False, trust_remote_code=True)
  8. max_memory: {0: '26GiB'}
  9. You are using the legacy behaviour of the <class 'transformers.models.llama.tokenization_llama.LlamaTokenizer'>. This means that tokens that come after special tokens will not be properly handled. We recommend you to read the related pull request available at https://github.com/huggingface/transformers/pull/24565
  10. Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████| 3/3 [00:11<00:00, 3.94s/it]
  11. Get model path: /root/DB-GPT/models/vicuna-13b adapter <pilot.server.chat_adapter.VicunaChatAdapter object at 0x7f231012ab60>
  12. INFO: Started server process [13150]
  13. INFO: Waiting for application startup.
  14. INFO: Application startup complete.
  15. INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

运行一下客户端,发现报错,还未解决。。。

  1. (dbgpt_env) [root@iZbp1ics75hlcsisqyvxaeZ DB-GPT]# python pilot/server/webserver.py
  2. playsound is relying on another python subprocess. Please use `pip install pygobject` if you want playsound to run more efficiently.
  3. 2023-08-13 18:33:57 | ERROR | stderr | /root/DB-GPT/pilot/server/knowledge/space_db.py:12: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  4. 2023-08-13 18:33:57 | ERROR | stderr | Base = declarative_base()
  5. 2023-08-13 18:33:57 | INFO | stdout | Add file db, db_name: sqlite_default_sqlite, db_type: sqlite, db_path: data/default_sqlite.db
  6. 2023-08-13 18:33:57 | INFO | stdout | add db connect info error2!Constraint Error: Duplicate key "db_name: sqlite_default_sqlite" violates unique constraint. If this is an unexpected constraint violation please double check with the known index limitations section in our documentation (docs - sql - indexes).
  7. 2023-08-13 18:33:57 | INFO | stdout | /root/DB-GPT/pilot
  8. 2023-08-13 18:33:57 | ERROR | stderr | Exception in thread Thread-2 (init_db_summary):
  9. 2023-08-13 18:33:57 | ERROR | stderr | Traceback (most recent call last):
  10. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3371, in _wrap_pool_connect
  11. 2023-08-13 18:33:57 | ERROR | stderr | return fn()
  12. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 327, in connect
  13. 2023-08-13 18:33:57 | ERROR | stderr | return _ConnectionFairy._checkout(self)
  14. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 894, in _checkout
  15. 2023-08-13 18:33:57 | ERROR | stderr | fairy = _ConnectionRecord.checkout(pool)
  16. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 493, in checkout
  17. 2023-08-13 18:33:57 | ERROR | stderr | rec = pool._do_get()
  18. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get
  19. 2023-08-13 18:33:57 | ERROR | stderr | return self._create_connection()
  20. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 273, in _create_connection
  21. 2023-08-13 18:33:57 | ERROR | stderr | return _ConnectionRecord(self)
  22. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 388, in __init__
  23. 2023-08-13 18:33:57 | ERROR | stderr | self.__connect()
  24. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 690, in __connect
  25. 2023-08-13 18:33:57 | ERROR | stderr | with util.safe_reraise():
  26. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
  27. 2023-08-13 18:33:57 | ERROR | stderr | compat.raise_(
  28. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
  29. 2023-08-13 18:33:57 | ERROR | stderr | raise exception
  30. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 686, in __connect
  31. 2023-08-13 18:33:57 | ERROR | stderr | self.dbapi_connection = connection = pool._invoke_creator(self)
  32. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 574, in connect
  33. 2023-08-13 18:33:57 | ERROR | stderr | return dialect.connect(*cargs, **cparams)
  34. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 598, in connect
  35. 2023-08-13 18:33:57 | ERROR | stderr | return self.dbapi.connect(*cargs, **cparams)
  36. 2023-08-13 18:33:57 | ERROR | stderr | sqlite3.OperationalError: unable to open database file
  37. 2023-08-13 18:33:57 | ERROR | stderr |
  38. 2023-08-13 18:33:57 | ERROR | stderr | The above exception was the direct cause of the following exception:
  39. 2023-08-13 18:33:57 | ERROR | stderr |
  40. 2023-08-13 18:33:57 | ERROR | stderr | Traceback (most recent call last):
  41. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
  42. 2023-08-13 18:33:57 | ERROR | stderr | self.run()
  43. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 953, in run
  44. 2023-08-13 18:33:57 | ERROR | stderr | self._target(*self._args, **self._kwargs)
  45. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/summary/db_summary_client.py", line 138, in init_db_summary
  46. 2023-08-13 18:33:57 | ERROR | stderr | self.db_summary_embedding(item["db_name"], item["db_type"])
  47. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/summary/db_summary_client.py", line 31, in db_summary_embedding
  48. 2023-08-13 18:33:57 | ERROR | stderr | db_summary_client = RdbmsSummary(dbname, db_type)
  49. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/summary/rdbms_db_summary.py", line 21, in __init__
  50. 2023-08-13 18:33:57 | ERROR | stderr | self.db = CFG.LOCAL_DB_MANAGE.get_connect(name)
  51. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/connections/manages/connection_manager.py", line 122, in get_connect
  52. 2023-08-13 18:33:57 | ERROR | stderr | return connect_instance.from_file_path(db_path)
  53. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/connections/rdbms/conn_sqlite.py", line 27, in from_file_path
  54. 2023-08-13 18:33:57 | ERROR | stderr | return cls(create_engine("sqlite:///" + file_path, **_engine_args), **kwargs)
  55. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/DB-GPT/pilot/connections/rdbms/base.py", line 61, in __init__
  56. 2023-08-13 18:33:57 | ERROR | stderr | self._inspector = inspect(engine)
  57. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/inspection.py", line 64, in inspect
  58. 2023-08-13 18:33:57 | ERROR | stderr | ret = reg(subject)
  59. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 182, in _engine_insp
  60. 2023-08-13 18:33:57 | ERROR | stderr | return Inspector._construct(Inspector._init_engine, bind)
  61. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 117, in _construct
  62. 2023-08-13 18:33:57 | ERROR | stderr | init(self, bind)
  63. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 128, in _init_engine
  64. 2023-08-13 18:33:57 | ERROR | stderr | engine.connect().close()
  65. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3325, in connect
  66. 2023-08-13 18:33:57 | ERROR | stderr | return self._connection_cls(self, close_with_result=close_with_result)
  67. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 96, in __init__
  68. 2023-08-13 18:33:57 | ERROR | stderr | else engine.raw_connection()
  69. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3404, in raw_connection
  70. 2023-08-13 18:33:57 | ERROR | stderr | return self._wrap_pool_connect(self.pool.connect, _connection)
  71. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3374, in _wrap_pool_connect
  72. 2023-08-13 18:33:57 | ERROR | stderr | Connection._handle_dbapi_exception_noconnection(
  73. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2208, in _handle_dbapi_exception_noconnection
  74. 2023-08-13 18:33:57 | ERROR | stderr | util.raise_(
  75. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
  76. 2023-08-13 18:33:57 | ERROR | stderr | raise exception
  77. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3371, in _wrap_pool_connect
  78. 2023-08-13 18:33:57 | ERROR | stderr | return fn()
  79. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 327, in connect
  80. 2023-08-13 18:33:57 | ERROR | stderr | return _ConnectionFairy._checkout(self)
  81. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 894, in _checkout
  82. 2023-08-13 18:33:57 | ERROR | stderr | fairy = _ConnectionRecord.checkout(pool)
  83. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 493, in checkout
  84. 2023-08-13 18:33:57 | ERROR | stderr | rec = pool._do_get()
  85. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get
  86. 2023-08-13 18:33:57 | ERROR | stderr | return self._create_connection()
  87. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 273, in _create_connection
  88. 2023-08-13 18:33:57 | ERROR | stderr | return _ConnectionRecord(self)
  89. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 388, in __init__
  90. 2023-08-13 18:33:57 | ERROR | stderr | self.__connect()
  91. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 690, in __connect
  92. 2023-08-13 18:33:57 | ERROR | stderr | with util.safe_reraise():
  93. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
  94. 2023-08-13 18:33:57 | ERROR | stderr | compat.raise_(
  95. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
  96. 2023-08-13 18:33:57 | ERROR | stderr | raise exception
  97. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 686, in __connect
  98. 2023-08-13 18:33:57 | ERROR | stderr | self.dbapi_connection = connection = pool._invoke_creator(self)
  99. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 574, in connect
  100. 2023-08-13 18:33:57 | ERROR | stderr | return dialect.connect(*cargs, **cparams)
  101. 2023-08-13 18:33:57 | ERROR | stderr | File "/root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 598, in connect
  102. 2023-08-13 18:33:57 | ERROR | stderr | return self.dbapi.connect(*cargs, **cparams)
  103. 2023-08-13 18:33:57 | ERROR | stderr | sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
  104. 2023-08-13 18:33:57 | ERROR | stderr | (Background on this error at: https://sqlalche.me/e/14/e3q8)
  105. 2023-08-13 18:33:58 | ERROR | stderr | /root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in File, please remove them: {'allow_flagged_uploads': True}
  106. 2023-08-13 18:33:58 | ERROR | stderr | warnings.warn(
  107. 2023-08-13 18:33:58 | ERROR | stderr | /root/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in File, please remove them: {'accept_multiple_files': True}
  108. 2023-08-13 18:33:58 | ERROR | stderr | warnings.warn(
  109. 2023-08-13 18:33:58 | INFO | stdout | tab_plugin in...
  110. 2023-08-13 18:33:58 | INFO | stdout | Running on local URL: http://0.0.0.0:7860
  111. 2023-08-13 18:33:58 | INFO | stdout |
  112. 2023-08-13 18:33:58 | INFO | stdout | To create a public link, set `share=True` in `launch()`.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/137115
推荐阅读
相关标签
  

闽ICP备14008679号