[求助-已解决]面板安装后启动失败,mw-panel service startup failed
本帖最后由 mdserver 于 2023-10-10 15:17 编辑大家好,安装启动失败求助,谢谢。
错误代码如下
E5双路CPU,系统debian11 debian12 Ubuntu 20.04都尝试过,都是这个错误。
备注
flask
版本问题,感谢。
starting mw-tasks... done
..stopping mw-tasks... done
stopping mw-panel... cli.sh: line 20: 38904 Killed python3 task.py >> ${DIR}/logs/task.log 2>&1
done
starting mw-tasks... done
starting mw-panel... .............................................................failed
------------------------------------------------------
return self.load_wsgiapp()
File "/www/server/mdserver-web/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/www/server/mdserver-web/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/www/server/mdserver-web/app.py", line 25, in <module>
from route import app, socketio
File "/www/server/mdserver-web/route/__init__.py", line 94, in <module>
from flask_socketio import SocketIO, emit, send
File "/www/server/mdserver-web/lib/python3.9/site-packages/flask_socketio/__init__.py", line 19, in <module>
from flask import _request_ctx_stack, has_request_context, json as flask_json
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/www/server/mdserver-web/lib/python3.9/site-packages/flask/__init__.py)
------------------------------------------------------
Error: mw-panel service startup failed.
==================================================================
MW-Panel default info!
==================================================================
MW-Panel-Url: http://xxx:25310/582gafbd2
username: f9gee38em
password: jzwb3rl1d
Warning:
If you cannot access the panel.
release the following port (35310|80|443|22) in the security group.
==================================================================
Time consumed: 5 Minute!
Install completed. If error occurs, please contact us with the log file mw-install.log .
安装完毕,如果出现错误,请带上同目录下的安装日志 mw-install.log 联系我们反馈.
@admin
请大佬有时间的话,回复下,谢谢。 mdserver 发表于 2023-10-10 12:24
@admin
请大佬有时间的话,回复下,谢谢。
你这个可能是那个库不兼容引起的,我需要服务器调试一下。 已经解决。 经沟通。是新版flask版本不兼容。
页:
[1]