I'm having an issue with the installation from aaPanel. I get the message "Service is not enabled, please open the service first"
I uninstalled and installed from command and this is the output
`[xx@xxxxx ~]# wget http://download.bt.cn/install/plugin/fail2ban/install.sh
--2021-11-30 22:14:23-- http://download.bt.cn/install/plugin/fail2ban/install.sh
Resolving download.bt.cn (download.bt.cn)... 128.1.164.196, 2001:19f0:7001:54fc:5400:2ff:fe9b:97f9
Connecting to download.bt.cn (download.bt.cn)|128.1.164.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5932 (5.8K) [application/octet-stream]
Saving to: ‘install.sh.2’
install.sh.2 100%[===================>] 5.79K --.-KB/s in 0s
2021-11-30 22:14:24 (827 MB/s) - ‘install.sh.2’ saved [5932/5932]
[xx@xxxxx ~]# bash install.sh install
Selecting download node...
curl: (28) Connection timed out after 3001 milliseconds
curl: (28) Connection timed out after 3001 milliseconds
curl: (28) Connection timed out after 3000 milliseconds
mkdir: cannot create directory ‘/var/run/fail2ban’: File exists
Last metadata expiration check: 0:47:03 ago on Tue 30 Nov 2021 09:27:49 PM GMT.
Package git-2.27.0-1.el8.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:47:05 ago on Tue 30 Nov 2021 09:27:49 PM GMT.
Package rsyslog-8.2102.0-5.el8.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:47:06 ago on Tue 30 Nov 2021 09:27:49 PM GMT.
No match for argument: fail2ban
Error: Unable to find a match: fail2ban
Last metadata expiration check: 0:47:08 ago on Tue 30 Nov 2021 09:27:49 PM GMT.
No match for argument: fail2ban
Error: Unable to find a match: fail2ban
sed: can't read /etc/fail2ban/fail2ban.conf: No such file or directory
sed: can't read /etc/fail2ban/fail2ban.conf: No such file or directory
{"product": "Linux panel", "setup_path": "/www/server", "openlitespeed_path": "/usr/local", "language": "English", "title": "aaPanel Linux panel", "brand": "aaPanel", "root_path": "/www", "template": "default", "logs_path": "/www/wwwlogs", "home": "https://www.aapanel.com", "recycle_bin": true}
--2021-11-30 22:14:58-- http://128.1.164.196/install/plugin/fail2ban_en/fail2ban_main.py
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39614 (39K) [application/octet-stream]
Saving to: ‘/www/server/panel/plugin/fail2ban/fail2ban_main.py’
/www/server/panel/p 100%[===================>] 38.69K 147KB/s in 0.3s
2021-11-30 22:14:58 (147 KB/s) - ‘/www/server/panel/plugin/fail2ban/fail2ban_main.py’ saved [39614/39614]
--2021-11-30 22:14:58-- http://128.1.164.196/install/plugin/fail2ban_en/index.html
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57655 (56K) [text/html]
Saving to: ‘/www/server/panel/plugin/fail2ban/index.html’
/www/server/panel/p 100%[===================>] 56.30K 210KB/s in 0.3s
2021-11-30 22:14:59 (210 KB/s) - ‘/www/server/panel/plugin/fail2ban/index.html’ saved [57655/57655]
--2021-11-30 22:14:59-- http://128.1.164.196/install/plugin/fail2ban_en/info.json
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 333 [application/json]
Saving to: ‘/www/server/panel/plugin/fail2ban/info.json’
/www/server/panel/p 100%[===================>] 333 --.-KB/s in 0s
2021-11-30 22:14:59 (65.1 MB/s) - ‘/www/server/panel/plugin/fail2ban/info.json’ saved [333/333]
--2021-11-30 22:14:59-- http://128.1.164.196/install/plugin/fail2ban_en/icon.png
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4839 (4.7K) [image/png]
Saving to: ‘/www/server/panel/plugin/fail2ban/icon.png’
/www/server/panel/p 100%[===================>] 4.73K --.-KB/s in 0s
2021-11-30 22:15:00 (764 MB/s) - ‘/www/server/panel/plugin/fail2ban/icon.png’ saved [4839/4839]
--2021-11-30 22:15:00-- http://128.1.164.196/install/plugin/fail2ban_en/cdn/cloudflare.py
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7030 (6.9K) [application/octet-stream]
Saving to: ‘/www/server/panel/plugin/fail2ban/cdn/cloudflare.py’
/www/server/panel/p 100%[===================>] 6.87K --.-KB/s in 0s
2021-11-30 22:15:00 (690 MB/s) - ‘/www/server/panel/plugin/fail2ban/cdn/cloudflare.py’ saved [7030/7030]
/etc/fail2ban/jail.local: No such file or directory
--2021-11-30 22:15:00-- http://128.1.164.196/install/plugin/fail2ban_en/fail2ban.service
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 693 [application/octet-stream]
Saving to: ‘/lib/systemd/system/fail2ban.service’
/lib/systemd/system 100%[===================>] 693 --.-KB/s in 0s
2021-11-30 22:15:00 (110 MB/s) - ‘/lib/systemd/system/fail2ban.service’ saved [693/693]
sed: can't read /etc/fail2ban/jail.local: No such file or directory
sed: can't read /etc/fail2ban/jail.local: No such file or directory
*.info;mail.none;authpriv.none;cron.none /var/log/messages
Synchronizing state of fail2ban.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable fail2ban
[xx@xxxxx ~]# fail2ban-client start
-bash: fail2ban-client: command not found
`
Any ideas on this?