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

Django 管理后台提示数据库错误 #2814

Closed
wutianya opened this issue Sep 19, 2024 · 0 comments
Closed

Django 管理后台提示数据库错误 #2814

wutianya opened this issue Sep 19, 2024 · 0 comments

Comments

@wutianya
Copy link

重现步骤

可以正常登录平台,切换到管理后台后提示:

数据库错误
数据库设置有误。请检查所需的数据库表格是否已经创建,以及数据库用户是否具有正确的权限。

预期外的结果

image

日志文本

cat qcluster.log
[2024-09-19 12:25:24,866][MainThread:140661963646784][task_id:django-q][cluster.py:682][ERROR]- (1146, "Table 'archery.django_q_schedule' doesn't exist")
[2024-09-19 12:25:54,907][MainThread:140661963646784][task_id:django-q][cluster.py:682][ERROR]- (1054, "Unknown column 'django_q_schedule.name' in 'field list'")

cat supervisord.log
2024-09-19 12:24:52,156 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-09-19 12:24:52,158 INFO RPC interface 'supervisor' initialized
2024-09-19 12:24:52,158 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-09-19 12:24:52,160 INFO daemonizing the supervisord process
2024-09-19 12:24:52,160 INFO supervisord started with pid 13
2024-09-19 12:24:53,162 INFO spawned: 'qcluster' with pid 19
2024-09-19 12:24:54,347 INFO success: qcluster entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
archery.log 无日志

版本

1.11.3

部署方式

Docker

是否还有其他可以辅助定位问题的信息?比如数据库版本等

默认docker-compose里面的版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant