it seems there is a problem with the file java.io.
openjdk version “17.0.7” 2023-04-18 is installed.
dear Hmerk, I followed step by step the installation guide for Armbian.
Before I installed openhab, I installed java 17
I don‘t doubt you did, but the error you posted, btw. don’t post screenshots but plain text ad we cannot quote, shows still an issue with the log files.
I gone start from the beginning tomorrow with a a new sd card.
Maybe also better to replace the orangepi with a raspberry pi
Would be a good idea as you than can use openHABian with its great cinfog-tool.
It seems there is something wrong with the folder OPENHAB_LOGDIR ( path /var/log/openhab. All the other folder are in the group openhab:openhab, while this one is in the group root:root:
There is also an error message in the overview
orangepipc2 karaf (2704) : caused by java.io. FileNotFoundException: /var/log/openhab/openhab.log (no such file or directory
Root cause for message
is that the directory /var/log/openhab is owned by root:root. It has to be owned by openhab:openhab. Once that is the case and the openhab service is restart openhab can create the file openhab.log in that folder.
The command to change the ownership was posted before but you need to enter it correct - without typos. And be carefull you have a typo in the text in your post as well as another one in the screenshot. The typo you have in your text post can make your whole system unusable.
It is often better to use copy paste of text between systems compared to manually typing.
I started from clean SD today,
Installed Armbian 23 ( version 24 and 25 seems not to work om the orangepi PC2)
Installed Java 17 JDK
used : “sudo armbian-config” to install openhab.
Also tested as described openhab was running but when I exit armbian-config I don’t receive the openhab logo in putty and I also cannot reach the orangepi with the browser ( http://192.168.0.132:8080)..)
Tomorrow I gone do some more check what’s going on.
guy
| Wolfgang_S
December 18 |
- | - |
Root cause for message
guyc:
caused by java.io. FileNotFoundException: /var/log/openhab/openhab.log (no such file or directory
is that the directory /var/log/openhab is owned by root:root. It has to be owned by openhab:openhab. Once that is the case and the openhab service is restart openhab can create the file openhab.log in that folder.
The command to change the ownership was posted before but you need to enter it correct - without typos. And be carefull you have a typo in the text in your post as well as another one in the screenshot. The typo you have in your text post can make your whole system unusable.
It is often better to use copy paste of text between systems compared to manually typing.
Problem solved.
I installed the desktop version :Armbian 23.8.1_orangepipc2 Jammy 6.1.47 desktop
Many thanks for the support
If you used my install script, I’m pretty sure it tells you to NOT use the user root
when running the script, you need to create a user called openhabian
and be logged in as this user, unless you want to edit the script and change the user name to something else. You should not install as the root user which is what I am guessing you did. This is a general rule with linux that you do not login as root as everything you create can then be made as owned by root. Make sure you have a non root user and always login and do tasks with that user.
EDIT: All your screenshots show you are logged in as root. DO NOT DO THAT or you will continue to have issues.