Cannot access UI after successful SSH install of openhabian

openHAB dashboard cannot be reached at http://openHABianPi:8080

I’ve tried multiple things, just did a fresh install of the latest stable snapshot on a brand new raspberry pi. I can run commands on it through terminal, but cant connect to the openhab dashboard on google chrome.

This site can’t be reached

198.162.2.128 took too long to respond.

ERR_CONNECTION_TIMED_OUT

I ran this command

sudo systemctl status openhab2

and got this back

[05:49:15] openhabian@openHABianPi:~$ sudo systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-11-04 05:49:22 EST; 189ms ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 14203 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
 Main PID: 14294 (karaf)
   CGroup: /system.slice/openhab2.service
           ├─14294 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14309 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14310 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14311 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14321 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14325 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14330 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           ├─14334 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
           └─14337 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon

Nov 04 05:49:22 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
[05:49:22] openhabian@openHABianPi:~$ 

anything useful in /var/log/openhab2/openhab.log ?

does the TCP 8080 listen?

sudo su
netstat -an | grep 8080
lsof -i TCP:8080

It’s denied me permission. (I am very new to openhab)

[06:11:38] openhabian@openHABianPi:~$ /var/log/openhab2/openhab.log
-bash: /var/log/openhab2/openhab.log: Permission denied
sudo su
tail -100 /var/log/openhab2/openhab.log

first command will switch your user to root (from openhabian) so you can do anything
second command will pull the last 100 lines from the log

this is more Linux related (not OH2)

tail -100 /var/log/openhab2/openhab.log

omg sorry pasted the wrong thing. #CanadaLegalWeed LOL

2018-11-03 23:39:25.898 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.2.127:8080
2018-11-03 23:39:25.917 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.2.127:8443
2018-11-03 23:39:38.099 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-11-03 23:39:38.272 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.2.127:8080
2018-11-03 23:39:38.276 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.2.127:8443
2018-11-03 23:39:39.238 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-11-03 23:58:36.286 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard

Sorry I do hope that was not inappropriate.

Also when running

journalctl -u openhab2.service -b

I get

