New install, need some guidance!

Ubuntu 16.04, installed, get no response on port 8080 per installation instructions. Status gives me:

systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
Active: inactive (dead)

Someone suggested I look in the logs in var/log/openhab2 but there is nothing there except a blank readme.txt file.

Suggestions? What does the “inactive(dead)” mean?

How do I troubleshoot this?

Not a lot to go go on, but let’s give it a try:

  • did you follow the installation here: http://docs.openhab.org/installation/linux.html and did you perform each and very step?; Do not follow any other installation guides, there have been too many changes
  • you need a very recent java8 installation (build 101 or later)
  • did you perform the two last steps that were printed on your screen after the installation, in your case it should be (from installation guide above): ```
    Linux init systems based on sysVinit (e.g. Debian 7, Ubuntu 14.x, Raspbian Wheezy and earlier):
    sudo /etc/init.d/openhab2 start
    sudo /etc/init.d/openhab2 status
    sudo update-rc.d openhab2 defaults
If nothing of the above works, you may want to search the forum a little:
Other experienced similar installation problems and found varied solutions, some of them are included in the above, others just purged and reinstalled to start over and that seem to have worked. 
https://community.openhab.org/t/openhab-2-fails-to-start-using-systemctl/15907/8
https://community.openhab.org/t/openhab-do-not-autostart-at-boot/15819

[quote=“lipp_markus, post:2, topic:20302, full:true”]

  • did you follow the installation here: http://docs.openhab.org/installation/linux.html and did you perform each and very step?; Do not follow any other installation guides, there have been too many changes
  • you need a very recent java8 installation (build 101 or later)
  • did you perform the two last steps that were printed on your screen after the installation, in your case it should be (from installation guide above): ```
    Linux init systems based on sysVinit (e.g. Debian 7, Ubuntu 14.x, Raspbian Wheezy and earlier):
    sudo /etc/init.d/openhab2 start
    sudo /etc/init.d/openhab2 status
    sudo update-rc.d openhab2 defaults[/quote]

Yes, except that I followed the instructions for Ubuntu 15 and later at the very end, since Im on 16.04. The only difference is the systemctl versus /etc/init lines.

I probably will remove and reinstall and see if that fixes it.

Can you confirm, post what version of Java you are using? It is not installed by default in Ubuntu Server and you do need to add it.

I installed the Oracle Java 8 with these steps

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Based on these prerequisites, I think I have the right version:

java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

I think Im going in circles. The guidance here tells me to

apt-get update && sudo apt-get install oracle-java8-jdk

When I run this, I get

E: Package ‘oracle-java8-jdk’ has no installation candidate

you have the correct java version.

Perhaps just try a reinstall of OH2. I’m running it on Ubuntu 16 just fine, so unsure what else could be the caue

No need to reinstall I believe. Did you execute

sudo systemctl restart openhab2.service

After that please post the output of systemctl status openhab2.service and the last few lines of daemon.log and check the content of openhab.log