WongSaang/chatgpt-ui

OperationalError at /admin/

Opened this issue · 0 comments

在使用命令bash <(curl -Ls https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/deployment.sh)部署dockers时出现 #201 中相同的错误,删去docker-compose.yml中的volumes: - db_sqlite3:/app/db.sqlite3可以运行,但是将DB_URL=${DB_URL:-sqlite:///db.sqlite3}改成DB_URL=sqlite:///my/path/chatgpt.db则会在访问后台管理界面时发生500错误,在Debug模式下显示
Exception Type: OperationalError at /admin/
Exception Value: unable to open database file
Exception Location: /usr/local/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py, line 167, in get_new_connection
Raised during: django.contrib.admin.sites.index
Python Executable: /usr/local/bin/python
Python Version: 3.10.11
请问可能是什么问题?