重启是重启了,,,问题出来了啊老师,,,突然直接我登录都不行了。。。
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user
[SQL: SELECT user.uid AS user_uid, user.nickname AS user_nickname, user.mobile AS user_mobile, user.email AS user_email, user.sex AS user_sex, user.avatar AS user_avatar, user.login_name AS user_login_name, user.login_pwd AS user_login_pwd, user.login_salt AS user_login_salt, user.status AS user_status, user.updated_time AS user_updated_time, user.created_time AS user_created_time
FROM user
WHERE user.login_name = ?
LIMIT ? OFFSET ?]
[parameters: ('GYDNB', 1, 0)]
(Background on this error at: http://sqlalche.me/e/e3q8)
[pid: 23951|app: 0|req: 4/4] 223.152.1.207 () {48 vars in 915 bytes} [Fri Apr 3 22:39:14 2020] POST /user/login => generated 290 bytes in 22 msecs (HTTP/1.1 500) 2 headers in 99 bytes (1 switches on core 0)
File "./web/controllers/user/User.py", line 43, in login
user_info=User.query.filter_by(login_name=login_name).first()
(python3_vir) [root@VM_0_7_centos Order]# cd ../logs
(python3_vir) [root@VM_0_7_centos logs]# tail -f order.log
File "/data/www/python3_vir/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 588, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user
[SQL: SELECT user.uid AS user_uid, user.nickname AS user_nickname, user.mobile AS user_mobile, user.email AS user_email, user.sex AS user_sex, user.avatar AS user_avatar, user.login_name AS user_login_name, user.login_pwd AS user_login_pwd, user.login_salt AS user_login_salt, user.status AS user_status, user.updated_time AS user_updated_time, user.created_time AS user_created_time
FROM user
WHERE user.login_name = ? LIMIT ? OFFSET ?]
[parameters: ('GYDNB', 1, 0)]
(Background on this error at: http://sqlalche.me/e/e3q8)
[pid: 23951|app: 0|req: 14/16] 223.152.1.207 () {48 vars in 915 bytes} [Fri Apr 3 22:55:05 2020] POST /user/login => generated 290 bytes in 3 msecs (HTTP/1.1 500) 2 headers in 99 bytes (1 switches on core 0)