Install (2.3.0-1) on RPI (apt-get install) Not working

/opt/openhab isn’t the package install dir its “/usr/share/openhab2”

cd /usr/share/openhab2
sudo runtime/bin/update

Does running this help?

I read you should use the same method of update as you do when you install so I have yet to try that. At this point, why the hell not. :slight_smile:

Doesn’t work… I think this is intended to be used with the manual install… i.e. /opt/openhab2 not /usr/share/openhab2

What’s the output of cat /etc/apt/sources.list.d/openhab2.list

deb stable main

That’s much is good, but I’m running out of ideas. When you uninstalled earlier did you use:

sudo apt-get purge openhab2*
sudo rm /etc/apt/sources.list.d/openhab2.list

Then start your reinstall? Somethings getting crossed up but a complete removal should fix that error.:confused:

Crazy… thanks for your help though.

UPDATE… I reverted to a known good ISO image… then tried again.

First thing I needed to do was delete an extra services file in /lib/systemd/system/openhab2.service and restart the systemctl sudo systemctl daemon-reload

I also noticed the install didn’t create all the directories under /use/share/openhab2/ Cache and tmp for example. It created some additional files as root which caused permission denied errors

Most annoying was I cut and pasted the JAVA ARGS (I saved them) into the /etc/default/openhab2 config file which caused karaf to choke. By luck I figured this out.

The rules file need an extra “=” for any NULL comparisons if (X===NULL) versus if (X==NULL)

The Audit file was created as root which caused the logger to freak out.

I still have a bunch of errors but I’m up and running for now. :slight_smile: thanks for all the help.

1 Like

Glad to see your getting it up and running.

This is strange

Here’s a good cheatsheet for JavaScript Operators, if ya need it. Its toolbar bookmarked on my PC. :smiley: