为了能快速了解并处理您的问题,请提供以下基础信息: 问题描述:从上个版本更新至当前最新版就出现了以下报错
相关截图(日志、错误): 出错了,面板运行时发生错误!jinja2.exceptions.TemplateNotFound: index1.html
REQUEST_DATE: 2024-01-04 13:32:12 VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) - 8.0.4 REMOTE_ADDR: 183.226.84.143 REQUEST_URI: GET /?REQUEST_FORM: {} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0Traceback (most recent call last): File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2529, in wsgi_app response = self.full_dispatch_request() File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/server/panel/BTPanel/__init__.py", line 438, in home return render_template('index1.html', data=data) File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/templating.py", line 146, in render_template template = app.jinja_env.get_or_select_template(template_name_or_list) File "/www/server/panel/pyenv/lib/python3.7/site-packages/jinja2/environment.py", line 1081, in get_or_select_template return self.get_template(template_name_or_list, parent, globals) File "/www/server/panel/pyenv/lib/python3.7/site-packages/jinja2/environment.py", line 1010, in get_template return self._load_template(name, globals) File "/www/server/panel/pyenv/lib/python3.7/site-packages/jinja2/environment.py", line 969, in _load_template template = self.loader.load(self, name, self.make_globals(globals)) File "/www/server/panel/pyenv/lib/python3.7/site-packages/jinja2/loaders.py", line 126, in load source, filename, uptodate = self.get_source(environment, name) File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/templating.py", line 62, in get_source return self._get_source_fast(environment, template) File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/templating.py", line 98, in _get_source_fast raise TemplateNotFound(template)jinja2.exceptions.TemplateNotFound: index1.html- 很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
- 修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。
- 修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:https://www.bt.cn/bbs
|
-
|