当前位置:论坛首页 > Linux面板 > 求助

【已完成】宝塔面板访问提示nginx求助有偿的

发表在 Linux面板2023-12-12 00:18 [复制链接] 4 1127

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.04
系统版本:8.04
问题描述:宝塔面板访问nginx 提示

相关截图(日志、错误):
请输入命令编号:22
===============================================
正在执行(22)...
===============================================
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
[2023-12-11 23:50:49,002][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
[2023-12-11 23:50:51,939][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
\n
[2023-12-12 00:03:43,267][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
[2023-12-12 00:04:41][DEBUG] - 开始更新SSH登录日志...
[2023-12-12 00:04:41][DEBUG] - 上次更新时间:2023-12-11 22:13:54
[2023-12-12 00:04:41][DEBUG] - 未超过一天,不更新ssh日志
\n
[2023-12-12 00:09:47,819][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
\n
[2023-12-12 00:11:36,585][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str
[2023-12-12 00:13:18,121][ERROR] - Exception on /fgfggr8251h [GET]
Traceback (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 1420, in login
    data['lan'] = public.GetLan('login')
  File "class/public.py", line 453, in GetLan
    _LAN_TEMPLATE = json.loads(ReadFile('BTPanel/static/language/' + GetLanguage() + '/template.json'))
TypeError: can only concatenate str (not "NoneType") to str




使用道具 举报 只看该作者 回复
发表于 2023-12-12 09:24:59 | 显示全部楼层
可以先bt 16 修复一下面板
访问nginx提示什么,截图看下
使用道具 举报 回复 支持 反对
发表于 2023-12-12 14:13:25 | 显示全部楼层
阿珂 发表于 2023-12-12 09:24
可以先bt 16 修复一下面板
访问nginx提示什么,截图看下

不行的我尝试了
使用道具 举报 回复 支持 反对
发表于 2023-12-12 14:17:05 | 显示全部楼层
阿珂 发表于 2023-12-12 09:24
可以先bt 16 修复一下面板
访问nginx提示什么,截图看下

很奇怪的我搜索网上的教程说是崩溃了
使用道具 举报 回复 支持 反对
发表于 2024-1-29 14:44:23 | 显示全部楼层
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
  1. mv  /www/server/panel/pyenv /www/backup/pyenv_backup
复制代码

重新获取新的面板环境和更新包
  1. curl http://download.bt.cn/install/update_panel.sh|bash
复制代码

如未解决,可重新发帖或本贴下留言
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表