The current openHabian installation process seems to force overwrite “Europe/Berlin” in that place – even when it knows very well that the user is not in Berlin timezone. So in other words, the issue is not just to preserve the EXTRA_JAVA_OPTS values that openHabian does correctly provide but also to eliminate the timezone value that it wrongly provides.
Watch out! That doesn’t work!!! It causes openhab to continuously try to restart. Not even openhab.log gets updated. You can see the restarts happening by observing the changing output of:
sudo systemctl list-units | grep openhab
What worked was copying over the EXTRA_JAVA_OPTS from /etc/default/openhab to /etc/openhab/linux.parameters then changing only the timezone in it. My /etc/openhab/linux.parameters looks like this after the change:
EXTRA_JAVA_OPTS="-Xms192m -Xmx768m -XX:-TieredCompilation -XX:TieredStopAtLevel=1 -XX:+ExitOnOutOfMemoryError -Dxtext.qn.interning=true -Duser.timezone=America/New_York"
Hi all,
mistakenly I followed above advises with Openhabian 5.1.3 on RPI5. I had no success, so reverted to the original state: removed line with “sudo systemctl edit openhab”, removed /etc/default/linux.parameters, restored /etc/default/openhab, stopped and restarted Openhab.
But still after all Openhab is continuously auto-restarting even after several reboots. What can I do?
Thank you!
Micha
Given noone knows what exactly your starting point was and what you changed since, I think noone can reasonably give good advice.
I suggest you simply install latest openHABian from scratch and import your OH configuration backup. That’s just a couple of minutes work.
Finally found it by inspecting the logs:
… /etc/default/openhab: Syntax error: Unterminated quoted string
Forgot the ending quote mark after re-inserting the parameter. ![]()
Maybe it’s still good as a warning example. ![]()