qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.2k stars 546 forks source link

[Bug] docker 启动时报错 500 Internel Error #531

Open aniude opened 3 months ago

aniude commented 3 months ago

Verify steps

QD Version

最新

Bug on OS

Linux

Bug on Platform

Docker/Linux 64位

To Reproduce

安装启动时报错

Describe the Bug

安装启动时报错

QD config

No response

QD log

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/usr/src/app/web/handlers/my.py", line 34, in get
    if (await self.db.user.get(user['id'], fields=('id',))):
                               ~~~~^^^^^^
KeyError: 'id'

Expected behavior

安装启动时报错

Screenshots

No response

a76yyyy commented 2 months ago

数据库损坏, 如果有备份数据库请使用备份数据库, 否则请重命名损坏的数据库为 database.db.bak 后重启容器以生成全新的数据库