Macro Da

每天学一点,成长多一点!

宝塔面板升级出错解决办法

升级最新版本后,面板服务直接挂了,重新启动报以下错误,小白一个,于是求助宝塔论坛。

Starting Bt-Panel............failed
------------------------------------------------------
Traceback (most recent call last):
  File "/www/server/panel/BT-Panel", line 10, in <module>
    from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
  File "/www/server/panel/BT-Panel", line 10, in <module>
    from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
  File "/www/server/panel/BT-Panel", line 10, in <module>
    from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
  File "/www/server/panel/BT-Panel", line 10, in <module>
    from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Traceback (most recent call last):
  File "/www/server/panel/BT-Panel", line 10, in <module>
    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 <module>
    import sqlite3
  File "/www/server/panel/pyenv/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/www/server/panel/pyenv/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
Traceback (most recent call last):
  File "/www/server/panel/BT-Task", line 13, in <module>
    import task
  File "/www/server/panel/task.py", line 24, in <module>
    import db
  File "/www/server/panel/class/db.py", line 10, in <module>
    import sqlite3
  File "/www/server/panel/pyenv/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/www/server/panel/pyenv/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
    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
《宝塔面板升级出错解决办法》
点赞

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注