Fehler bei der Installation / Firewall

Haben Sie einen Bug entdeckt? Teilen Sie es uns mit.
Post Reply
marcus198514
Posts: 30
Joined: Wed 15. Nov 2017, 12:44

Fehler bei der Installation / Firewall

Post by marcus198514 »

Hallo und einen schönen Freitag Abend,

ich habe gerade einen Server Installiert. (Mehrfach)

Bei der Installation kommt bei dem Abschnitt *Firewall* folgende Fehlermeldung.

Firewall ...
Warning: file_put_contents(/etc/network/if-pre-up.d/keyhelp_load_rules): failed to open stream: No such file or directory in /home/keyhelp/www/keyhelp/core/pending/File.php on line 341

Frisch Installiertes System Ubuntu 20.4 LTS

Habe das ganze mal mit Ubuntu 18 probiert da klappt alles Normal.

[SKIPPED DUE PREVIOUS ERRORS] files | firewall/keyhelp-load-firewall-on-startup.service => /etc/systemd/system/keyhelp-load-firewall-on-startup.service
[SKIPPED DUE PREVIOUS ERRORS] files | nftables/nftables.conf => /etc/nftables.conf
[SKIPPED DUE PREVIOUS ERRORS] files | nftables/fail2ban.conf => /etc/nftables/fail2ban.conf

[SKIPPED DUE PREVIOUS ERRORS] exec | chmod 0755 /etc/network/if-pre-up.d/keyhelp_load_rules
[SKIPPED DUE PREVIOUS ERRORS] exec | systemctl enable keyhelp-load-firewall-on-startup.service
[SKIPPED DUE PREVIOUS ERRORS] exec | nft -f /etc/nftables/fail2ban.conf

[SKIPPED DUE PREVIOUS ERRORS] import | /home/keyhelp/www/keyhelp/install/templates/firewall/rules/default_common.sql => keyhelp
[SKIPPED DUE PREVIOUS ERRORS] import | /home/keyhelp/www/keyhelp/install/templates/firewall/rules/active_common.sql => keyhelp

Ist das Problem bekannt ?

Grüße
Marcus
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Fehler bei der Installation / Firewall

Post by Alexander »

Hallo,

Um KeyHelp erst einmal überhaupt bei deinem Server Fehlerfrei installieren zu können, erstelle zunächst den Ordner: "/etc/network/if-pre-up.d/", anschließend starte die KeyHelp installation.
Das Neu-Laden der Firewall-Regeln beim Booten wird aber vorerst bei dir nicht funktionieren.
Allerdings stelle ich dann mit dem nächsten größeren Update (nicht der 20.3.1 Hotfix) das Laden der Firewall-Regeln beim Serverstart um. Anschließend sollte es dann auch auf deinem Server problemlos funktionieren.

Sofern du bis dahin also trotzdem einen Reboot des Servers durchführen solltest, dann solltest du nach dem start im KeyHelp einmal die Firewall aus und wieder anschalten (das bewirkt das aktivieren der dort ersichtlichen Regeln).
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
delvita
Posts: 4
Joined: Tue 24. Apr 2018, 15:06

Re: Fehler bei der Installation / Firewall

Post by delvita »

Ich hatte das geleiche Problem und habe wie von Alex geraten das Verzeichnis if-pre-up.d/ erstellt und einfach die Installation nochmals durchgeführt.

Es ging dann glatt durch bis auf folgenden Error:
exec | mount -o remount /
exec | quotacheck -avmug
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ERROR DETECTED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[SKIPPED DUE PREVIOUS ERRORS] exec | service quota start


