MarkusR Posted February 4, 2023 Share Posted February 4, 2023 Hi Zusammen, ich habe seit einigen Tagen den Pialert Docker installiert und funktionierte soweit korrekt. Gestern habe ich das letzte Update eingespielt. Danach beendete sich der Docker nach ca. 50 Sekunden. Ich habe daraufhin den Docker deinstalliert und noch die übrig gebliebenen Reste manuell gelöscht. Danach habe ich Pialert neu installiert. Jetzt beendet es sich gleich nach dem Start. Im Protokoll des Dockers kam der Hinweis, dass die notification_text.txt nicht vorhanden sei. Ich legte daraufhin unter /mnt/user/appdata/pialert die Unterordner front/api und eine leere notification_text.txt an. Die Fehlermeldung verschwand dann im Log, aber die Grundproblematik bleibt. Hat jemand die gleichen Probleme? Ich vermute fast einen Bug im Pialert, aber vielleicht gibt es ja eine Möglichkeit? text error warn system array login sys.exit(main()) File "/home/pi/pialert/back/pialert.py", line 599, in main send_notifications() File "/home/pi/pialert/back/pialert.py", line 2281, in send_notifications update_api(True) File "/home/pi/pialert/back/pialert.py", line 3100, in update_api write_file(folder + 'notification_text.txt' , mail_text) File "/home/pi/pialert/back/pialert.py", line 3167, in write_file file = open (pPath, 'w', encoding='utf-8') FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/pialert/front/api/notification_text.txt' mkdir: cannot create directory '/run/php': File exists pcap_activate: eth1: No such device exists (SIOCGIFHWADDR: No such device) Traceback (most recent call last): File "/home/pi/pialert/back/pialert.py", line 3471, in <module> sys.exit(main()) File "/home/pi/pialert/back/pialert.py", line 599, in main send_notifications() File "/home/pi/pialert/back/pialert.py", line 2281, in send_notifications update_api(True) File "/home/pi/pialert/back/pialert.py", line 3100, in update_api write_file(folder + 'notification_text.txt' , mail_text) File "/home/pi/pialert/back/pialert.py", line 3167, in write_file file = open (pPath, 'w', encoding='utf-8') FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/pialert/front/api/notification_text.txt' Voiding false (ghost) disconnections Pairing session events (connection / disconnection) Creating sessions snapshot Inserting scan results into Online_History Skipping repeated notifications [2023-02-04 19:22:21] Scan: Nmap for max 150s (2.5min) per device Estimated max delay: 150s (2.5min) [2023-02-04 19:22:21] Scan: Nmap SUCCESS for <IP-Adresse> (1/1) Check if something to report [API] Updating files in /front/api Nothing to do here. Starting nginx: nginx. Permissions check (All should be True) ------------------------------------------------ /config/pialert.conf | READ | True /config/pialert.conf | WRITE | True /db/pialert.db | READ | True /db/pialert.db | WRITE | True ------------------------------------------------ [Setup] Attempting to fix permissions. [Setup] Attempting to fix permissions. [upgradeDB] Re-creating Settings table [upgradeDB] Re-creating Parameters table [2023-02-04 19:28:33] Config: Imported new config [2023-02-04 19:28:33] Process: Start [2023-02-04 19:28:33] Check Internet IP: Retrieving Internet IP: <IP-Adresse> Retrieving previous IP: <IP-Adresse> No changes to perform Skipping Dynamic DNS update [2023-02-04 19:28:33] Scan: Pholus for 600s (10.0min) Pholus scan on [interface] eth1 [mask] <Subnetz> [2023-02-04 19:28:33] Scan: Pholus SUCCESS [2023-02-04 19:28:33] Scan Devices: arp-scan start Processing scan results Devices Detected.......: 2 arp-scan detected..: 0 Pi-hole detected...: +0 New Devices........: 0 Devices in this cycle..: 2 Down Alerts........: 0 New Down Alerts....: 0 New Connections....: 0 Disconnections.....: 0 IP Changes.........: 0 Updating DB Info Sessions Events (connect / discconnect) Creating new devices Updating Devices Info b'' Voiding false (ghost) disconnections Pairing session events (connection / disconnection) Creating sessions snapshot Inserting scan results into Online_History Skipping repeated notifications [2023-02-04 19:28:33] Scan: Nmap for max 150s (2.5min) per device Estimated max delay: 150s (2.5min) [2023-02-04 19:28:33] Scan: Nmap SUCCESS for <IP-Adresse> (1/1) Check if something to report [API] Updating files in /front/api Quote Link to comment
BloxxServer Posted February 4, 2023 Share Posted February 4, 2023 Hey, Ich hatte gerade das gleich Problem und eine kurzfristige Lösung für mich, war es zu mindestens einfach auf eine Version von vor zwei Wochen zu Downgraden. Dafür einfach den Docker Container bearbeiten und bei Repository hinter das Repository die gewünschte Version. Also z.B.: jokobsk/pi.alert:sha-7baae28 ich habe hier auf die Version sha-7baae28 von vor 13 Tagen gedowngraded. Das sollte die letzte Stable Version sein also 23.01.22. Ich hoffe Ich konnte dir damit zumindest kurzfristig helfen. Quote Link to comment
Lucas Mietke Posted February 11, 2023 Share Posted February 11, 2023 On 2/4/2023 at 11:30 PM, BloxxServer said: ich habe hier auf die Version sha-7baae28 von vor 13 Tagen gedowngraded. Das sollte die letzte Stable Version sein also 23.01.22. Ich hoffe Ich konnte dir damit zumindest kurzfristig helfen. danke für den Tipp. Kannst du mir kurz helfen mein PiAlert einzurichten? Mein PiHole läuft auf Custom BR0 - 192.168.188.4 Mein PiAlert bekomme ich nicht zum laufen wenn ich auf Custom BR0 einrichte und eine Custom IP dort eingebe (Startet aber ohne IP) Wenn ich den Bridge Modus wähle läuft er aber findet keine Devices... Jemand ein Tipp? Quote Link to comment
mgutt Posted February 12, 2023 Share Posted February 12, 2023 On 2/11/2023 at 4:29 PM, Lucas Mietke said: Wenn ich den Bridge Modus wähle läuft er aber findet keine Devices... Wie wäre es mit AdGuard Home? Der läuft meine ich in Bridge. Quote Link to comment
Lucas Mietke Posted February 12, 2023 Share Posted February 12, 2023 12 minutes ago, mgutt said: Wie wäre es mit AdGuard Home? Der läuft meine ich in Bridge. Hat sich schon erledigt. Man muss den Pi Alert downgraden. Dann Network Mode Custom -> IP eingeben (Komischerweise wird die IP im Docker nicht angezeigt aber man kann sich verbinden) Pi Alert läuft. Dann muss man in der FritzBox die Methode anwenden die Clients per DHCP an Pi Hole zusenden und nicht einfach nur den DNS ändern und schwupp läuft Quote Link to comment
MarkusR Posted February 12, 2023 Author Share Posted February 12, 2023 Hi Zusammen, bei mir hat das Downgrade auch geholfen, danke euch 🙂 Quote Link to comment
Helmonder Posted March 5, 2023 Share Posted March 5, 2023 ICh habe das ganze installiert, mit das downgraden scheint es auch zu functionieren, sieht aber so aus als ob pialert total nicht scanned... Er sieht nur sichselbst.. Vergess ich da irgendwas ? Quote Link to comment
ManuelOS Posted April 10, 2023 Share Posted April 10, 2023 (edited) eth0 musst du umstellen Edited April 10, 2023 by ManuelOS Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.