I upgraded from 2.2 to 2.3 and now she refuses to start. Initially I had a bunch of missing directories. I created those and chown opeenhab:openhab them which got me further. I’m getting the below error.
I have purged, installed and reinstalled many times. and it is chocking on a config file I assume.
method of install/reinstall (sudo apt-get install --reinstall openhab)
Any assistance is greatly appreciated.
Aug 03 11:25:17 Lombard-Pi start.sh[21773]: null
Aug 03 11:25:17 Lombard-Pi start.sh[21773]: Error occurred shutting down framework: java.lang.NumberFormatException: null
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: java.lang.NumberFormatException: null
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: at java.lang.Integer.parseInt(Integer.java:542)
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: at java.lang.Integer.parseInt(Integer.java:615)
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: at org.apache.karaf.main.ConfigProperties.(ConfigProperties.java:214)
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: at org.apache.karaf.main.Main.updateInstancePidAfterShutdown(Main.java:228)
Aug 03 11:25:18 Lombard-Pi start.sh[21773]: at org.apache.karaf.main.Main.main(Main.java:193)
Aug 03 11:25:18
This backs up both text config from /etc/openhab and PaperUI config from /var/lib/openhab/
If using a raspberry pi have you considered using openhabian instead of a manual install? Also check to make sure you have the correct version if Java installed.
This will tell you if java is working and if so what version. Not all versions work with openhab so best to post or check against the documentation under manual install steps for linux.
Also if you do not have a UPS and have taken no steps to mitigate data corruption then a fresh install is the way to go, if corruption has occured in your boot/running files of linux then no amount of reinstalling openhab is going to fix it.
It is handy having a backup file you can re-load onto your SD card, so worth reading this guide so it does not happen to you again…
I like openhabian because it’s easy to maintain my openhab setup and insures all the right packages are install, as well as permissions. You may have your reasons for a manual install but if you have an extra sd card you might want to give it a try.
What do you get if you type openhab-cli --help ? Do you connect via samba share or ssh? If so you should be able to save your items,things,rules,etc… then just place them back in after a fresh install.
Matt1 may be right about the sd card corruption. Are you in the right directory when you try openhab-cli?
You can also try this, sudo $OPENHAB_RUNTIME/bin/backup
then look in openhab2/backups to see is a backup zip was created. If so you can access your RPI via ssh and move your settings to a PC. If you have an ISO image backup and the zip backup then it should be safe to pull the sd card, reformat, and install a fresh image. If it fails you can reinstall your ISO, if it works then move your zip backup to the new install.
I am not having issues with the backup. I have done it. I’m having troubles with the apt-get upgrade from 2.1 to 2.3. I’m configured to write to a USB drive not the SSD. My OS isn’t giving my fits its the install. Its consistently not creating the required directories among other things.