Dann habe ich noch folgende PHP Errors betreffend Mysql:
[02-Feb-2021 22:12:46 Europe/Berlin] PHP Warning: file_put_contents(/etc/network/if-pre-up.d/keyhelp_load_rules): failed to open stream: No such file or directory in /home/keyhelp/www/keyhelp/core/pending/File.php on line 341
[02-Feb-2021 23:09:37 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[02-Feb-2021 23:14:27 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[02-Feb-2021 23:54:52 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 00:08:30 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 00:49:22 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 00:51:22 Europe/Berlin] PHP Warning: unlink(/etc/keyhelp/iptables/startup_rules_ipv4): No such file or directory in /home/keyhelp/www/keyhelp/core/Firewall/Iptables.php on line 267
[03-Feb-2021 00:51:22 Europe/Berlin] PHP Warning: unlink(/etc/keyhelp/iptables/startup_rules_ipv6): No such file or directory in /home/keyhelp/www/keyhelp/core/Firewall/Iptables.php on line 267
[03-Feb-2021 02:04:06 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 02:34:50 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:50 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:50 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:50 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:50 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:51 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:34:51 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 02:50:05 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 07:31:26 Europe/Berlin] PHP Notice: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/UI/Session/Session.php on line 180
[03-Feb-2021 10:55:01 Europe/Berlin] PHP Warning: MySQL - Connection Error: 2002 (No such file or directory) in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 246
[03-Feb-2021 10:55:01 Europe/Berlin] PHP Warning: mysqli::query(): Couldn't fetch mysqli in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 53
[03-Feb-2021 10:55:01 Europe/Berlin] PHP Warning: mysqli::query(): Couldn't fetch mysqli in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 54
[03-Feb-2021 10:55:01 Europe/Berlin] PHP Warning: mysqli::query(): Couldn't fetch mysqli in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 55
[03-Feb-2021 10:55:01 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:01 Europe/Berlin] PHP Warning: Database error: SQLSTATE[HY000] [2002] No such file or directory in /home/keyhelp/www/keyhelp/core/Database/DatabaseConnection.php on line 470
[03-Feb-2021 10:55:02 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:02 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:02 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:02 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:03 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:03 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:03 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)
[03-Feb-2021 10:55:03 Europe/Berlin] MySQL - Connection Error: 2002 (No such file or directory)


Irgendwie kann bei MySQL nichts gemacht werden, was Zeit oder Datumsfelder hat. Somit funktioniert einiges nicht

Beim FTPS jammert er immer:
[03.02.2021 12:13] Failed to change timestamp of the file '/pygo/live/......'

Bin mit meinem Latain am ende.

LG Mike


Edit delvita: Das beschriebene Problem hat nichts mit der Installation zu tun und auch nichts mit irgend einer Timefunktion, sondern mit den MySQL Einstellungen.
Obeldobel
Posts: 13
Joined: Sun 27. May 2018, 12:00

Re: Fehler bei der Installation / Firewall

Post by Obeldobel »

Hallo zusammen

ich hatte auch das Problem, das es bei der Installation der Firewall zu einem Fehler kam:

Ablauf:
Debian 11 neu aufgesetzt
sudo apt update
sudo apt upgrade
sudo passwd root
su
Installationsroutine gestartet (Fehler bei der Firewall Installation)

neuer Ablauf:
Debian 11 neu aufgesetzt
sudo apt update
sudp apt upgrade
sudo passwd root

sudo reboot

su
Installationsroutine gestartet (Firewall wird fehlerfrei installiert)
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Fehler bei der Installation / Firewall

Post by 24unix »

Obeldobel wrote: Sun 4. Sep 2022, 18:00 Hallo zusammen

ich hatte auch das Problem, das es bei der Installation der Firewall zu einem Fehler kam:

Ablauf:
Debian 11 neu aufgesetzt
sudo apt update
sudo apt upgrade
sudo passwd root
su
Installationsroutine gestartet (Fehler bei der Firewall Installation)

neuer Ablauf:
Debian 11 neu aufgesetzt
sudo apt update
sudp apt upgrade
sudo passwd root

sudo reboot

su
Installationsroutine gestartet (Firewall wird fehlerfrei installiert)
Wenn Du Debian sauber installierst ist sudo gar nicht an Bord. Und das root Passwort wird bei der Installation abgefragt.


KeyHelp zieht das nach, weil einige Sachen etwas frickelig gelöst sind.

Übrigens: root hinter sudo passwd ist absolut sinnfrei. Mit sudo sagst Du, dass Du im root Kontext arbeiten willst.

Mein Standard auf Ubuntu (ohne KeyHelp):

Code: Select all

sudo passwd
su -
dpkg --purge sudo
Auf den KeyHelp-Kisten habe ich es einfach beim sudo gelassen, aber schön ist das nicht. Halt gefrickelt.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Obeldobel
Posts: 13
Joined: Sun 27. May 2018, 12:00

Re: Fehler bei der Installation / Firewall

Post by Obeldobel »

habe ich vergessen:

Debian mit Raspberry Pi Imager installiert. Da kann man das so vorgeben, dass alles mit Installiert wird (SSH, Sudo, Wlan usw.)
Post Reply