Seite 1 von 1

PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 17. Dez 2019 19:54
von Hoggle
Hallo.
hatte versehentlich das Netzteil des PI4 gezogen und dementsprechend den Pi aus gemacht.
Da Openhab leider nicht automatisch startet (Bin dummer User, der nicht weiß, wie ein service automatisch beim Systemstart mitstartet) hab ich mich mit dem PI-User per Putty angemeldet und durch

Code: Alles auswählen

sudo systemctl start openhab2.service
den Openhab Dienst gestartet.
im Web-Browser die ip mit Port 8080 aufgerufen und mich gefreut das alles läuft. :D

"Leider" hab ich mir dann gedacht, wenn ich schon mal auf dem pi bin, einfach mal

Code: Alles auswählen

sudo apt-get update/upgrade
machen, da das System ja schon ein wenig läuft (Updates sollen ein System doch sicherer machen ;) )

Tja, da hab ich wohl etwas falsch gemacht. Obwohl ich openhab gestartet hab und

Code: Alles auswählen

sudo systemctl status openhab2.service
meldet, das das System läuft, kommt im Browser die Meldung

Code: Alles auswählen

HTTP ERROR 404
Problem accessing /start/index. Reason:

    Not Found
Im Log-Viewer läuft auch nichts mehr, steht einfach auf älteren Einträgen.

Wo kann/muss ich anfangen zu prüfen, was ich machen kann?
Hab die letzte Stable installiert

Auszug aus dem/der Karaf:

Code: Alles auswählen

openhab> feature:list | grep Started
feature                                           x 4.2.7            x x        x Started     x standard-4.2.7           x Features Support
shell                                             x 4.2.7            x x        x Started     x standard-4.2.7           x Karaf Shell
deployer                                          x 4.2.7            x x        x Started     x standard-4.2.7           x Karaf Deployer
wrapper                                           x 4.2.7            x          x Started     x standard-4.2.7           x Provide OS integration
bundle                                            x 4.2.7            x x        x Started     x standard-4.2.7           x Provide Bundle support
config                                            x 4.2.7            x x        x Started     x standard-4.2.7           x Provide OSGi ConfigAdmin support
diagnostic                                        x 4.2.7            x x        x Started     x standard-4.2.7           x Provide Diagnostic support
instance                                          x 4.2.7            x x        x Started     x standard-4.2.7           x Provide Instance support
jaas                                              x 4.2.7            x x        x Started     x standard-4.2.7           x Provide JAAS support
log                                               x 4.2.7            x x        x Started     x standard-4.2.7           x Provide Log support
package                                           x 4.2.7            x x        x Started     x standard-4.2.7           x Package commands and mbeans
service                                           x 4.2.7            x x        x Started     x standard-4.2.7           x Provide Service support
system                                            x 4.2.7            x x        x Started     x standard-4.2.7           x Provide System support
http                                              x 4.2.7            x          x Started     x standard-4.2.7           x Implementation of the OSGI HTTP Service
pax-http-service                                  x 7.2.11           x          x Started     x standard-4.2.7           x Pax-Web OSGi HTTP Service
kar                                               x 4.2.7            x x        x Started     x standard-4.2.7           x Provide KAR (KARaf archive) support
ssh                                               x 4.2.7            x x        x Started     x standard-4.2.7           x Provide a SSHd server on Karaf
eventadmin                                        x 4.2.7            x x        x Started     x standard-4.2.7           x OSGi Event Admin service specification for event-
scr                                               x 4.2.7            x          x Started     x standard-4.2.7           x Declarative Service support
pax-web-core                                      x 7.2.11           x          x Started     x org.ops4j.pax.web-7.2.11 x Provide Core pax-web bundles
pax-jetty                                         x 9.4.20.v20190813 x          x Started     x org.ops4j.pax.web-7.2.11 x Provide Jetty engine support
pax-http-jetty                                    x 7.2.11           x          x Started     x org.ops4j.pax.web-7.2.11 x
pax-http                                          x 7.2.11           x          x Started     x org.ops4j.pax.web-7.2.11 x Implementation of the OSGI HTTP Service
pax-http-whiteboard                               x 7.2.11           x          x Started     x org.ops4j.pax.web-7.2.11 x Provide HTTP Whiteboard pattern support
openhab-core-base                                 x 2.5.0            x          x Started     x distro-2.5.0             x openHAB Core
openhab-core-auth-oauth2client                    x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-ephemeris                            x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-io-console-karaf                     x 2.5.0            x          x Started     x distro-2.5.0             x Karaf Console support for SmartHome stuff
openhab-core-io-rest-sitemap                      x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-io-rest-audio                        x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-io-rest-voice                        x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-io-rest-mdns                         x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-io-transport-mdns                    x 2.5.0            x          x Started     x distro-2.5.0             x
openhab.inc-model-core                            x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-item                           x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-item-ide                       x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-persistence                    x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-persistence-ide                x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-rule                           x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-rule-ide                       x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-script                         x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-script-ide                     x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-sitemap                        x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-sitemap-ide                    x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-thing                          x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-thing-ide                      x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-model-lsp                            x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-storage-json                         x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-ui                                   x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-core-ui-icon                              x 2.5.0            x          x Started     x distro-2.5.0             x
openhab-runtime-base                              x 2.5.0            x x        x Started     x distro-2.5.0             x openHAB Runtime Base
openhab-runtime-certificate                       x 2.5.0            x          x Started     x distro-2.5.0             x SSL Certificate Generator
openhab-transport-http                            x 2.5.0            x          x Started     x distro-2.5.0             x HTTP Transport
openhab-transport-mdns                            x 2.5.0            x          x Started     x distro-2.5.0             x mDNS Transport
openhab.tp-base                                   x 2.5.0            x          x Started     x distro-2.5.0             x openHAB Core Target Platform Base
openhab.tp-commons-net                            x 2.5.0            x          x Started     x distro-2.5.0             x The Apache Commons Net library
openhab.tp-gson                                   x 2.5.0            x          x Started     x distro-2.5.0             x Gson
openhab.tp-jax-rs                                 x 2.5.0            x          x Started     x distro-2.5.0             x
openhab.tp-jax-rs-min                             x 2.5.0            x          x Started     x distro-2.5.0             x
openhab.tp-kat.cpy-jersey-min-2.22.2              x 2.5.0            x          x Started     x distro-2.5.0             x
openhab.tp-jollyday                               x 2.5.0            x          x Started     x distro-2.5.0             x Jollyday library
openhab.tp-jmdns                                  x 2.5.0            x          x Started     x distro-2.5.0             x An implementation of multi-cast DNS in Java.
openhab.tp-lsp4j                                  x 2.5.0            x          x Started     x distro-2.5.0             x Eclipse LSP4J
openhab.tp-xtext                                  x 2.5.0            x          x Started     x distro-2.5.0             x Xtext - Language Engineering Made Easy
openhab.tp-xtext-ide                              x 2.5.0            x          x Started     x distro-2.5.0             x Xtext - IDE Support

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 18. Dez 2019 13:47
von udo1toni
Welche Ausgabe liefert