-- Logs begin at Sun 2018-11-04 05:40:25 EST, end at Sun 2018-11-04 06:34:23 EST. --
Nov 04 05:40:33 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 04 05:40:39 openHABianPi karaf[465]: Aborted
Nov 04 05:40:39 openHABianPi karaf[465]: Aborted
Nov 04 05:40:40 openHABianPi karaf[465]: Aborted
Nov 04 05:40:40 openHABianPi karaf[465]: Aborted
Nov 04 05:40:40 openHABianPi karaf[465]: Unrecognized option: --add-opens
Nov 04 05:40:40 openHABianPi karaf[465]: Error: Could not create the Java Virtual Machine.
Nov 04 05:40:40 openHABianPi karaf[465]: Error: A fatal exception has occurred. Program will exit.
Nov 04 05:40:40 openHABianPi systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 05:40:41 openHABianPi karaf[633]: Aborted
Nov 04 05:40:41 openHABianPi karaf[633]: Aborted
Nov 04 05:40:41 openHABianPi karaf[633]: Aborted
Nov 04 05:40:41 openHABianPi karaf[633]: Aborted
Nov 04 05:40:41 openHABianPi karaf[633]: Unrecognized option: --add-opens
Nov 04 05:40:41 openHABianPi karaf[633]: Error: Could not create the Java Virtual Machine.
Nov 04 05:40:41 openHABianPi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Nov 04 05:40:41 openHABianPi systemd[1]: openhab2.service: Unit entered failed state.
Nov 04 05:40:41 openHABianPi systemd[1]: openhab2.service: Failed with result 'exit-code'.
Nov 04 05:40:46 openHABianPi systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Nov 04 05:40:46 openHABianPi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Nov 04 05:40:46 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 04 05:40:47 openHABianPi karaf[834]: Aborted
Nov 04 05:40:47 openHABianPi karaf[834]: Aborted
Nov 04 05:40:47 openHABianPi karaf[834]: Aborted
Nov 04 05:40:47 openHABianPi karaf[834]: Aborted
Nov 04 05:40:47 openHABianPi systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 05:40:47 openHABianPi karaf[926]: Aborted
Nov 04 05:40:47 openHABianPi karaf[926]: Aborted
Nov 04 05:40:47 openHABianPi karaf[926]: Aborted
Nov 04 05:40:48 openHABianPi karaf[926]: Aborted
Nov 04 05:40:48 openHABianPi karaf[926]: Unrecognized option: --add-opens
Nov 04 05:40:48 openHABianPi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Nov 04 05:40:48 openHABianPi systemd[1]: openhab2.service: Unit entered failed state.
Nov 04 05:40:48 openHABianPi systemd[1]: openhab2.service: Failed with result 'exit-code'.
Nov 04 05:40:53 openHABianPi systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Nov 04 05:40:53 openHABianPi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Nov 04 05:40:53 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 04 05:40:53 openHABianPi karaf[1023]: Aborted
Nov 04 05:40:53 openHABianPi karaf[1023]: Aborted
Nov 04 05:40:53 openHABianPi karaf[1023]: Aborted
Nov 04 05:40:53 openHABianPi karaf[1023]: Aborted
Nov 04 05:40:54 openHABianPi systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 05:40:54 openHABianPi karaf[1113]: Aborted
Nov 04 05:40:54 openHABianPi karaf[1113]: Aborted
Nov 04 05:40:54 openHABianPi karaf[1113]: Aborted
Nov 04 05:40:54 openHABianPi karaf[1113]: Aborted
Nov 04 05:40:54 openHABianPi karaf[1113]: Unrecognized option: --add-opens
Nov 04 05:40:54 openHABianPi karaf[1113]: Error: Could not create the Java Virtual Machine.
Nov 04 05:40:54 openHABianPi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Nov 04 05:40:54 openHABianPi systemd[1]: openhab2.service: Unit entered failed state.
Nov 04 05:40:54 openHABianPi systemd[1]: openhab2.service: Failed with result 'exit-code'.
Nov 04 05:40:59 openHABianPi systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Nov 04 05:40:59 openHABianPi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Nov 04 05:40:59 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 04 05:41:00 openHABianPi karaf[1208]: Aborted
Nov 04 05:41:00 openHABianPi karaf[1208]: Aborted
Nov 04 05:41:00 openHABianPi karaf[1208]: Aborted
Nov 04 05:41:00 openHABianPi karaf[1208]: Aborted
Nov 04 05:41:00 openHABianPi systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 05:41:00 openHABianPi karaf[1299]: Aborted
Nov 04 05:41:00 openHABianPi karaf[1299]: Aborted

java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x75812090, pid=14235, tid=0x7531d470
#
# JRE version:  (8.0_152-b76) (build )
# Java VM: OpenJDK Client VM (25.152-b76 mixed mode, sharing, Evaluation linux-aarch32 )
# Problematic frame:
# V  [libjvm.so+0x475090]  Relocator::adjust_stack_map_table(int, int)+0x1dc
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/openhabian/hs_err_pid14235.log
#
# If you would like to submit a bug report, please visit:
#   http://www.azulsystems.com/support/
#
Aborted

I really do not know what is happening :frowning:

Is it the standard OpenJDK or the Zulu version?

what does the following command give as output?

java -version

edit: it’s the Zulu

output of:

openhab-cli info
[06:51:59] openhabian@openHABianPi:~$ sudo openhab-cli info
sudo: openhab-cli: command not found
[06:52:03] openhabian@openHABianPi:~$ openhab-cli info
-bash: openhab-cli: command not found

Also can I say thank you so much for taking the time to help me with this i really appreciate it!

1 Like

How did you install it?

Github!


used Matt Kaczynski’s instructions to flash the SD card but followed the official openhab instructions

