OH1.7 doessn't start again after reboot!

I’m in real trouble right now…

My OH 1.7 didn’t show the graphs anymore… therefore I tried a reboot!

Now I cannot start the service anymore!!!

usually I use these lines to start the service manually after reboot and check status,

sudo /etc/init.d/openhab start 
sudo /etc/init.d/openhab status 
top u openhab

but now the status returns:

pi@OHpi:~ $ sudo /etc/init.d/openhab status
● openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled)
Active: inactive (dead)
Docs: http://www.openhab.org

Jul 25 10:48:30 OHpi openhab.sh[2036]: at sun.reflect.NativeMethodAccessorI…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at sun.reflect.NativeMethodAccessorI…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at sun.reflect.DelegatingMethodAcces…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at java.lang.reflect.Method.invoke(M…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at org.eclipse.equinox.launcher.Main…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at org.eclipse.equinox.launcher.Main…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at org.eclipse.equinox.launcher.Main…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: at org.eclipse.equinox.launcher.Main…)
Jul 25 10:48:30 OHpi openhab.sh[2036]: Invalid Configuration Location…
Jul 25 10:48:30 OHpi openhab.sh[2036]: Unable to create lock manager.
Hint: Some lines were ellipsized, use -l to show in full.

I’ve no idea what to do!!!

Is there anybody with an idea?! Who can help??

There are not too many people left still running 1.7. It is now more than three major releases behind.

My suggestions:

  • run the openhab.sh start script manually to see the full output or look in /var/syslog to see what the root of that error is.
  • check your file permissions on all of your relevant files
  • if you are running off of an SD card, it may have started to fail in which case you need to migrate to a new SD card
  • another potential cause could be your file system filled up and there is no more room for the system to run

Upgrading to at least the latest 1.8 would probably be warranted, though I would recommend upgrading to 2.1. The number of people with recent enough experience with even version 1.8 is rapidly shrinking and the number of people who have recent experience with versions before that is vanishingly small. Unfortunately, when one chooses not to upgrade and keep up with the development of the software, they must take on the responsibility for maintaining and debugging it themselves as the rest of the community moves on to the newer versions because the community rapidly loses knowledge about the older versions.

Seems to me, you did an update/upgrade for raspbian?

'cause

sudo /etc/init.d/openhab status 

is init-Style, but is executed by systemd:

openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled)
Active: inactive (dead)

?

1 Like

It’s been a while, since I did some changes, I cannot remember what exactly I did…
But “systemd” remembers my that I tried to config a static IP and a automatic start of openhab Service…

By the way, I was running OH 1.8!!

In the meanwhile I deployed a new installation with old configuration and items etc. It is running well again!
But I’ve still to start the service manually and myopenhab.org is offline.
I remember that I had to do something special to get it work:

deploy a snap-shot of myopenhab-addon (already done!)
install new version of java (already done!)
update uuid and secret on myopenhab.org (already done!)
…but something is still not ready, cause still i’m offline!! :frowning:

I’m looking through the forum on…

THX anyway

Found the problem!

$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

now seeking for a smooth way to update JAVA!

When using the pi, openhabian is a very smooth way to setup openHAB2.

If you don’t want to use OH2 (well I’m using OH1.8.1…) you can autoupdate java using http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html