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

宝塔面板无法登录

发表在 Linux面板7 天前 [复制链接] 1 107

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:面板开启了域名绑定登录、SSL证书、二次登录验证。

系统版本:Debian

问题描述:
使用了宝塔面板,之前一直正常,今天在登录时,输入用户名和密码后,一直显示“正在登录”,看不到输入二次认证验证码的界面。在论坛找了一些方法后,重置面板后,甚至重置python环境后,仍无法登录。甚至出现了密码不正确,重置密码后,提示无法重置。
现在使用bt命令关闭了域名绑定登录、SSL证书、二次登录验证。在登录页面需要输入验证码,但是验证码无法显示。
可否协助看看怎么回事儿?

相关截图(日志、错误): Snipaste_2025-02-16_16-50-25.jpg

使用道具 举报 只看该作者 回复
发表于 7 天前 | 显示全部楼层
补充,以下是 显示面板错误日志


  1. root@iZuf65wxtpyt9dt841f0jxZ:~# bt
  2. ==================================宝塔面板命令行====================================
  3. (1) 重启面板服务                  (8) 改面板端口                                   |
  4. (2) 停止面板服务                  (9) 清除面板缓存                                 |
  5. (3) 启动面板服务                  (10) 清除登录限制                                |
  6. (4) 重载面板服务                  (11) 设置是否开启IP + User-Agent验证             |
  7. (5) 修改面板密码                  (12) 取消域名绑定限制                            |
  8. (6) 修改面板用户名                (13) 取消IP访问限制                              |
  9. (7) 强制修改MySQL密码             (14) 查看面板默认信息                            |
  10. (22) 显示面板错误日志             (15) 清理系统垃圾                                |
  11. (23) 关闭BasicAuth认证            (16) 修复面板(检查错误并更新面板文件到最新版)    |
  12. (24) 关闭动态口令认证             (17) 设置日志切割是否压缩                        |
  13. (25) 设置是否保存文件历史副本     (18) 设置是否自动备份面板                        |
  14. (26) 关闭面板ssl                  (19) 关闭面板登录地区限制                        |
  15. (28) 修改面板安全入口             (29) 取消访问设备验证                            |
  16. (30) 取消访问UA验证               (32) 开启/关闭【80、443】端口访问面板            |
  17. (0) 取消                                                                           |
  18. ====================================================================================
  19. 请输入命令编号:22
  20. ===============================================
  21. 正在执行(22)...
  22. ===============================================
  23.   File "/www/server/panel/class/push/site_push.py", line 658, in get_push_data
  24.     return self.get_panel_safe_push(data, result)
  25.   File "/www/server/panel/class/push/site_push.py", line 494, in get_panel_safe_push
  26.     t_add, t_del, total = self.get_records_calc('login_user_safe', public.M('users'))
  27.   File "/www/server/panel/class/push/site_push.py", line 780, in get_records_calc
  28.     if u_max > n_data['max']:
  29. TypeError: '>' not supported between instances of 'NoneType' and 'int'

  30. [2025-02-16 16:26:15][DEBUG] - Traceback (most recent call last):
  31.   File "class/panelPush.py", line 639, in start
  32.     rdata = obj.get_push_data(item, total)
  33.   File "/www/server/panel/class/push/site_push.py", line 586, in get_push_data
  34.     return self.get_ssl_push_data(data)
  35.   File "/www/server/panel/class/push/site_push.py", line 390, in get_ssl_push_data
  36.     if web['name'] in n_list: continue
  37. TypeError: string indices must be integers

  38. [2025-02-16 16:27:15][DEBUG] - Traceback (most recent call last):
  39.   File "class/panelPush.py", line 639, in start
  40.     rdata = obj.get_push_data(item, total)
  41.   File "/www/server/panel/class/push/site_push.py", line 658, in get_push_data
  42.     return self.get_panel_safe_push(data, result)
  43.   File "/www/server/panel/class/push/site_push.py", line 494, in get_panel_safe_push
  44.     t_add, t_del, total = self.get_records_calc('login_user_safe', public.M('users'))
  45.   File "/www/server/panel/class/push/site_push.py", line 780, in get_records_calc
  46.     if u_max > n_data['max']:
  47. TypeError: '>' not supported between instances of 'NoneType' and 'int'

  48. [2025-02-16 16:27:15][DEBUG] - Traceback (most recent call last):
  49.   File "class/panelPush.py", line 639, in start
  50.     rdata = obj.get_push_data(item, total)
  51.   File "/www/server/panel/class/push/site_push.py", line 586, in get_push_data
  52.     return self.get_ssl_push_data(data)
  53.   File "/www/server/panel/class/push/site_push.py", line 390, in get_ssl_push_data
  54.     if web['name'] in n_list: continue
  55. TypeError: string indices must be integers

  56. <gevent._socket3.socket at 0x7fc69db6e9f0 object, fd=6, family=2, type=1, proto=0>: Invalid HTTP method: "\x16\x03\x01\x08\x0f\x01\x00\x08\x0b\x03\x03W÷9ÍÒ\x02as+Í>ç\x1cê¤]Ó1?[%£O\x18Ä\x08a3C¡â\x1f <ö'Î;w\x01°<Aõ[l\x9a÷¯4\x8aø<®Ú\x9a2M¼Ê]g'jÔ\x00 ÚÚ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x07¢\x8a\x8a\x00\x00\x00\n"
  57. <gevent._socket3.socket at 0x7fc69db6e9f0 object, fd=6, family=2, type=1, proto=0>: Invalid HTTP method: "\x16\x03\x01\x08\x0f\x01\x00\x08\x0b\x03\x03ô\x19èax\x85»\x16\x1c\x9elᶦ\x89\x06\xa0V\x10U\x914SI¬¶\x91\x98\x84íáË \x15>=\x18\x8fAçÜ`æÑ\x03H´}g(Ü>s')¨-û\x11ÎýO»]Í\x00 jj\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x07¢\n"
  58. <gevent._socket3.socket at 0x7fc69db6e9f0 object, fd=6, family=2, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x06\xa0\x01\x00\x06\x9c\x03\x03é¾ÄqÏ[»Ûæ#q\x11Ùînï;\x12ø!\x91á\x9eLÏí§øÄðiË Ú¸\x95\x9e\xa0h\x07W\x1av\xad=ª1jíu\x88D\x8aN$\x87\x9cTAîw\x8b\x0f\x15å\x00 zz\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x063zz\x00\x00þ\r\x00º\x00\x00\x01\x00\x01t\x00 (1\x18\x13®cß=YnId\x01ü\x01|¹¤\x86ì\r\x88ñ¡u\x81È\x84?tû\x0b\x00\x90\x17¦â\x02\x99ÆUH(\x16\x826\x81̼ÐÐ\x83IU\x82F«\x80¦@\x95Äy.=C\x11\x1cÑh%ê\x17Ú\x115?B<Íô1^S4\x01Ã=ûÌä\x01>]Dq\x1fØ\x9fãÃÕCz¦\x15Ë\x1dæ÷Ä\x13ð\x88ß},3É]æ¹\x8aµg\x8d\x01\x88ßwú^b\x15u-Ujíýð·Á°û\t5v*\xad\x91YE]\x7f§´;Û¼t±\x14\x85A\x90©3\x99Ê\x8a\x8a« %~ß\x08\x00-\x00\x02\x01\x01\x00\n'
  59. <gevent._socket3.socket at 0x7fc69db6e9f0 object, fd=6, family=2, type=1, proto=0>: Invalid HTTP method: "\x16\x03\x01\x06À\x01\x00\x06¼\x03\x03ñ×\x0c76w-I0Èa~l-ÏrâVL\x0e\x89YâÏÛ\x86¦q3¸FØ ¶©Ä*'#er¢gêBïgLÖ\x9fd#øÇ\x82\x03Æ\x9bÈh`N6¾ø\x00 ÊÊ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x06S\x1a\x1a\x00\x00\x00\n"
  60. [2025-02-16 16:28:08,943][ERROR] - Exception on /login [POST]
  61. Traceback (most recent call last):
  62.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app
  63.     response = self.full_dispatch_request()
  64.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request
  65.     rv = self.handle_user_exception(e)
  66.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
  67.     rv = self.dispatch_request()
  68.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
  69.     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  70.   File "/www/server/panel/BTPanel/__init__.py", line 1388, in login
  71.     result = userlogin.userlogin().request_post(get)
  72.   File "class/userlogin.py", line 40, in request_post
  73.     public.chdck_salt()
  74.   File "class/public.py", line 3134, in chdck_salt
  75.     pdata['password'] = md5(md5(u_info['password']+'_bt.cn') + salt)
  76. TypeError: string indices must be integers
  77. [2025-02-16 16:28:15][DEBUG] - Traceback (most recent call last):
  78.   File "class/panelPush.py", line 639, in start
  79.     rdata = obj.get_push_data(item, total)
  80.   File "/www/server/panel/class/push/site_push.py", line 658, in get_push_data
  81.     return self.get_panel_safe_push(data, result)
  82.   File "/www/server/panel/class/push/site_push.py", line 494, in get_panel_safe_push
  83.     t_add, t_del, total = self.get_records_calc('login_user_safe', public.M('users'))
  84.   File "/www/server/panel/class/push/site_push.py", line 780, in get_records_calc
  85.     if u_max > n_data['max']:
  86. TypeError: '>' not supported between instances of 'NoneType' and 'int'

  87. [2025-02-16 16:28:15][DEBUG] - Traceback (most recent call last):
  88.   File "class/panelPush.py", line 639, in start
  89.     rdata = obj.get_push_data(item, total)
  90.   File "/www/server/panel/class/push/site_push.py", line 586, in get_push_data
  91.     return self.get_ssl_push_data(data)
  92.   File "/www/server/panel/class/push/site_push.py", line 390, in get_ssl_push_data
  93.     if web['name'] in n_list: continue
  94. TypeError: string indices must be integers

  95. [2025-02-16 16:29:15][DEBUG] - Traceback (most recent call last):
  96.   File "class/panelPush.py", line 639, in start
  97.     rdata = obj.get_push_data(item, total)
  98.   File "/www/server/panel/class/push/site_push.py", line 658, in get_push_data
  99.     return self.get_panel_safe_push(data, result)
  100.   File "/www/server/panel/class/push/site_push.py", line 494, in get_panel_safe_push
  101.     t_add, t_del, total = self.get_records_calc('login_user_safe', public.M('users'))
  102.   File "/www/server/panel/class/push/site_push.py", line 780, in get_records_calc
  103.     if u_max > n_data['max']:
  104. TypeError: '>' not supported between instances of 'NoneType' and 'int'

  105. [2025-02-16 16:29:15][DEBUG] - Traceback (most recent call last):
  106.   File "class/panelPush.py", line 639, in start
  107.     rdata = obj.get_push_data(item, total)
  108.   File "/www/server/panel/class/push/site_push.py", line 586, in get_push_data
  109.     return self.get_ssl_push_data(data)
  110.   File "/www/server/panel/class/push/site_push.py", line 390, in get_ssl_push_data
  111.     if web['name'] in n_list: continue
  112. TypeError: string indices must be integers

  113. \n
  114. \n
  115. root@iZuf65wxtpyt9dt841f0jxZ:~#
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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