Ubuntu 20.04,由 7.7 运行 http://download.bt.cn/install/update_to_6.sh 升级到7.8,升级过程显示以下信息:
正在选择下载节点...
main: line 51: [: !=: unary operator expected
main: line 53: [: !=: unary operator expected
main: line 55: [: !=: unary operator expected
但最终升级成功,显示:
升级到7.8后,第一次登陆要求绑定宝塔账号,但输入正确的账户后没有响应,网页始终显示:
始终无法登陆,导致无法登陆宝塔面板。
查看网页源代码,发现js代码错误,导致网页无法正常运行,错误信息:
Uncaught TypeError: jqXHR.responseText.split(...)[1] is undefined error /static/js/public.js?version=7.8.0&repair=:1958
应该是public.js中的以下这行代码有问题,但问题不大,只是登陆失败后无法显示错误信息。
- error_msg = jqXHR.responseText.split('public.PanelError: ')[1].split("</h4>")[0].replace("面板运行时发生错误:",'').trim();
复制代码
但服务器后端的python脚本有以下错误信息:
- Traceback (most recent call last):
- File "class/panelSSL.py", line 1024, in GetAuthToken
- result = json.loads(rtmp);
- File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 341, in loads
- raise TypeError(f'the JSON object must be str, bytes or bytearray, '
- TypeError: the JSON object must be str, bytes or bytearray, not bool
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 1786, in publicObject
- return run_exec().run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 1734, in run
- result = getattr(toObject,get.action)(get)
- File "class/panelSSL.py", line 1038, in GetAuthToken
- return public.returnMsg(False,'连接服务器失败!' + rtmp)
- TypeError: can only concatenate str (not "bool") to str
复制代码
|
|