2021年8月2日 1条评论 4,025次阅读 15人点赞
升级最新版本后,面板服务直接挂了,重新启动报以下错误,小白一个,于是求助宝塔论坛。
Starting Bt-Panel............failed
------------------------------------------------------
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
------------------------------------------------------
Error: BT-Panel service startup failed.
done
Starting Bt-Tasks... failed
------------------------------------------------------
import db
File "/www/server/panel/class/db.py", line 10, in
import sqlite3
File "/www/server/panel/pyenv/lib/python3.7/sqlite3/__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "/www/server/panel/pyenv/lib/python3.7/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
Traceback (most recent call last):
File "/www/server/panel/BT-Task", line 13, in
import task
File "/www/server/panel/task.py", line 24, in
import db
File "/www/server/panel/class/db.py", line 10, in
import sqlite3
File "/www/server/panel/pyenv/lib/python3.7/sqlite3/__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "/www/server/panel/pyenv/lib/python3.7/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
------------------------------------------------------
Error: BT-Task service startup failed.
发帖求助后,论坛工作人员给出两条命令,执行完后顺利启动
rm -rf /www/server/panel/pyenv
curl https://download.bt.cn/install/update_panel.sh|bash