Seite 1 von 1
Openhab 5.0 installieren
Verfasst: 4. Okt 2025 14:35
von magarethe
Hallo Leute,
Bin am verzweifeln. Fahre hier noch ein Openhab 4.3.7
Möchte aber jetzt gern auf OH 5.0.1 umsteigen. Also habe ich ein Backup angelegt und mir unter Windows gesichert.
Dann habe ich mir das openHABian v1.11.0 64bit runtergeladen einen neue Festplatte gekauft und installiert. Dann habe ich den Raspberry hochgefahren, konnte mich auch anmelden über Putty. Mit openhab-cli info wird mir 5.0.1 angezeigt.
Webaufruf
http://ip-adresse:8080 funktioniert nicht -> Server nich erreichbar
http://ip-adresse:8443 funktioniert nicht -> Server nich erreichbar
Danach Samba eingerichtet, smb.conf angepasst, User gesetzt, Passwort gesetzt.
Aber eine Windowsfreigabe kann ich nicht einrichten. User/Passwort wird abgefragt (falsches Passwort wird angemerkt) aber danach ist die Freigabe
nicht zu erreichen.
Was läuft denn jetzt bei mir hier falsch.
Ich habe immer gedacht wenn der Openhab-Service gestartet ist, ist OH auch über das Web erreichbar?
Kann mir jemand die Schuppen aus den Haaren schütteln?
Danke Magarethe
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 15:34
von nw378
Was sagt denn
Sollte in etwa so aussehen:
Code: Alles auswählen
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: active (running) since Sat 2025-10-04 15:32:25 CEST; 23s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 783 ExecStartPre=/bin/rm -f /var/lock/LCK..ttyAMA0 /var/lock/LCK..ttyACM0 (code=exited, status=0/SUCCESS)
Main PID: 792 (java)
Tasks: 93 (limit: 9585)
CPU: 1min 3.933s
CGroup: /system.slice/openhab.service
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 15:56
von magarethe
Hallo nw378
also bei mir kommt:
Code: Alles auswählen
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; preset: enab>
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Sat 2025-10-04>
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 2191 ExecStartPre=/bin/rm -f /var/lock/LCK..ttyAMA0 /var/lock/LCK.>
Process: 2192 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STAR>
Main PID: 2192 (code=exited, status=255/EXCEPTION)
CPU: 5.400s
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 16:01
von magarethe
Hallo nw378
Sorry war zu kurz:
Code: Alles auswählen
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Sat 2025-10-04 14:58:29 BST; 2s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 6883 ExecStartPre=/bin/rm -f /var/lock/LCK..ttyAMA0 /var/lock/LCK..ttyACM0 (code=exited, status=0/SUCCESS)
Process: 6884 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} [color=#FF0040](code=exited, status=255/EXCEPTION)[/color]
Main PID: 6884 (code=exited, status=255/EXCEPTION)
CPU: 5.433s
Wobei das hier "(code=exited, status=255/EXCEPTION)" in ROT geschrieben steht - das ist womöglich die Ursache- ABER WARUM?
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 16:20
von nw378
Das sieht erstmal nicht so gut aus, der OH Service läuft nicht.
Du könntest mal einen Neustart versuchen, mittels
Der wird vermutlich nix bringen. Danach guck mal, was im journal steht:
Wie sieht's im OH-LOG aus?
/var/log/openhab/openhab.log
Erster Verdacht: Java nicht (korrekt) installiert?
Was sagt
?
EDIT:
Was auch nicht schaden kann:
und
und danach nochmal versuchen, zu starten.
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 16:43
von magarethe
Hallo nw378
SUPER - Danke
Als Java Version habe ich die : openjdk 21.0.8 2025-07-15 LTS
OpenJDK Runtime Environment Temurin-21.0.8+9 (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.8+9 (build 21.0.8+9-LTS, mixed mode, sharing)
Status habe ich jetzt:
Code: Alles auswählen
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: active (running) since Sat 2025-10-04 15:31:52 BST; 50s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 44719 ExecStartPre=/bin/rm -f /var/lock/LCK..ttyAMA0 /var/lock/LCK..ttyACM0 (code=exited, status=0/SUCCESS)
Main PID: 44720 (java)
Tasks: 216 (limit: 4525)
CPU: 2min 10.784s
CGroup: /system.slice/openhab.service
└─44720 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/open>
Oct 04 15:31:52 openhabian systemd[1]: Starting openhab.service - openHAB - empowering the smart home...
Oct 04 15:31:52 openhabian systemd[1]: Started openhab.service - openHAB - empowering the smart home.
Danach habe ich die Befehle:
ausgeführt und siehe da, der Webaufruf funktioniert!!! Danke Danke
Die Samba Konfig scheint immer noch nicht richtig zu sein. Ich kann immer noch keine Freigabe unter Windows auf das CONFIG Verzeichnis herstellen.
Aber ich bin ein ganzes Stück weiter.
Openhab 5.0 installieren -> SAMBA
Verfasst: 4. Okt 2025 17:20
von magarethe
Habe jetzt unter OH5 versucht SAMBA zu installieren. Erst einmal SAMBA komplett entfernt.
Ergebnis ok.
Danach habe ich über "openhabian-config" Samba erneut installieren lassen
Ergebnis:
Code: Alles auswählen
2025-10-04_16:15:12_BST [openHABian] Installing Samba...
$ apt-get install --yes -o DPkg::Lock::Timeout= samba
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
bind9 bind9utils ctdb ldb-tools ntp | chrony ufw winbind
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/888 kB of archives.
After this operation, 5,044 kB of additional disk space will be used.
Selecting previously unselected package samba.
(Reading database ... 98831 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.17.12+dfsg-0+deb12u2_arm64.deb ...
Unpacking samba (2:4.17.12+dfsg-0+deb12u2) ...
Setting up samba (2:4.17.12+dfsg-0+deb12u2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/samba-ad-dc.service → /lib/systemd/system/samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Processing triggers for man-db (2.11.2-2) ...
Updating FireMotD available updates count ...
OK
2025-10-04_16:15:25_BST [openHABian] Setting up Samba network shares...
Copying over custom 'smb.conf'...
$ cp /opt/openhabian/includes/smb.conf /etc/samba/smb.conf
Writing authentication data to openHABian default...
OK
2025-10-04_16:15:25_BST [openHABian] Setting up Samba service...
$ mkdir -p /var/log/samba /run/samba
$ sed -i -E -e /PIDFile/d; /NotifyAccess/ a PIDFile=smbd.pid
RuntimeDirectory=samba /lib/systemd/system/smbd.service
$ zram_dependency install nmbd smbd
$ systemctl -q daemon-reload
OK
2025-10-04_16:15:30_BST [openHABian] Checking for default openHABian username:password combination... FAILED
2025-10-04_16:15:30_BST [openHABian] We hope you got what you came for! See you again soon ;)
Also irgendetwas ist hier mit dem Usernamen openhabian FAILED!
Kann hier jemand helfen. Danke.
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 17:27
von nw378
Prima, dann ist das meiste ja schon geschafftt.
Für SMB sollten Standard-User und Passwort openhabian:openhabian sein.
Kannst Du auf der Shell direkt ändern mit:
Das
Code: Alles auswählen
[openHABian] Checking for default openHABian username:password combination... FAILED
sagt nur aus, dass für den User openhabian (für die Shell, nicht für SMB!!) noch das Standardpasswort openhabian besteht.
GELÖST! Openhab 5.0 installieren
Verfasst: 4. Okt 2025 18:11
von magarethe
Hallo nw378
So habe jetzt SAMBA auch zum laufen, kann alle Freigaben jetzt in Windows verwalten. Somit konnte ich auch mein Backup wieder einspielen.
Danach den Raspi neu gestartet und siehe da alles wieder online, bis auf die Shellys. Also einmal das Binding deinstalliert und wieder installiert, dann waren auch die Shellys wieder online.
PUH war ja ein wenig Aufregung aber jetzt läuft alles wieder sogar meine Buderus-Anbindung (Therme) und meine HUAWEI Solaranlage meldet brav alle Werte wieder.
Vielen Dank nw376 für deine großartige und schnelle Hilfe. Ich bin total begeistert.
Viele Grüße an Dich und an das gute Forum hier.
Magarethe
Re: Openhab 5.0 installieren
Verfasst: 4. Okt 2025 19:35
von nw378
Sehr gerne. Freut mich, wenn's läuft!