Seite 1 von 1

openhabian image Installationsproblem

Verfasst: 2. Mär 2020 18:34
von Kabelleger
Hallo, ich habe ein Problem mit der Installation des aktuellen openhabian-images auf meinem Raspberry Pi. Vielleicht kann mir jemand helfen.

Ich habe bereits mehrfach (zuletzt mit einer neuen SD-Karte) versucht eine vollständig fehlerfreie Installation von openhab 2.5.2 stable hinzubekommen. openhab läuft im Prinzip am Ende des Installationsprozesses auch. Das eigentliche Problem ist jedoch dass ich keinen ssh-Zugriff via Putty mit dem Standard-User openhabian bekomme. Das Problem dürfte aus dem Installationsprotokoll ersichtlich sein: der User wird nicht angelegt, wenn ich das richtig interpretiere (bin absoluter linux-Laie). Ich frage mich jedoch, warum das jedesmal schiefgeht :?: Ich downloade das image, schreibe es mit Etcher auf die SD-Karte und lasse die Installation mindestens 1h in Ruhe laufen, kann mich dann aber nie als openhabian User einloggen :cry:

Code: Alles auswählen

2019-07-10_01:21:34_BST [openHABian] Starting the openHABian initial setup.
2019-07-10_01:21:34_BST [openHABian] Storing configuration... OK
2019-07-10_01:21:34_BST [openHABian] Starting webserver with installation log... OK
2019-07-10_01:21:39_BST [openHABian] Changing default username and password... SKIPPED
2019-07-10_01:21:39_BST [openHABian] Setting up Wi-Fi connection... OK
2019-07-10_01:21:40_BST [openHABian] Ensuring network connectivity... OK
2019-07-10_01:21:40_BST [openHABian] Waiting for dpkg/apt to get ready... OK
2020-03-02_15:49:08_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2020-03-02_15:54:36_GMT [openHABian] Installing git package... OK
2020-03-02_15:55:00_GMT [openHABian] Cloning myself... OK
2020-03-02_15:55:02_GMT [openHABian] Executing 'openhabian-setup.sh unattended'... 
2020-03-02_15:55:02_GMT [openHABian] Checking for root privileges... OK
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists...
2020-03-02_15:55:08_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-03-02_15:55:08_GMT [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2020-03-02_16:55:10_CET [openHABian] Setting locale based on openhabian.conf... OK
2020-03-02_16:56:32_CET [openHABian] Setting hostname of the base system... OK
2020-03-02_16:56:32_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2020-03-02_16:57:21_CET [openHABian] Installing additional needed packages... OK
2020-03-02_16:58:13_CET [openHABian] Adding slightly tuned bash config files to system... cp: cannot create regular file '/home/openhabian/.bash_profile': No such file or directory
chown: invalid user: ‘openhabian:openhabian’
OK
2020-03-02_16:58:13_CET [openHABian] Adding slightly tuned vim config file to system... OK
2020-03-02_16:58:13_CET [openHABian] Downloading and setting up FireMotD... grep: /home/openhabian/.bash_profile: No such file or directory
/opt/openhabian/functions/packages.bash: line 35: /home/openhabian/.bash_profile: No such file or directory
OK 
2020-03-02_16:59:33_CET [openHABian] Installing Java Zulu 32-Bit OpenJDK... OK
2020-03-02_17:00:46_CET [openHABian] Installing or upgrading to latest openHAB release (stable)... OK
2020-03-02_17:01:41_CET [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2020-03-02_17:01:42_CET [openHABian] Adding openHAB syntax to vim editor... chown: invalid user: ‘openhabian:openhabian’
OK
2020-03-02_17:01:42_CET [openHABian] Adding openHAB syntax to nano editor... OK
2020-03-02_17:01:43_CET [openHABian] Adding openHAB scheme to multitail... OK
2020-03-02_17:01:43_CET [openHABian] Preparing openHAB folder mounts under /srv/... OK
2020-03-02_17:01:43_CET [openHABian] Applying file permissions recommendations... OK
2020-03-02_17:01:46_CET [openHABian] Applying miscellaneous system settings... chown: invalid user: ‘openhabian:openhabian’
Creating persistent systemd journal folder location: /var/log/journal
Keeping at most 30 days of systemd journal entries
Deleted archived journal /run/log/journal/c897ff5c48f14e68af97fa2059e4ed68/system@4c8fe121025f425aaff146937bc19397-0000000000000001-00058d48a7cee49d.journal (2.6M).
Vacuuming done, freed 2.6M of archived journals from /run/log/journal/c897ff5c48f14e68af97fa2059e4ed68.
OK
2020-03-02_17:01:46_CET [openHABian] Setting up Samba network shares... Failed to add entry for user openhabian.
OK
2020-03-02_17:02:49_CET [openHABian] Installing Node.js for arm (prerequisite for other packages)... OK
2020-03-02_17:03:08_CET [openHABian] Installing the openHAB Log Viewer (frontail) relative to nodejs base /usr/lib... OK
2020-03-02_17:03:36_CET [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2020-03-02_17:03:37_CET [openHABian] Execution of 'openhabian-setup.sh unattended' completed.

Re: openhabian image Installationsproblem

Verfasst: 2. Mär 2020 19:52
von udo1toni
Ich nutze selbst openhabian, allerdings nicht das Image für den Raspberry, sondern die nackten Scripte auf einem Standard debian System.

Für mich sieht es so aus, dass sich da im Script ein Fehler eingeschlichen hat. Der Meldungsteil

Code: Alles auswählen

invalid user: ‘openhabian:openhabian’
sieht für mich mehr als seltsam aus. Leider kann ich auf github dazu nichts finden, also hat entweder noch niemand veersucht, openhabian aufzusetzen, nachdem der Fehler entstanden ist, oder es gibt einen sehr seltsamen Seiteneffekt. (was ich mir irgendwie nicht vorstellen kann).

Kannst Du Dich (lokal) mit einem anderen User anmelden? Oder stammt das Log direkt von der SD-Karte?

Welches Modell des Raspberry nutzt Du denn?

Re: openhabian image Installationsproblem

Verfasst: 2. Mär 2020 20:21
von Kabelleger
Ja ich kann mich anmelden mit dem standard-user pi.

Das log kann man direkt während der openhabian-Installation über den webbrowser abrufen (Status http://openhab/).

Habe das Modell 3 A+

Re: openhabian image Installationsproblem

Verfasst: 2. Mär 2020 21:51
von Kabelleger
ok hat sich (hoffentlich) erledigt. Habe alles manuell so wie in der offiziellen Anleitung als Alternative beschrieben installiert (Other Linux Systems (add openHABian just like any other software)). Habe den Hinweis in einem deiner anderen Posts gefunden. Danke! :)

Re: openhabian image Installationsproblem

Verfasst: 2. Mär 2020 23:52
von udo1toni
Das wäre dann der nächste Tipp gewesen :) Prima, dass es jetzt läuft (wenn ich auch erwarten würde, dass das Image hier nichts anderes tut als die nativen Scripte)