I have been working with openhab2.5 testing and openhab2.5-SNAPSHOT. And I have to say it is really stable for me. And I’m also using a bunch of bindings and other services (See lists below)
My “production” server are running openhab2.5-testing and has been running for the past 8 days with no issues. But I think it has had over a month uptime
My “development” server are running openhab2.5-SNAPSHOT and are getting restarted often. But 2 - 3 days has not been any problem
But I do not like to use the PaperUI. So I spend some time in the documentation and wrote all my configs in files and only using UI to check if icons and links was looking correct
But it is a really good idea to restart and clear the cache while configuring as some things could get a but strange after too many changes.
I made a small script to easy restart openhab2 (restart_openhab.sh)
About java, I did start using openjdk-11-jre-headless
. But I got alot of errors in the log. But after switching to openjdk-8-jre-headless
everything was great
And the community is also a great place to get help if you can’t find the answer you are looking for
Hope some of you can use this, else feel free to send me a message and I will try to help if you have any issues with stability or with the bindings/service I’m using
restart_openhab.sh [soft | hard]:
#!/bin/bash
timeStamp=$(date +"%Y-%m-%d %H:%M:%S")
logFile="/tmp/restart_openhab.log"
logString=""
action=${1}
service openhab2 stop
case ${action} in
hard | HARD)
rm -rf /var/lib/openhab2/cache/*
rm -rf /var/lib/openhab2/tmp/*
echo "y" | openhab-cli clean-cache
echo ""
sleep 5
;;
soft | SOFT)
sleep 5
;;
*)
action="Default"
sleep 2
;;
esac
logString="${timeStamp} - Restarting Openhab ${action}"
echo ${logString}
echo ${logString} >> ${logFile}
chown -R openhab. /etc/openhab2/*
service openhab2 start
System (VM):
- Ubuntu server 18.04 LTS
- 4 core
- 4 GB ram
- 20 GB SSD
Extra packages:
- openjdk-8-jdk-headless
- openjdk-8-jre-headless
- mosquitto
- mosquitto-clients
- mono-complete
- unzip
- zip
- nut-snmp
- python-nut
- nut-xml
- nut-monitor
- nut-ipmi
- nut-cgi
- python-pip
- python-dev
- build-essential
- python-setuptools
- python3-pip
- mysql-common
- php7.2-cli
- php7.2-mysql
- php7.2-curl
- mysql-client-core-5.7
- libmysql-java
Bindings:
- networkupstools1
- unifi
- chromecast
- mqtt
- openweathermap
- http1
- sonyaudio
- astro
- mihome
- systeminfo
- kodi
- ihc
- verisure
- pushbullet
Other services:
- openhabcloud
- restdocs
- jdbc-mysql (separate server)
- influxdb (separate server)
- mapDB (localhost)
- map
- javascript
- jsonpath
- regex
- exec
- googletts