Loxberry wiederbeleben

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    Loxberry wiederbeleben

    Moin,

    ich habe Probleme mit meinem Loxberry auf einem RasPi:
    Nach einem Stromausfall hat LoxBerry nicht mehr gebootet, die Karte schien aber OK, Konnte auf einem Linux Rechner auf alles zugreifen.

    Hab ich nicht wiederbeleben können --> Neu aufgesetzt.

    Daraufhin habe ich den Pi sauber heruntergefahren und ein Image der SD Karte erstellt --> Backup
    Karte zurück in den Pi --> Loxberry nicht zu erreichen! FHEM Plugin läuft aber noch.

    Habe mein Image auch auf eine andere SD Karte geschrieben, gleiches Bild.

    Was kann ich tun um Loxberry wiederzubeleben?
    Grundsätzliche Linux Kenntnisse sind vorhanden
  • tholle
    MS Profi
    • 26.08.2015
    • 830

    #2
    Zitat von bt25
    Karte zurück in den Pi --> Loxberry nicht zu erreichen! FHEM Plugin läuft aber noch.
    Kannst du das bitte einmal etwas genauer erklaeren?
    Was genau geht denn nicht? Kannst du dich nicht einloggen? Kannst du das Ding anpingen? Wenn ja, hast du mal ein telnet auf den SSH-Port und den Webport gemacht? Wenn ja, wie ist das Ergebnis?

    Was genau meinst du mit "wiederbeleben"?
    Das muesste man ja, wenn der LB gar nicht mehr reagiert. Aber da du schreibst, dass das FHEM-Plugin noch funktioniert, bedeutet das ja, dass der LB auch noch "lebt".

    Irgendwie verstehe ich nicht so ganz, was funktioniert und was nicht.

    Gruss,
    tholle

    Kommentar

    • Gast

      #3
      Das System läuft, komme per SSH drauf und auch FHEM ist per Browser erreichbar, nur Die Loxberry Oberfläche im Browser ist nicht erreichbar.
      Telnet auf Port 80: Connection refused.

      Es gibt auch Loxberry Prozesse:
      loxberry@loxberry:~ $ ps -ef |grep loxberry
      avahi 417 1 0 14:39 ? 00:00:00 avahi-daemon: registering [loxberry.local]
      nobody 1441 1 0 14:39 ? 00:00:01 /opt/loxberry/sbin/minidlnad -f /opt/loxberry/config/system/minidlna.conf
      loxberry 1610 1 0 14:40 ? 00:00:21 /usr/bin/perl fhem.pl /opt/loxberry/config/plugins/fhem/fhem.cfg
      loxberry 1621 1610 0 14:40 ? 00:00:54 /usr/bin/perl ./FHEM/00_SONOS.pm 4711 0 0
      root 32077 701 0 19:50 ? 00:00:00 sshd: loxberry [priv]
      loxberry 32096 32077 0 19:50 ? 00:00:00 sshd: loxberry@pts/0
      loxberry 32098 32096 0 19:50 pts/0 00:00:00 -bash

      Gruß
      Burkhard

      Kommentar

      • tholle
        MS Profi
        • 26.08.2015
        • 830

        #4
        Naja, etweder lauscht kein Webserver auf dem Port oder er wird von der Firewall geblock.

        Diese beiden Sachen musst du abklaeren.

        Webservice-Check z.B. mit

        Code:
         
         [FONT=arial]sudo netstat -tnlp | grep :80[/FONT]
        und Firewall-Check mit:

        Code:
        [FONT=arial]sudo iptables -L[/FONT]

        Gruss,
        tholle

        Kommentar

        • Gast

          #5
          Hier die Ausgaben der Befehle:

          Code:
          netstat -tnlp | grep :80
          
          tcp        0      0 0.0.0.0:8083            0.0.0.0:*               LISTEN      1610/perl
          tcp        0      0 0.0.0.0:8084            0.0.0.0:*               LISTEN      1610/perl
          tcp        0      0 0.0.0.0:8085            0.0.0.0:*               LISTEN      1610/perl
          Da sehe ich nur FHEM Ports

          Code:
          sudo iptables -L
          
          Chain INPUT (policy ACCEPT)
          target     prot opt source               destination
          
          Chain FORWARD (policy ACCEPT)
          target     prot opt source               destination
          
          Chain OUTPUT (policy ACCEPT)
          target     prot opt source               destination

          Kommentar

          • svethi
            Lebende Foren Legende
            • 25.08.2015
            • 6321

            #6
            Grundsätzliche Linuxkenntnisse sind vorhanden? Dann solltest Du wissen, dass auf Linuxsystemen meist Apache als Webserver verwendet wird. Gibt es diesen nicht, oder ist nicht gestartet, gibt es auch keine Weboberfläche des Loxberry. Also solltest Du prüfen was Dein Apache macht.
            Miniserver; KNX; Vitogate; EnOcean (EnOceanPi); Loxone Air; Caldav-Kalenderanbindung; RaspberryPi und für keine Frickellösung zu schade :-)

            Kommentar

            • Gast

              #7
              Mir scheint dafür reichen meine Kenntnisse nicht...

              Code:
               systemctl status apache2.service
              ● apache2.service - LSB: Apache2 web server
                 Loaded: loaded (/etc/init.d/apache2)
                Drop-In: /lib/systemd/system/apache2.service.d
                         └─forking.conf
                 Active: failed (Result: exit-code) since Sat 2017-06-24 14:13:26 CEST; 10s ago
                Process: 15643 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
              
              Jun 24 14:13:26 loxberry apache2[15643]: Starting web server: apache2 failed!
              Jun 24 14:13:26 loxberry apache2[15643]: The apache2 configtest failed. ... (warning).
              Jun 24 14:13:26 loxberry apache2[15643]: Output of config test was:
              Jun 24 14:13:26 loxberry apache2[15643]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /opt/lo...
              Jun 24 14:13:26 loxberry apache2[15643]: Action 'configtest' failed.
              Jun 24 14:13:26 loxberry apache2[15643]: The Apache error log may have more information.
              Jun 24 14:13:26 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
              Jun 24 14:13:26 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
              Jun 24 14:13:26 loxberry systemd[1]: Unit apache2.service entered failed state.
              Hint: Some lines were ellipsized, use -l to show in full.
              in der Zeile 140 steht:
              Code:
              IncludeOptional mods-enabled/*.load
              Wenn man das googled findet man den Hinweis libapache2-mod-php5 zu installiern
              Code:
              sudo apt-get install libapache2-mod-php5
              das endet allerdings in
              Code:
               Unable to locate package libapache2-mod-php
              Die Suche findet es aber:
              Code:
               sudo apt search libapache2-mod-php
              Sorting... Done
              Full Text Search... Done
              libapache2-mod-php5/oldstable,now 5.6.30+dfsg-0+deb8u1 armhf [installed,automatic]
                server-side, HTML-embedded scripting language (Apache 2 module)
              Jemand eine Idee?

              @edit:
              In der systemctl ausgabe wird noch die Datei /opt/loxberry/system/apache2/mods-enabled/authz_user.load erwähnt, da steht in Zeile 2:
              Code:
              LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so
              Dazu hat google nix ausgespuckt!?
              Zuletzt geändert von Gast; 24.06.2017, 13:39.

              Kommentar

              • svethi
                Lebende Foren Legende
                • 25.08.2015
                • 6321

                #8
                Also wenn Du sagst, dass Du einen Loxberry neu aufgesetzt hast, also das Image geladen, Image auf Karte, Loxberry gestartet, Loxberry upgedatet hast, dann ist der Loxberry auf dem Stand, der vorausgesetzt wird und auch funktioniert. Wenn der Loxberry in dem Moment den Apache nicht starten kann, dann musst Du entweder irgend etwas installiert haben was etwas "zerstört" hat, oder die SD-Karte hat eine Macke und er kann nicht alles lesen. Wenn das Image korrekt auf der Karte ist, läuft der Loxberry definitiv richtig
                Miniserver; KNX; Vitogate; EnOcean (EnOceanPi); Loxone Air; Caldav-Kalenderanbindung; RaspberryPi und für keine Frickellösung zu schade :-)

                Kommentar

                • darkstar1984
                  Extension Master
                  • 25.08.2015
                  • 190

                  #9
                  ich habe das gleiche Problem. Hatte gar nicht mitbekommen, dass es mittlerweile ein 0.2.3. Frodo Upgrade gibt und hab dieses heute nachinstalliert....
                  jetzt läuft der Loxberry zwar (Zugriff über Putty) und FHEM Plugin läuft auch... aber WebIf Loxberry funktioniert nicht.

                  Wie krieg ich den Apache zum laufen... hab keine Lust jetzt nochmal alles frisch zu machen...
                  Loxone Miniserver / 1-Wire Extension / Air Base Extension, Tree Extension / Dimmer Extension / Debian Server, Raspberry

                  Kommentar

                  • darkstar1984
                    Extension Master
                    • 25.08.2015
                    • 190

                    #10
                    ...@loxberry:~# systemctl status apache2.service
                    â apache2.service - LSB: Apache2 web server
                    Loaded: loaded (/etc/init.d/apache2)
                    Drop-In: /lib/systemd/system/apache2.service.d
                    ââforking.conf
                    Active: failed (Result: exit-code) since Thu 2017-08-24 13:16:33 CEST; 14s ag o
                    Process: 2824 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU RE)

                    Aug 24 13:16:33 loxberry apache2[2824]: Starting web server: apache2 failed!
                    Aug 24 13:16:33 loxberry apache2[2824]: The apache2 configtest failed. ... (....
                    Aug 24 13:16:33 loxberry apache2[2824]: Output of config test was:
                    Aug 24 13:16:33 loxberry apache2[2824]: apache2: Syntax error on line 140 of...r
                    Aug 24 13:16:33 loxberry apache2[2824]: Action 'configtest' failed.
                    Aug 24 13:16:33 loxberry apache2[2824]: The Apache error log may have more i....
                    Aug 24 13:16:33 loxberry systemd[1]: apache2.service: control process exite...=1
                    Aug 24 13:16:33 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    Aug 24 13:16:33 loxberry systemd[1]: Unit apache2.service entered failed state.
                    Hint: Some lines were ellipsized, use -l to show in full.

                    ....@loxberry:~# journalctl -xn
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.con
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.
                    lines 1-23
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax err
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.
                    lines 1-23
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.
                    lines 1-23
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /opt/loxberry/sy
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.
                    lines 1-23
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /opt/loxberry/system/apache2/mods-enabled/php
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.
                    lines 1-23
                    -- Logs begin at Thu 2017-08-24 12:59:47 CEST, end at Thu 2017-08-24 13:22:43 CEST. --
                    Aug 24 13:22:43 loxberry systemd[1]: Starting LSB: Apache2 web server...
                    -- Subject: Unit apache2.service has begun with start-up
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has begun starting up.
                    Aug 24 13:22:43 loxberry apache2[3270]: Starting web server: apache2 failed!
                    Aug 24 13:22:43 loxberry apache2[3270]: The apache2 configtest failed. ... (warning).
                    Aug 24 13:22:43 loxberry apache2[3270]: Output of config test was:
                    Aug 24 13:22:43 loxberry apache2[3270]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /opt/loxberry/system/apache2/mods-enabled/php5.load: Cannot lo
                    Aug 24 13:22:43 loxberry apache2[3270]: Action 'configtest' failed.
                    Aug 24 13:22:43 loxberry apache2[3270]: The Apache error log may have more information.
                    Aug 24 13:22:43 loxberry systemd[1]: apache2.service: control process exited, code=exited status=1
                    Aug 24 13:22:43 loxberry systemd[1]: Failed to start LSB: Apache2 web server.
                    -- Subject: Unit apache2.service has failed
                    -- Defined-By: systemd
                    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
                    --
                    -- Unit apache2.service has failed.
                    --
                    -- The result is failed.
                    Aug 24 13:22:43 loxberry systemd[1]: Unit apache2.service entered failed state.


                    Zuletzt geändert von darkstar1984; 24.08.2017, 12:27.
                    Loxone Miniserver / 1-Wire Extension / Air Base Extension, Tree Extension / Dimmer Extension / Debian Server, Raspberry

                    Kommentar

                    • Prof.Mobilux
                      Supermoderator
                      • 25.08.2015
                      • 4762

                      #11
                      Mmmhhh, das PHP5-Paket ist irgendwie zerschossen. Eventuell aktualisiert das die FHEM-Installation bzw, das FHEM-Paket selbstständig.... Hoffentlich nicht mit einem automatischen Upgrade auf PHP7 oder so etwas...

                      Ich habe es bei meinem Test-LoxBerry gerade mal durchgespielt. Folgendes sollte gehen:

                      Code:
                      loxberry@loxberry:~ $ su -
                      Password:
                      root@loxberry:~# apt-get update
                      [....]
                      root@loxberry:~# apt-get install php5
                      Wenn das nicht durchläuft bitte exakte Ausgabe von apt mal hier posten.
                      🇺🇦 Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine


                      LoxBerry - Beyond the Limits

                      Kommentar

                      • orli
                        Lox Guru
                        • 13.11.2016
                        • 2554

                        #12
                        Zitat von Prof.Mobilux
                        Mmmhhh, das PHP5-Paket ist irgendwie zerschossen. Eventuell aktualisiert das die FHEM-Installation bzw, das FHEM-Paket selbstständig.... Hoffentlich nicht mit einem automatischen Upgrade auf PHP7 oder so etwas
                        Kann zwar nur von einem virtuellen Image berichten, aber da: negativ. Hab gestern via FHEM Kommandozeile mein FHEM auf die neuste Version gehoben, außer den FHEM Perl Paketen wurde da nix aktualisiert.

                        Sollte ein PHP5 Install wie oben nicht reichen, könnte darkstar1984 auch das Apache Modul nochmal drüber jagen:


                        Code:
                        apt-get install --reinstall libapache2-mod-php5

                        Kommentar

                        • darkstar1984
                          Extension Master
                          • 25.08.2015
                          • 190

                          #13
                          @ Prof.Mobilux nach "apt-get install php5" hat er gemeldet php5 aktuell und nichts weiter

                          @ orli vielen dank Läuft wieder

                          Danke für die schnelle Hilfe Jungs
                          Loxone Miniserver / 1-Wire Extension / Air Base Extension, Tree Extension / Dimmer Extension / Debian Server, Raspberry

                          Kommentar

                          Lädt...