宝塔用户_lgkpar 发表于 2024-9-27 17:48:23

【待反馈】升级版本至9.2后启动不起了

本帖最后由 宝塔用户_lgkpar 于 2024-9-30 11:58 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:7.9
系统版本:centos 7.9
问题描述:升级版本至9.2后启动不了,yg
相关截图(日志、错误):

运维技术阿闯 发表于 2024-10-19 14:22:07

给机器做个快照
您到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
mv/www/server/panel/pyenv /www/backup/pyenv_backup
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash

宝塔用户_lgkpar 发表于 2024-9-27 17:56:30

官方大大,求助啊。

宝塔用户_lgkpar 发表于 2024-9-27 17:57:22

现在有办法回退版本吗?

宝塔用户_lgkpar 发表于 2024-9-27 19:09:28

使用了 (16) 修复面板(检查错误并更新面板文件到最新版) 这个命令后也无法启动

宝塔用户_lgkpar 发表于 2024-9-27 20:14:09

===============================================
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 26, in <module>
    from BTPanel import app,sys,public
File "/www/server/panel/BTPanel/__init__.py", line 27, in <module>
    from flask import Flask, session, render_template, send_file, request, redirect, g, make_response, \
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 34, in <module>
    from . import cli
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/cli.py", line 15, in <module>
    from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (/www/server/panel/pyenv/lib/python3.7/site-packages/click/core.py)
页: [1]
查看完整版本: 【待反馈】升级版本至9.2后启动不起了