[07:07:00] openhabian@openHABianPi:~$ sudo cat /boot/first-boot.log
2018-03-13_22:54:02_UTC [openHABian] Starting the openHABian initial setup.
2018-11-04_03:17:18_UTC [openHABian] Storing configuration... OK
2018-11-04_03:17:18_UTC [openHABian] Changing default username and password... OK
2018-11-04_03:17:28_UTC [openHABian] Setting up Ethernet connection... OK
2018-11-04_03:17:28_UTC [openHABian] Ensuring network connectivity... OK
2018-11-04_03:17:28_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2018-11-04_03:17:54_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2018-11-04_03:26:38_UTC [openHABian] Installing git package... OK
2018-11-04_03:27:40_UTC [openHABian] Cloning myself... OK
2018-11-04_03:27:42_UTC [openHABian] Executing 'openhabian-setup.sh unattended'... 
2018-11-04_03:27:42_UTC [openHABian] Checking for root privileges... OK
2018-11-04_03:27:42_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2018-11-04_03:27:42_UTC [openHABian] Setting timezone based on IP geolocation... OK (America/Toronto)
2018-11-03_23:29:30_EDT [openHABian] Setting locale based on openhabian.conf... OK
2018-11-03_23:30:00_EDT [openHABian] Setting hostname of the base system... OK
2018-11-03_23:30:00_EDT [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2018-11-03_23:30:00_EDT [openHABian] Enabling Audio output... OK
2018-11-03_23:30:00_EDT [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2018-11-03_23:31:30_EDT [openHABian] Installing additional needed packages... OK
2018-11-03_23:31:56_EDT [openHABian] Installing additional bluetooth packages... OK
2018-11-03_23:32:07_EDT [openHABian] Adding slightly tuned bash config files to system... OK
2018-11-03_23:32:07_EDT [openHABian] Adding slightly tuned vim config file to system... OK
2018-11-03_23:32:07_EDT [openHABian] Downloading and setting up FireMotD... OK
2018-11-03_23:32:42_EDT [openHABian] Installing Zulu Embedded OpenJDK... OK
sed: can't read /etc/default/openhab2: No such file or directory
2018-11-03_23:34:52_EDT [openHABian] Installing or upgrading to latest openHAB release (stable)... OK
2018-11-03_23:36:09_EDT [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2018-11-03_23:36:09_EDT [openHABian] Adding openHAB syntax to vim editor... OK
2018-11-03_23:36:10_EDT [openHABian] Adding openHAB syntax to nano editor... OK
2018-11-03_23:36:10_EDT [openHABian] Adding openHAB scheme to mulitail... OK
2018-11-03_23:36:10_EDT [openHABian] Preparing openHAB folder mounts under /srv/... sed: -e expression #1, char 5: unterminated address regex
OK
2018-11-03_23:36:10_EDT [openHABian] Applying file permissions recommendations... OK
2018-11-03_23:36:13_EDT [openHABian] Applying miscellaneous system settings... OK
2018-11-03_23:36:13_EDT [openHABian] Setting up Samba network shares... OK
2018-11-03_23:37:25_EDT [openHABian] Installing Node.js (prerequisite for other packages)... OK
2018-11-03_23:38:14_EDT [openHABian] Installing the openHAB Log Viewer (frontail)... OK
2018-11-03_23:38:43_EDT [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2018-11-03_23:38:43_EDT [openHABian] Execution of 'openhabian-setup.sh unattended' completed.
2018-11-03_23:38:43_EDT [openHABian] Waiting for openHAB to become ready... OK
2018-11-03_23:39:31_EDT [openHABian] Visit the openHAB dashboard now: http://openHABianPi:8080
2018-11-03_23:39:31_EDT [openHABian] To gain access to a console, simply reconnect.
2018-11-03_23:39:31_EDT [openHABian] First time setup successfully finished.
[07:07:02] openhabian@openHABianPi:~$ 

Uhh it looks like zulu never installed

seems to be there