Ankündigung

Einklappen
Keine Ankündigung bisher.

SmarthomeNG v1.11.0 Image für Raspberry Pi

Einklappen
Das ist ein wichtiges Thema.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Fazit:
    • Dein Kernel erkennt den Adapter korrekt, aber owserver 3.2p4 kann unter Kernel 6.x direkt über USB mit dem DS9490R nicht stabil kommunizieren.
    • Das Problem liegt also nicht an defekter Hardware oder falschen Rechten, sondern an Inkompatibilität zwischen owserver/libow und dem neuen Kernel-USB-Stack.

    Lösungsansätze:
    1. OWFS über owserver mit --i2c oder --net laufen lassen → Umgehung der direkten USB-Kommunikation.
    2. Alten Kernel nutzen (z. B. 5.x) → stabilere Unterstützung für DS2490/DS9490.
    3. Patched-Version von OWFS / libow → Manche User im OWFS-Forum haben Patches für Kernel 6.x veröffentlicht.
    Zapft ihr Narren der König hat Durst

    Kommentar


      #17
      Ich habe jetzt viel versucht 1-wire auf dem Raspi_SmarthomeNG_public_12.1.11.img zum laufen zu bekommen. Ich gebs auf. owserver stützt mit Segmentation fault ab. Mit Raspi_SmarthomeNG_public_12.1.10.img funktioniert es noch. Das ich zu blöde bin kann ich natürlich auch nicht ausschließen.
      ChatGPT hat auch das Zusammenspiel mit dem neueren Kernel in Verdacht und hat keine Lösung wie man es zum Laufen bekommt.
      Bin jetzt auf dem alten Image und habe SHNG und Smartvisu von Hand auf den neuesten Stand gebracht.
      Vielleicht geht es mit Trixie ja wieder. Wenn es wer am hinbekommen hat wäre ich für Tipps dankbar.
      Zapft ihr Narren der König hat Durst

      Kommentar


        #18
        Da würde ich ChatGPT nicht folgen. Ich habe das 1-wire Plugin (mit owserver) im aktuellen SmartHomeNG unter Debian 13 laufen, allerdings nutze ich das Image nicht, da ich keinen Pi einsetze. Bei mir läuft das auf einem NUC mit Intel Prozessor.
        Zuletzt geändert von bmx; 18.11.2025, 14:16.
        Viele Grüße
        Martin

        There is no cloud. It's only someone else's computer.

        Kommentar


          #19
          Hast du's mit dem Trixie Pre-Release schon mal probiert? Wäre super, wenn das helfen würde..
          https://github.com/smarthomeNG/raspb...image/releases

          Kommentar


            #20
            So, ich habe jetzt das Trixie Image nochmal komplett neu auf die ssd geschrieben, im raspi 4b 4gb gestartet und anschließend direkt setup_all ausgeführt und alles mitgeschrieben bis zur Fehlermeldung reverse proxy:

            Code:
            swap -> 0
            Swapping is disabled.
            sudo: dphys-swapfile: Befehl nicht gefunden
            Failed to disable unit: Unit dphys-swapfile.service does not exist
            Swap File is not-found.
            
            knxd -> 1
            nginx -> 3 Skip (enabled)
            
            nginx reverse Proxy -> 1
            Country -> set
            City -> Set
            EMail -> Set
            domain name -> set
            
            Move-on
            
            Server Certifikat:
            no-pass
            
            Notice
            ------
            Certificate created at:
            * /etc/ssl/easy-rsa/pki/issued/server.crt
            
            Notice
            ------
            Inline file created:
            * /etc/ssl/easy-rsa/pki/inline/server.inline
            
            Export Password -> vergeben
            
            Kein weiteres Zertifikat
            
            Folder content of /home/smarthome:
            ca.crt  openvpn_client_example.conf  rustup-init.sh  smarthomeng.private  ta.key  update-nodejs-and-nodered
            
            Finished certificate setup.
            Domain can not be read from the file /etc/ssl/easy-rsa/domain_name.
            Please provide domain name -> angegeben....
            
            lua script password -> eingegeben
            Alexa Benutzer -> eingegeben
            Alexa Password -> eingegeben
            
            Creating Letsencrypt certificate
            1 -> yes
            
            Dann:
            Going on with creating the SSL certificate
            
            Please provide your mail address in the next step.
            An unexpected error occurred:
            OSError: [Errno 74] Bad message: '/usr/lib/python3/dist-packages/fail2ban-1.1.0.egg-info/entry_points.txt'
            Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-yre_7tl8/log or re-run Certbot with -v for more details.
            Done:
            
            Now change the port forwarding from 80 to 443 on your router! Restarting nginx now.
            
            Copy certificates to your client.
            If you also want to use OpenVPN, just import the copied conf file to your favourite OpenVPN client (Tunnelblick, OpenVPN, etc.)
            Start and enable openvpn (later in the setup process)
            Job for nginx.service failed because the control process exited with error code.
            See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
            
            journalctl -xeu nginx.service:
            
             A start job for unit nginx.service has begun execution.
            ░░
            ░░ The job identifier is 15014.
            Nov 18 19:56:26 SmartHomeNG nginx[4349]: 2025/11/18 19:56:25 [warn] 4349#4349: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/https.c>
            Nov 18 19:56:26 SmartHomeNG nginx[4349]: 2025/11/18 19:56:25 [warn] 4349#4349: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/https.c>
            Nov 18 19:56:26 SmartHomeNG nginx[4349]: 2025/11/18 19:56:25 [emerg] 4349#4349: cannot load certificate "/etc/letsencrypt/live/---------.-----.---/fullchain.pem": BIO_new_file() failed (SS>
            Nov 18 19:56:26 SmartHomeNG nginx[4349]: nginx: configuration file /etc/nginx/nginx.conf test failed
            Nov 18 19:56:26 SmartHomeNG systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
            ░░ Subject: Unit process exited
            ░░ Defined-By: systemd
            ░░ Support: https://www.debian.org/support
            ░░
            ░░ An ExecStartPre= process belonging to unit nginx.service has exited.
            ░░
            ░░ The process' exit code is 'exited' and its exit status is 1.
            Nov 18 19:56:26 SmartHomeNG systemd[1]: nginx.service: Failed with result 'exit-code'.
            ░░ Subject: Unit failed
            ░░ Defined-By: systemd
            ░░ Support: https://www.debian.org/support
            ░░
            ░░ The unit nginx.service has entered the 'failed' state with result 'exit-code'.
            Nov 18 19:56:26 SmartHomeNG systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
            ░░ Subject: A start job for unit nginx.service has failed
            ░░ Defined-By: systemd
            ░░ Support: https://www.debian.org/support
            ░░
            ░░ A start job for unit nginx.service has finished with a failure.
            ░░
            ░░ The job identifier is 15014 and the job result is failed.
            ​
            Und da geht es dann nicht mehr weiter, da nginx nicht mehr startet....
            Zuletzt geändert von schuma; 18.11.2025, 20:05.

            Kommentar


              #21
              Was kommt bei systemctl status nginx.service

              und was bei certbot -v

              Kommentar


                #22
                OK, ich hatte gestern noch die falsche IP Adresse für den RASPI. Jetzt mit sudo nmtui eine feste IP vergeben (Die die auch durch die Firewall geht) und noch mal mit diesem Ergebnis:

                Code:
                Going on with creating the SSL certificate
                
                Please provide your mail address in the next step.
                Unable to find pre-hook command ufw in the PATH.
                (PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
                See also the --disable-hook-validation option.
                Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-f4am6yeb/log or re-run Certbot with -v for more details.
                Done:
                
                Now change the port forwarding from 80 to 443 on your router! Restarting nginx now.
                
                Copy certificates to your client.
                If you also want to use OpenVPN, just import the copied conf file to your favourite OpenVPN client (Tunnelblick, OpenVPN, etc.)
                Start and enable openvpn (later in the setup process)
                Job for nginx.service failed because the control process exited with error code.
                See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
                ​
                Service Status:
                Code:
                 systemctl status nginx.service
                × nginx.service - A high performance web server and a reverse proxy server
                     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
                    Drop-In: /etc/systemd/system/nginx.service.d
                             └─service_nginx_fix.conf
                     Active: failed (Result: exit-code) since Wed 2025-11-19 16:12:46 CET; 3min 41s ago
                 Invocation: 2a53d14ae5384eada6e5c3ab91ccc54a
                       Docs: man:nginx(8)
                    Process: 1615 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
                   Mem peak: 3.3M
                        CPU: 50ms
                
                Nov 19 16:12:46 SmartHomeNG systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
                Nov 19 16:12:46 SmartHomeNG nginx[1615]: 2025/11/19 16:12:46 [warn] 1615#1615: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/https.c>
                Nov 19 16:12:46 SmartHomeNG nginx[1615]: 2025/11/19 16:12:46 [warn] 1615#1615: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/https.c>
                Nov 19 16:12:46 SmartHomeNG nginx[1615]: 2025/11/19 16:12:46 [emerg] 1615#1615: cannot load certificate "/etc/letsencrypt/live/------------.----.---/fullchain.pem": BIO_new_file() failed (SS>
                Nov 19 16:12:46 SmartHomeNG nginx[1615]: nginx: configuration file /etc/nginx/nginx.conf test failed
                Nov 19 16:12:46 SmartHomeNG systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
                Nov 19 16:12:46 SmartHomeNG systemd[1]: nginx.service: Failed with result 'exit-code'.
                Nov 19 16:12:46 SmartHomeNG systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
                lines 1-19/19 (END)
                ​
                certbot -v:
                Code:
                Unable to find pre-hook command ufw in the PATH.
                (PATH is /home/smarthome/.cargo/bin:/usr/local/smarthome/venvs/py_313/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/lib/knxd:/opt/susvd:/opt/:/opt/setup:/home/smarthome/.local/bin:/home/smarthome/node_modules/.bin:/root/node_modules/.bin:/usr/local/smarthome/venvs/:/usr/local/smarthome/venvs/py_313/bin:/usr/local/smarthome/tools/)
                See also the --disable-hook-validation option.
                Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-p8c9fo2y/log or re-run Certbot with -v for more details.
                ​

                Kommentar


                  #23
                  Irgendwie scheint ja ufw zu fehlen. Aber auch mit --disable-hook-validation kann kein Certificate erstellt werden.

                  egal was ich tue, das Cert kann nicht erstellt werden.

                  Der Ordner /live/Domain fehlt auch komplett. Hatte ich von Hand angelegt, Rechte auf 755, bringt aber auch nichts.
                  Zuletzt geändert von schuma; Gestern, 22:28.

                  Kommentar


                    #24
                    Also der fail2ban Fehler ist weg..?
                    und nach apt install ufw
                    geht es auch nicht? Muss mir mal das prehook ansehen und vermutlich fixen

                    Kommentar


                      #25
                      Moin, nein, install ufw bringt auch nichts.
                      Ich habe da gestern sehr viel rumgebastelt. Teils mit ChatGPT. Da kam dann eins zum anderen. Auch Certbot lies sich dann nicht mehr neu installieren etc.
                      Bei einem neuen Test-Versuch werde ich dann mit einem neuen Image wieder komplett von vorne anfangen.
                      Ich hab da inzwischen eine komplett zweite Hardware mit der ich dann wieder testen kann.

                      Kommentar


                        #26
                        wenn ichs recht verstehe, gibt es die Datei /etc/letsencrypt/live/------------.----.---/fullchain.pem nicht und deshalb startet nginx nicht, ja?
                        Ob das jetzt wirklich an dem Prehook liegt..? Du könntest mal /etc/letsencrypt/cli.ini löschen und nochmals certs anlegen lassen, etc.
                        und was steht in der Datei hier? /var/log/letsencrypt/letsencrypt.log

                        Bleib vorerst mal beim aktuellen Image, das sollte schon auch gehen, selbst wenn bereits paar Dateien, etc. neu angelegt wurden.

                        Kommentar


                          #27
                          So, ich habe es jetzt halbwegs hinbekommen....

                          bei failtoban waren zwei Dateien beschädigt:
                          Code:
                          sudo rm /var/lib/dpkg/info/fail2ban.list
                          sudo rm /var/lib/dpkg/info/fail2ban.md5sums
                          sudo dpkg --remove --force-remove-reinstreq fail2ban
                          sudo dpkg --configure -a
                          sudo apt update
                          sudo apt install fail2ban​
                          ​
                          Danach konnte ich ufw installieren:
                          Code:
                          sudo apt install ufw
                          sudo ufw allow 80
                          sudo ufw allow 443
                          sudo ufw enable
                          sudo ufw status​
                          Dann fehlte das nginx Certbot Plugin:
                          Code:
                          sudo apt install python3-certbot-nginx
                          sudo systemctl status nginx
                          sudo systemctl start nginx
                          Danach bekam ich diese Meldung:
                          Code:
                          cannot load certificate "/etc/letsencrypt/live/-------------.----------.org/fullchain.pem": BIO_new_file() failed
                          ​
                          Das passiert, wenn in der Konfiguration bereits HTTPS aktiviert ist, aber Certbot noch kein Zertifikat erzeugt

                          Also dann:
                          Code:
                          sudo nano /etc/nginx/conf.d/https.conf
                          ssl_certificate /etc/letsencrypt/live/---------/fullchain.pem;
                          ssl_certificate_key /etc/letsencrypt/live/------------/privkey.pem;
                          ssl_certificate .......
                          listen ... ssl http2;​
                          ​
                          erstmal auskommentiert.

                          Code:
                          sudo nginx -t
                          sudo systemctl reload nginx​
                          Danach lief nginx noch irgendwie (port80)
                          Code:
                          sudo systemctl stop nginx
                          sudo pkill nginx
                          sudo systemctl start nginx
                          sudo systemctl status nginx
                          ​​
                          ​
                          Jetzt kann ich ein Cert holen:
                          Code:
                          sudo certbot --nginx -d ------------.---------.org
                          Und nun ist der reverse proxy ACTIVE (running)

                          Kommentar


                            #28
                            Was jetzt noch ist:
                            Code:
                            Nov 20 17:37:11 SmartHomeNG nginx[6479]: 192.168.178.176 forwarded for - - Request: "GET /smartvisu/lib/phone/service/fritz%21box_TR-064.php HTTP/1.1" - Status: 502 - Bytes sent: 157 Referr>
                            Nov 20 17:37:11 SmartHomeNG nginx[6479]: 2025/11/20 17:37:11 [crit] 6479#6479: *45 connect() to unix:/run/php/php8.2-fpm.sock failed (2: No such file or directory) while connecting to upstr>
                            Nov 20 17:37:11 SmartHomeNG nginx[6479]: 192.168.178.176 forwarded for - - Request: "GET /smartvisu/lib/weather/service/openweathermap.org.php?location=Hehlingen&cache_duration_minutes=4 HT>
                            Nov 20 17:42:08 SmartHomeNG nginx[6479]: 2025/11/20 17:42:08 [crit] 6479#6479: *49 connect() to unix:/run/php/php8.2-fpm.sock failed (2: No such file or directory) while connecting to upstr>
                            Nov 20 17:42:08 SmartHomeNG nginx[6479]: 192.168.178.176 forwarded for - - Request: "GET /smartvisu/lib/weather/service/openweathermap.org.php?location=Hehlingen&cache_duration_minutes=4 HT>
                            Nov 20 17:42:08 SmartHomeNG nginx[6479]: 2025/11/20 17:42:08 [crit] 6479#6479: *48 connect() to unix:/run/php/php8.2-fpm.sock failed (2: No such file or directory) while connecting to upstr>
                            Nov 20 17:42:08 SmartHomeNG nginx[6479]: 192.168.178.176 forwarded for - - Request: "GET /smartvisu/lib/phone/service/fritz%21box_TR-064.php HTTP/1.1" - Status: 502 - Bytes sent: 157 Referr>​

                            Kommentar


                              #29
                              ok, zu früh gefreut....
                              Nach einem reboot muss ich mich auf einmal mit einem Login am raspi anmelden. Mit smarthome als Nutzer geht das auch, aber ich komme nicht mehr über das Netzwerk auf den raspi. Kein SSH! obwohl ich es noch einmal in der raspi-config eingeschaltet habe.
                              EDIT: Ergbenis ssh fehlt in der ufw config.

                              Also mit
                              Code:
                              sudo ufw allow ssh
                              hinzugefügt

                              und, obwohl der reverse proxy nun läuft komme ich trotzdem nicht über die Domain auf den Rechner....

                              Ich kann auch nicht auf das Admin Interface von smarthomeng zugreifen etc...
                              Zuletzt geändert von schuma; Heute, 19:05.

                              Kommentar

                              Lädt...
                              X