Hallo,
vielen Dank für das Update Script!
Mir sind mittlerweile 3 Sachen aufgefallen ...:
1. Das System benutzt/findet meine Swap Partition nicht mehr. Warum auch immer, hat sich die UUID geändert.
Mittels
habe ich mir diese anzeigen lassen und danach die /etc/fstab mit der neuen UUID angepasst.
Swap funktioniert wieder!
2. fail2ban möchte nicht mehr .. Wenn ich fail2ban neustarten möchte kommt
Code: Select all
[....] Restarting fail2ban (via systemctl): fail2ban.serviceJob for fail2ban.service failed because the control process exited with error code.
See "systemctl status fail2ban.service" and "journalctl -xe" for details.
failed!
Wenn ich dann den Status anzeigen lasse kommt:
Code: Select all
# systemctl status fail2ban.service
â fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-08-27 11:22:44 CEST; 9s ago
Docs: man:fail2ban(1)
Process: 2883 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Unit entered failed state.
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 27 11:22:44 hostname systemd[1]: Stopped Fail2Ban Service.
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Start request repeated too quickly.
Aug 27 11:22:44 hostname systemd[1]: Failed to start Fail2Ban Service.
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Unit entered failed state.
Aug 27 11:22:44 hostname systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Die fail2ban.log ist komplett leer.
edit4: Mittels
konnte ich mir doch einen Log anzeigen lassen.
Im Log stand folgendes:
Code: Select all
Aug 27 11:22:43 web.DOMAIN.de fail2ban-client[2877]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.conf' [line 155]: option 'port' in section 'pam-generic' already exists
In der jail.conf habe ich dann wirklich 2 Einträge für den Port gefunden:
Code: Select all
# Generic filter for pam. Has to be used with action which bans all ports
# such as iptables-allports, shorewall
[pam-generic]
enabled = false
# pam-generic filter can be customized to monitor specific subset of 'tty's
filter = pam-generic
# port actually must be irrelevant but lets leave it all for some possible uses
port = all
banaction = iptables-allports
port = anyport
logpath = /var/log/auth.log
maxretry = 6
Ich habe nun die Zeile
auskommentiert und nun wird folgendes Angemeckert:
Code: Select all
Aug 28 08:34:48 web.DOMAIN.de systemd[1]: Starting Fail2Ban Service...
Aug 28 08:34:48 web.DOMAIN.de fail2ban-client[28711]: WARNING 'filter' not defined in 'sshd'. Using default one: ''
Aug 28 08:34:48 web.DOMAIN.de fail2ban-client[28711]: WARNING No filter set for jail sshd
Aug 28 08:34:48 web.DOMAIN.de fail2ban-client[28711]: WARNING 'filter' not defined in 'sshd'. Using default one: ''
Aug 28 08:34:48 web.DOMAIN.de fail2ban-client[28711]: ERROR Failed during configuration: Bad value substitution: option 'action' in section 'sshd' contains an interpolation key 'port' which is not a valid opt
Aug 28 08:34:48 web.DOMAIN.de systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Die jail.conf wurde nicht verändert.
3. Domains können nicht mehr angelegt werden. Die angelegten Domains haben alle das rote Ausrufezeichen vorne dran.
Code: Select all
[27-Aug-2017 15:41:01] INFO --> load tasks ... 1 found
[27-Aug-2017 15:41:01] DEBUG --> task type IDs: 600
[27-Aug-2017 15:41:01] DEBUG --> Apache: applyAllConfigChanges()
[27-Aug-2017 15:41:01] DEBUG --> Apache: checkDirectories()
[27-Aug-2017 15:41:01] DEBUG --> Apache: cleanAll()
[27-Aug-2017 15:41:01] DEBUG --> Apache: cleanVhosts()
[27-Aug-2017 15:41:01] DEBUG --> Apache: cleanPhpFpmPools()
[27-Aug-2017 15:41:01] DEBUG --> Apache: cleanHtpasswd()
[27-Aug-2017 15:41:01] DEBUG --> Apache: getUserIdsWithModifiedDomains()
[27-Aug-2017 15:41:01] DEBUG --> Apache: we will now apply configs changes of user id "24"
[27-Aug-2017 15:41:01] DEBUG --> Apache: config data loaded for user id "24" ("arosh")
[27-Aug-2017 15:41:01] DEBUG --> load domain "shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> domain without ssl option
[27-Aug-2017 15:41:01] DEBUG --> load domain "www.shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> domain without ssl option
[27-Aug-2017 15:41:01] DEBUG --> Apache: add vhost container for domain "shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> Apache: add vhost container for domain "www.shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> Apache: save config to "/etc/apache2/keyhelp/vhosts/arosh.conf"
[27-Aug-2017 15:41:01] DEBUG --> PHP-FPM: add php-fpm pool "[arosh]" for domain "shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> save config to "/etc/php/7.0/fpm/keyhelp_pool/arosh.conf"
[27-Aug-2017 15:41:01] DEBUG --> PHP-FPM: add php-fpm pool "[arosh]" for domain "www.shlomotech.DOMAIN.de"
[27-Aug-2017 15:41:01] DEBUG --> save config to "/etc/php/7.0/fpm/keyhelp_pool/arosh.conf"
[27-Aug-2017 15:41:01] DEBUG --> Apache: reloadApache()
[27-Aug-2017 15:41:01] DEBUG --> Apache: syntax ok
[27-Aug-2017 15:41:01] DEBUG --> Apache: reloading apache
[27-Aug-2017 15:41:01] ERROR --> Apache: failed to reload
edit2: Ich habe den Apache nun "von Hand" restartet. Dann kann ich die Domain aufrufen. Das rote Ausrufezeichen bleibt und PHP wird nicht ausgeführt..
edit3: Nun sind auch die roten Ausrufezeichen weg und KH kann den Apache "loaden". PHP wird derzeit auch ausgeführt ... Warum funktioniert das wieder, nachdem ich Apache von Hand neugestartet habe?!
Hat jemand eine Idee?
LG passi
edit: Hier ist einiges durcheinander... Falls sich das jemand von KH anschauen möchte, bitte melden ...