Code: Alles auswählen

sudo systemctl status openhab2.service
denn genau?

Was den Autostart betrifft: Da bist Du so nah dran... ;)

Code: Alles auswählen

sudo systemctl enable openhab2.service
sorgt dafür, dass openHAB autoamtisch bei Systemstart mit gestartet wird.
Da Dein System momentan ohnehin nicht richtig läuft, könntest Du Nägln mit Köpfen machen, mittels

Code: Alles auswählen

openhab-cli backup
Deine Konfiguration sichern, die erzeugte Sicherung extern speichern und anschließend das System komplett neu aufsetzen.
Kennst Du openHABian? Das hilft beim Einrichten von openHAB und auch beim Upgrade.

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 19. Dez 2019 20:10
von Hoggle
Hallo.
Hier der gewünschte Auszug:

Code: Alles auswählen

● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-12-17 19:30:43 CET; 2 days ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
 Main PID: 1560 (java)
    Tasks: 69 (limit: 4915)
   Memory: 211.2M
   CGroup: /system.slice/openhab2.service
           └─1560 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/
Dez 17 19:30:43 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Noch eine Frage: Openhabian kenne ich, aber gibt es zwischenzeitlich eine Buster Version?
Bis jetzt gab es keine Version für den pi4, aber das schaue ich mir an.

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 19. Dez 2019 20:45
von udo1toni
openHABian ist schon seit 4.August kompatibel mit dem Raspberry Pi4, siehe hier: https://github.com/openhab/openhabian/releases/tag/v1.5

Wichtig wäre, dass openHABian nach dem ersten Start zuerst ein self Update ausführt, da es eine Änderung der Repositories für Zulu Java gab. Wenn das nicht richtig eingespielt ist, klappt die ganze Installation nicht.

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 20. Dez 2019 16:07
von Hoggle
So, Openhabian installiert, vorher backup erstellt und nach der Installation backup mit restore zurückgespielt und schwupps, wieder "file not found" wenn ich http://ip-adresse:8080 angebe.
Mhh, da scheint etwas verschwunden zu sein.
Jemand einen Tipp?

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 20. Dez 2019 19:51
von udo1toni
Vermutlich wäre es besser, das Backup nicht automatisch zurückzuspielen, sondern Stück für Stück.

das Backup sollte ein Archiv sein, in welchem sich verschiedene Ordner befinden. Gebraucht wird alles unter /etc/openhab2/ (aber vorher mal in die Dateien rein schauen, die müssen alle normalen Text enthalten) und verschiedenes aus /var/lib/openhab2/ (da müsste ich jetzt aus dem Gedächtnis... lieber nicht, das wird nix...)
Auf jeden Fall solltest Du, bevor Du das Backup zurückspielst, openHAB mal starten und schauen, ob es ohne Deine Konfig normal startet.

Re: PI4B Update/upgrade und im Webbrowser Error404

Verfasst: 21. Dez 2019 13:16
von Hoggle
Hi.
Neues Image und per Hand die Daten aus dem config Verzeichniss kopiert.
Im Paperui die Bindings und die anderen Plugins/addons installiert und es läuft.

Ich muss mich mal damit beschäftigen, wie man things per Textdateien erstellt, dann kann man die passenden Namen sofort passend definieren und muss nicht jedesmal in den Itemdateien schauen, wie die things heissen.

Aber das erst nach Weihnachten. Erstmal Weihnachtsbaum aufstellen und smart machen :D