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

【已解决】宝塔面板突然打开就报500错误了

发表在 Linux面板2022-1-2 19:49 [复制链接] 3 2441

错误提示
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

error日志
Traceback]Traceback]  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
]]  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
]]  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1948, in full_dispatch_request
]]  File "/www/server/panel/BTPanel/__init__.py", line 147, in request_check
]]    iplist = ReadFile(ip_file)
]]    fp = open(filename, mode,encoding="GBK")
OSError:]OSError:]有没有大佬遇到过如何解决

使用道具 举报 只看该作者 回复
发表于 2022-1-2 20:08:37 | 显示全部楼层
Traceback (most recent call last):
  File "class/flask_sockets.py", line 30, in __call__
    handler, values = adapter.match()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "class/public.py", line 334, in ReadFile
    fp = open(filename, mode)
OSError: [Errno 24] Too many open files: 'data/limitip.conf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "class/public.py", line 340, in ReadFile
    fp = open(filename, mode,encoding="utf-8")
OSError: [Errno 24] Too many open files: 'data/limitip.conf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1948, in full_dispatch_request
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2242, in preprocess_request
  File "/www/server/panel/BTPanel/__init__.py", line 147, in request_check
  File "class/public.py", line 1549, in check_ip_panel
    iplist = ReadFile(ip_file)
  File "class/public.py", line 344, in ReadFile
    fp = open(filename, mode,encoding="GBK")
OSError: [Errno 24] Too many open files: 'data/limitip.conf'
使用道具 举报 回复 支持 反对
发表于 2022-1-2 20:23:11 | 显示全部楼层
登录到服务器,清除面板缓存后恢复了
使用道具 举报 回复 支持 反对
发表于 2022-1-3 11:13:02 | 显示全部楼层
张胜楠 发表于 2022-1-2 20:23
登录到服务器,清除面板缓存后恢复了

看提示是服务器系统的句柄数不足的问题,您可以执行下面命令做下操作

  1. ulimit -n 100001
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

工作时间:09:00至18:30

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