OpenHAB 1.8.3 is running as systemd service, on Raspbian.
I can’t connect to the console on localhost:
pi@raspberrypi:~ $ ssh openhab@localhost -p 8101
ssh: connect to host localhost port 8101: Connection refused
According to this documentation it is a straight forward process. Is ssh console not available by default in Runtime? Does it require configuration? Any ideas what went wrong?
OpenHAB is definitely running. I can access the web interface on 8080 port. Service also looks fine:
pi@raspberrypi:~ $ sudo service openhab status
● openhab.service - A vendor and technology agnostic open source automation software for your smart home.
Loaded: loaded (/etc/systemd/system/openhab.service; enabled)
Active: active (running) since sob 2017-03-04 18:22:32 CET; 29s ago
Process: 2292 ExecStart=/usr/bin/openhab (code=exited, status=0/SUCCESS)
Main PID: 2299 (java)
CGroup: /system.slice/openhab.service
└─2299 java -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Djetty.po...
mar 04 18:22:32 raspberrypi openhab[2292]: Launching the openHAB runtime..
mar 04 18:22:32 raspberrypi systemd[1]: Started A vendor and technology agnostic open source automation software...ome..
mar 04 18:22:50 raspberrypi openhab[2292]: osgi> 2017-03-04 18:22:50.155 [INFO ] [.o.core.internal.CoreActivator...8.3).
mar 04 18:22:53 raspberrypi openhab[2292]: 2017-03-04 18:22:53.125 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mD...arted
mar 04 18:22:53 raspberrypi openhab[2292]: 2017-03-04 18:22:53.277 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Se...eted.
mar 04 18:23:01 raspberrypi openhab[2292]: 2017-03-04 18:23:01.950 [INFO ] [c.internal.ModelRepositoryImpl] - Lo...tems'
Hint: Some lines were ellipsized, use -l to show in full.
Looks like it’s listening on standard port after all. Documentation is misleading in this regard. Unfortunately “default” password habopen does not work.
What am I missing? Is this configurable somewhere?
So I disabled the service, rebooted Raspberry, ssh to localhost on port 8101, but result is the same - connection refused. Even though OpenHAB was not running.
Back to the original state - I enabled the service again, rebooted one more time and here are the active connections:
I can see standard ssh listening on port 22, but there are no processes listening on 8101.
Java process (OpenHAB) is listening on 8443. I tried that too, but unfortunately still no luck.
Yes, that’s what I’m suspecting. I’m a bit confused - documentation does not state that it’s only referring to OpenHAB2.
To summarize: it seems that there is no access to the console when OpenHAB1 is running as a service. Not running as a service, or installing OH2 are my only choices for now. Thanks for help!