云服务器

首页 > 宝塔面板 > 宝塔面板升级到最新版本后直接就挂了打不开SSH里重启报错:Traceback (most recent call last): File “/www/server/panel/BT-Task”, line 14, in task.main()

宝塔面板升级到最新版本后直接就挂了打不开SSH里重启报错:Traceback (most recent call last): File “/www/server/panel/BT-Task”, line 14, in task.main()

宝塔面板升级到最新版本后直接就挂了,打不开面板,在SSH服务器里重启宝塔面板也报错:Traceback (most recent call last): File “/www/server/panel/BT-Task”, line 14, in task.main()

Traceback (most recent call last):
File “/www/server/panel/BT-Panel”, line 27, in
from BTPanel import app,sys,public
ImportError: cannot import name ‘app’ from ‘BTPanel’ (/home/server/panel/BTPanel/init.py)
\n
Traceback (most recent call last):
File “/www/server/panel/BT-Panel”, line 27, in
from BTPanel import app,sys,public
ImportError: cannot import name ‘app’ from ‘BTPanel’ (/home/server/panel/BTPanel/init.py)
\n
Traceback (most recent call last):
File “/www/server/panel/BT-Panel”, line 27, in
from BTPanel import app,sys,public
ImportError: cannot import name ‘app’ from ‘BTPanel’ (/home/server/panel/BTPanel/init.py)
\n
Traceback (most recent call last):
File “/www/server/panel/BT-Panel”, line 27, in
from BTPanel import app,sys,public

Error: BT-Panel service startup failed.

原因:可能是长时间没有更新,版本跨度大,没有升级成功,需要重新升级。

解决方法:

向宝塔官方求助,技术人员给两条命令,在SSH里执行完后就恢复正常。

rm -rf /www/server/panel/pyenv
curl https://download.bt.cn/install/update_panel.sh|bash

图片描述

发表回复