- Platform information:
- orangepi pc2
- OS: _armbian
- Java Runtime Environment: _17
- openHAB 4:
*I have installed Java 17 and openhab4 on a orangepi pc2running armbian.
When I restart the orangepi, he doesn’t start openhab.
On the other hand also with the browwer on my PC, I cannot reach openhab. Http://openhab:8080 is not recognised.I’s clear Ido something wrong or I missed sommething.
Last command is right, what dows the same command with status instead of start show?
I suppose openhab is running, but with the browser of my computer I cannot access openhab.
I used this guideline for the installation.
After installation, I reveive the message that everything was installed and that I could reach openhab with any browser.
The reality is that the oprangepi is no longer online.
There might be other issues as well but as your hostname is called orangepipc2
it will not be reached by the URL http://openhab:8080 in your network.
It should be http://orangepicpc2:8080/ then. As long as the service is running.
The problem is that the orangepi does not com online anymore.
before I restarted the orangepi, I received the first page of openhab.
After that I stopped the orangepi and restarted him.
this evening I started from the beginning with kernel ubuntu, downloaded from the orangepi website.
Also installed Java 17
Openhab installed following the different stepts from this webpage :Download openHAB | openHAB ( openhab4 distribution) Linux > apt > stable 4.3.0
In the router I can see the orangepi and I can also ping to him.
With the webbrowser in my PC I cannot access the orangepi (http://192.168.0.132:8080) or http://orangepipc2:8080)
Run
sudo netstat -tulpn |grep java
to check for listening ports opened by java. Besides other ports port 8080 should be listed there.
What does
sudo systemctl status openhab.service
What is shown in log files located in /var/log/openhab/ esp. in /var/log/openhab/openhab.log ?
show ?
Dec 17 12:19:24 orangepipc2 systemd[1]: Started openHAB - empowering the smart home.
Dec 17 12:19:25 orangepipc2 karaf[2086]: mkdir: cannot create directory ‘/var/log/openhab’: Permission denied
So you need to check permissions. User/Group openhab must have write access!
how to do this ? I’m not familiar with linux
As root user enter
chown -R openhab:openhab
Followed by the openhab folders, e.g.
/etc/openhab
/var/log/openhab
and so on…
I receive an error after the instruction chown -R openhab:openhab /var/log/openhab
I also found /var/log/openhab is in another group ( root:root )
Also strange : /var/log/openhab/openhab.log not found.
Is this correct and if not how to modify ?
Your screenshot shows a typo.
/var/openhab
(wrong) instead of var/log/openhab
also chown -R openhab:openhab / var/log/openhab` does not work.
Another Typo, no space between openhab and var/…
Sorry, but you have to pay more attention to what you are doing.
Sorry, didn’t know spaces are important ( cfr. arduino IDE). Meanwhile I did it the good way and received no error message. I appreciate you correcting me.
Meanwhile I restarted also the orangepi, but no effect.
But this error message is strange for me… /var/log/openhab is part of another group. Is this normal ?
You need to read the docs for the other openHAB folder locations an correct them all. You will find it in the installation section.