FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

发现的奇怪BUG · Issue #338 · flucont/btcloud · GitHub

Repository navigation

发现的奇怪BUG #338

Open
Open

Description

首先是一个小问题,更新后安装页面的命令是错误的奥。
curl -sSO https://domain/install/install_panel.sh && bash install.sh
这里是不是少了_panel
正确版本:
curl -sSO https://domain/install/install_panel.sh && bash install_panel.sh

然后是一个小BUG,之前的版本都是正常的。新安装一台机器以后,进入安全,SSH管理,然后SSH安全防护。
说白了就是安装fail2ban插件,安装完以后无法启动报错。
Debain12和Debian13都试过了。都是安装完成无法启动,报错。
下方是错误码:
REQUEST_DATE: 2026-09-03 16:24:47
VERSION: Debian GNU/Linux 12 (bookworm) x86_64(Py3.13.14) - 13.0.0
REMOTE_ADDR: 23.106.153.17
REQUEST_URI: POST /ssh_security?action=set_anti_conf
REQUEST_FORM: {'act': 'true'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Edg/152.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 2542, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 2488, in run
result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/ssh_security.py", line 502, in set_anti_conf
return PluginLoader.plugin_run('fail2ban', 'set_anti', param_dict)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/PluginLoader.py", line 72, in plugin_run
return getattr(plugin_obj,def_name)(args)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/www/server/panel/plugin/fail2ban/fail2ban_main.py", line 986, in set_anti
return eval(a)
File "<string>", line 1, in <module>
File "/www/server/panel/plugin/fail2ban/fail2ban_main.py", line 249, in set_sshd_anti
self._check_conf_exist(conf, values["mode"])
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/fail2ban/fail2ban_main.py", line 196, in _check_conf_exist
if '[{}]'.format(mode) in jail_conf:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL