Openhabian Fail not working

  • Platform information:
    • Hardware:Rpi 3
    • OS: openhabian
  • Issue of the topic:
    I have done the normal openhabian install. but after every thing finished I rebooted the pi. when I reconnect to it via ssh I only get this and it does not want to scroll down . I also can’t connect to the dashboard. please help
Every 2.0s: cat /boot/first-boot.log                                        openHABianPi: Thu Jan 10 22:41:41 2019

2018-03-13_22:53:36_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:36_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:36_UTC [openHABian] Changing default username and password... OK
2018-03-13_22:53:40_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:40_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:41_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-10_15:09:44_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2019-01-10_15:27:51_UTC [openHABian] Installing git package... OK
2019-01-10_15:30:06_UTC [openHABian] Cloning myself... OK
2019-01-10_15:30:15_UTC [openHABian] Executing 'openhabian-setup.sh unattended'...
2019-01-10_15:30:15_UTC [openHABian] Checking for root privileges... OK
2019-01-10_15:30:15_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2019-01-10_15:30:15_UTC [openHABian] Setting timezone based on IP geolocation... OK (Africa/Johannesburg)
2019-01-10_17:36:10_SAST [openHABian] Setting locale based on openhabian.conf... OK
2019-01-10_17:36:39_SAST [openHABian] Setting hostname of the base system... OK
2019-01-10_17:36:39_SAST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2019-01-10_17:36:39_SAST [openHABian] Enabling Audio output... OK
2019-01-10_17:36:40_SAST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2019-01-10_17:38:56_SAST [openHABian] Installing additional needed packages... OK
2019-01-10_17:39:44_SAST [openHABian] Installing additional bluetooth packages... OK
2019-01-10_17:39:54_SAST [openHABian] Adding slightly tuned bash config files to system... OK
2019-01-10_17:39:54_SAST [openHABian] Adding slightly tuned vim config file to system... OK
2019-01-10_17:39:54_SAST [openHABian] Downloading and setting up FireMotD... OK
/opt/openhabian/openhabian-setup.sh: line 70: java_zulu_embedded: command not found
2019-01-10_17:41:52_SAST [openHABian] Installing or upgrading to latest openHAB release (stable)... OK
2019-01-10_17:52:24_SAST [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2019-01-10_17:52:25_SAST [openHABian] Adding openHAB syntax to vim editor... OK
2019-01-10_17:52:26_SAST [openHABian] Adding openHAB syntax to nano editor... OK
2019-01-10_17:52:26_SAST [openHABian] Adding openHAB scheme to multitail... OK
2019-01-10_17:52:26_SAST [openHABian] Preparing openHAB folder mounts under /srv/... OK
2019-01-10_17:52:26_SAST [openHABian] Applying file permissions recommendations... OK
2019-01-10_17:52:29_SAST [openHABian] Applying miscellaneous system settings... OK
2019-01-10_17:52:29_SAST [openHABian] Setting up Samba network shares... OK
2019-01-10_17:54:57_SAST [openHABian] Installing Node.js for arm (prerequisite for other packages)... OK
2019-01-10_17:55:37_SAST [openHABian] Installing the openHAB Log Viewer (frontail)... OK
2019-01-10_17:56:58_SAST [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2019-01-10_17:56:58_SAST [openHABian] Execution of 'openhabian-setup.sh unattended' completed.
2019-01-10_17:56:58_SAST [openHABian] Waiting for openHAB to become ready... 2019-01-10_22:03:45_SAST [openHABian]
 Starting the openHABian initial setup.
2019-01-10_22:03:45_SAST [openHABian] Storing configuration... OK

this happens every time.
I can’t see if there is more?

ast login: Thu Jan 10 22:52:31 on ttys000
Allens-MBP:~ allenbubb$ ssh openhabian@192.168.1.5
openhabian@192.168.1.5's password: 
Linux openHABianPi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jan 10 23:19:40 2019 from 192.168.1.123












Every 2.0s: cat /boot/first-boot.log                                                                                                                      openHABianPi: Thu Jan 10 23:26:41 2019

2018-03-13_22:53:36_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:36_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:36_UTC [openHABian] Changing default username and password... OK
2018-03-13_22:53:40_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:40_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:41_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-10_15:09:44_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2019-01-10_15:27:51_UTC [openHABian] Installing git package... OK
2019-01-10_15:30:06_UTC [openHABian] Cloning myself... OK
2019-01-10_15:30:15_UTC [openHABian] Executing 'openhabian-setup.sh unattended'...
2019-01-10_15:30:15_UTC [openHABian] Checking for root privileges... OK
2019-01-10_15:30:15_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2019-01-10_15:30:15_UTC [openHABian] Setting timezone based on IP geolocation... OK (Africa/Johannesburg)
2019-01-10_17:36:10_SAST [openHABian] Setting locale based on openhabian.conf... OK
2019-01-10_17:36:39_SAST [openHABian] Setting hostname of the base system... OK
2019-01-10_17:36:39_SAST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2019-01-10_17:36:39_SAST [openHABian] Enabling Audio output... OK
2019-01-10_17:36:40_SAST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2019-01-10_17:38:56_SAST [openHABian] Installing additional needed packages... OK
2019-01-10_17:39:44_SAST [openHABian] Installing additional bluetooth packages... OK
2019-01-10_17:39:54_SAST [openHABian] Adding slightly tuned bash config files to system... OK
2019-01-10_17:39:54_SAST [openHABian] Adding slightly tuned vim config file to system... OK
2019-01-10_17:39:54_SAST [openHABian] Downloading and setting up FireMotD... OK
/opt/openhabian/openhabian-setup.sh: line 70: java_zulu_embedded: command not found
2019-01-10_17:41:52_SAST [openHABian] Installing or upgrading to latest openHAB release (stable)... OK
2019-01-10_17:52:24_SAST [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2019-01-10_17:52:25_SAST [openHABian] Adding openHAB syntax to vim editor... OK
2019-01-10_17:52:26_SAST [openHABian] Adding openHAB syntax to nano editor... OK
2019-01-10_17:52:26_SAST [openHABian] Adding openHAB scheme to multitail... OK
2019-01-10_17:52:26_SAST [openHABian] Preparing openHAB folder mounts under /srv/... OK
2019-01-10_17:52:26_SAST [openHABian] Applying file permissions recommendations... OK
2019-01-10_17:52:29_SAST [openHABian] Applying miscellaneous system settings... OK
2019-01-10_17:52:29_SAST [openHABian] Setting up Samba network shares... OK
2019-01-10_17:54:57_SAST [openHABian] Installing Node.js for arm (prerequisite for other packages)... OK
2019-01-10_17:55:37_SAST [openHABian] Installing the openHAB Log Viewer (frontail)... OK
2019-01-10_17:56:58_SAST [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2019-01-10_17:56:58_SAST [openHABian] Execution of 'openhabian-setup.sh unattended' completed.
2019-01-10_17:56:58_SAST [openHABian] Waiting for openHAB to become ready... 2019-01-10_22:03:45_SAST [openHABian] Starting the openHABian initial setup.
2019-01-10_22:03:45_SAST [openHABian] Storing configuration... OK
2019-01-10_22:03:45_SAST [openHABian] Changing default username and password... SKIPPED
2019-01-10_22:03:45_SAST [openHABian] Setting up Ethernet connection... OK
2019-01-10_22:03:45_SAST [openHABian] Ensuring network connectivity... OK
2019-01-10_22:03:46_SAST [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-10_22:03:58_SAST [openHABian] Updating repositories and upgrading installed packages... OK
2019-01-10_22:04:16_SAST [openHABian] Installing git package... OK
2019-01-10_22:04:26_SAST [openHABian] Cloning myself... FAILED
2019-01-10_22:04:26_SAST [openHABian] Initial setup exiting with an error!

that’s all I get :sleepy::sob:

Exact same problem here:

Raspberry Pi 3 B
OS: openhabian

same output as above :frowning:

Can you boot it and run the openHABian install while it is connected to a monitor and keyboard? It is clearly getting far enough to start up the SSH daemon but it isn’t clear from what you’ve posted where it is getting stuck. Maybe there is more on the boot screen.

The one thing i saw is when i did the installation. Everything was done. But when i checked the status of openhab it sed that it was not running. I logged out of ssh and logged back in. Motd came up. I then sudo rebooted it and bang. There i sit with this .
I will go and get the pi out of the ceiling cavity . Later.

Regards
Allen

I already opened an issue: https://github.com/openhab/openhabian/issues/508

This is what I get.
now

[14:59:00] openhabian@openHABianPi:~$ sudo systemctl status openhab2.service
[sudo] password for openhabian:
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2019-01-11 14:59:18 SAST; 2s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 1984 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
  Process: 1968 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
 Main PID: 1968 (code=exited, status=1/FAILURE)

Jan 11 14:59:18 openHABianPi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Jan 11 14:59:18 openHABianPi systemd[1]: openhab2.service: Unit entered failed state.
Jan 11 14:59:18 openHABianPi systemd[1]: openhab2.service: Failed with result 'exit-code'.
[14:59:20] openhabian@openHABianPi:~$

[15:05:34] openhabian@openHABianPi:~$ openhab-cli status

A systemd service configuration exists...
Use 'sudo /bin/systemctl status openhab2.service' to find the status of an openHAB service
openHAB is not running.
[15:05:49] openhabian@openHABianPi:~$

@allen there was a post about 2 hours ago in the issue opened above that may be worth a look.

Quoting the post:
“There seems to be a typo in /opt/jopenhabian/functions/java-jre.sh. The script tries to open /opt/openhabian/includes/azul-zulu-license.md but there is no such file. The file-name is azul_zulu_license.md with underscores instead of dashes! Maybe that is the problem?”

EDIT: The issue was just closed so maybe this is the fix.:smiley:

Same problem here. For info I also tried plain raspbian and openhab via packages (no openhabian) but expereince the same issue. As posted here:

Tried with a fresh SD flash and got this

Every 2.0s: cat /boot/first-boot.log                                                                        openHABianPi: Fri Jan 11 14:48:52 2019

2018-03-13_22:53:37_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:37_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:37_UTC [openHABian] Changing default username and password... OK
2018-03-13_22:53:38_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:38_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:38_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-11_14:46:53_UTC [openHABian] Updating repositories and upgrading installed packages... FAILED
2019-01-11_14:47:12_UTC [openHABian] Initial setup exiting with an error!

EDIT: After a reboot it seems to work better…but not running yet

What I can see in
sudo nano /opt/openhabian/functions/java-jre.sh

it contains underscore

...
whiptail --textbox $BASEDIR/includes/azul_zulu_license.md --scrolltext 27 116
....

But won’t start - same error.
Anyone made it to work?

@4integration You may be blocked by the DNS. If you can access the router try changing the DNS to something like Google 8.8.8.8 or 8.8.4.4 then see if the repositories will get upgraded.

@H102 Thanks but I doubt so. I have several machines (Windows, Linux and Raspberries) and all can access Internet. Also had a fresh install incl updates of Raspian today - no issues to update.

After reboot it worked but openHAB can still not start.

Have you or @allen @bonieP got it working?

no I don’t know what to do

[18:15:29] openhabian@openHABianPi:~$ sudo /etc/init.d/openhab2 status
[sudo] password for openhabian:
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2019-01-11 18:15:42 SAST; 3s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 1446 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
  Process: 1430 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
 Main PID: 1430 (code=exited, status=1/FAILURE)

Jan 11 18:15:42 openHABianPi systemd[1]: openhab2.service: Failed with result 'exit-code'.
[18:15:45] openhabian@openHABianPi:~$

did clean install and still

[18:34:02] openhabian@openHABianPi:~$ sudo /boot/first-boot.sh
2019-01-11_18:35:02_SAST [openHABian] Starting the openHABian initial setup.
2019-01-11_18:35:02_SAST [openHABian] Storing configuration... OK
2019-01-11_18:35:02_SAST [openHABian] Changing default username and password... SKIPPED
2019-01-11_18:35:02_SAST [openHABian] Setting up Ethernet connection... OK
2019-01-11_18:35:02_SAST [openHABian] Ensuring network connectivity... OK
2019-01-11_18:35:02_SAST [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-11_18:35:10_SAST [openHABian] Updating repositories and upgrading installed packages... OK
2019-01-11_18:35:27_SAST [openHABian] Installing git package... OK
2019-01-11_18:35:37_SAST [openHABian] Cloning myself... FAILED
2019-01-11_18:35:37_SAST [openHABian] Initial setup exiting with an error!

still no luck…

FYI the above issue on github, that I posted as being closed, has been reopened. Good to know their working on it and hopefully a fix will be soon.:crossed_fingers: You may want to follow the issue and there and include any additional info you may have.:wink:

As soon as possible I will install a fresh image on my test RPI and try to duplicate the issue to see if I can provide help as well.

1 Like

Thank you. will follow it now

@allen Looking at your log it stops with Cloning myself. Is this as far as the install has made it?

I’m still installing on my test RPI but it looks to be failing/stalling at the Failed to open terminal line.

This is after the zulu fix. This afternoon. But as var as i can get it
It does the git install but. Then when cloning it fails.

I tried a new openhabian flash now and it seems to work

Every 2.0s: cat /boot/first-boot.log                                                                                               openHABianPi: Sat Jan 12 11:31:32 2019

2018-03-13_22:53:36_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:36_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:36_UTC [openHABian] Changing default username and password... OK
2018-03-13_22:53:37_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:37_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:37_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2019-01-12_09:44:36_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2019-01-12_09:53:15_UTC [openHABian] Installing git package... OK
2019-01-12_09:54:08_UTC [openHABian] Cloning myself... OK
2019-01-12_09:54:11_UTC [openHABian] Executing 'openhabian-setup.sh unattended'...
2019-01-12_09:54:11_UTC [openHABian] Checking for root privileges... OK
2019-01-12_09:54:11_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2019-01-12_09:54:11_UTC [openHABian] Setting timezone based on IP geolocation... OK (Europe/Stockholm)
2019-01-12_10:56:06_CET [openHABian] Setting locale based on openhabian.conf... OK
2019-01-12_10:56:52_CET [openHABian] Setting hostname of the base system... OK
2019-01-12_10:56:52_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2019-01-12_10:56:52_CET [openHABian] Enabling Audio output... OK
2019-01-12_10:56:53_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2019-01-12_10:58:07_CET [openHABian] Installing additional needed packages... OK
2019-01-12_10:58:28_CET [openHABian] Adding slightly tuned bash config files to system... OK
2019-01-12_10:58:28_CET [openHABian] Adding slightly tuned vim config file to system... OK
2019-01-12_10:58:28_CET [openHABian] Downloading and setting up FireMotD... OK
2019-01-12_10:59:05_CET [openHABian] Installing Zulu Embedded OpenJDK... OK
2019-01-12_11:01:18_CET [openHABian] Installing or upgrading to latest openHAB release (stable)... OK
2019-01-12_11:02:24_CET [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2019-01-12_11:02:24_CET [openHABian] Adding openHAB syntax to vim editor... OK
2019-01-12_11:02:25_CET [openHABian] Adding openHAB syntax to nano editor... OK
2019-01-12_11:02:25_CET [openHABian] Adding openHAB scheme to multitail... OK
2019-01-12_11:02:25_CET [openHABian] Preparing openHAB folder mounts under /srv/... OK
2019-01-12_11:02:26_CET [openHABian] Applying file permissions recommendations... OK
2019-01-12_11:02:29_CET [openHABian] Applying miscellaneous system settings... OK
2019-01-12_11:02:29_CET [openHABian] Setting up Samba network shares... OK
2019-01-12_11:04:27_CET [openHABian] Installing Node.js for arm (prerequisite for other packages)... OK
2019-01-12_11:04:35_CET [openHABian] Installing the openHAB Log Viewer (frontail)... OK
2019-01-12_11:05:33_CET [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2019-01-12_11:05:33_CET [openHABian] Execution of 'openhabian-setup.sh unattended' completed.
2019-01-12_11:05:33_CET [openHABian] Waiting for openHAB to become ready... OK
2019-01-12_11:06:50_CET [openHABian] Visit the openHAB dashboard now: http://openHABianPi:8080
2019-01-12_11:06:50_CET [openHABian] To gain access to a console, simply reconnect.
2019-01-12_11:06:50_CET [openHABian] First time setup successfully finished.

Possible to access the WebUI, have yet not done some much with it

Fronttail

2019-01-12 11:06:50.783 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.155:8080
2019-01-12 11:06:50.822 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.155:8443
2019-01-12 11:06:52.157 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-01-12 11:06:55.501 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2019-01-12 11:06:56.493 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.155:8080
2019-01-12 11:06:56.497 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.155:8443  ==> /var/log/openhab2/events.log <==
2019-01-12 11:16:26.228 [thome.event.ExtensionEvent] - Extension 'package-simple' has been installed.    ==> /var/log/openhab2/openhab.log <==
2019-01-12 11:16:44.990 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-01-12 11:16:45.164 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
2019-01-12 11:16:45.247 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
2019-01-12 11:16:47.387 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui    ==> /var/log/openhab2/events.log <==
2019-01-12 11:16:48.442 [thome.event.ExtensionEvent] - Extension 'ui-habpanel' has been installed.
2019-01-12 11:16:48.465 [thome.event.ExtensionEvent] - Extension 'misc-ruleengine' has been installed.
2019-01-12 11:16:48.470 [thome.event.ExtensionEvent] - Extension 'ui-paper' has been installed.

thanks.
starting new flash now