Today I’ve upgraded from OH 2.5.11 to 3.0.0 via the openhab-config tool. The upgrade went smoothly. After a reboot I checked with “openhab-cli status” and it looks like openhab is running. But the web interface is not reachable and the openhab.log is empty.
How long did you wait the webpage to come up after reboot ? A few users replied that they were not waiting long enough when they had similar problem.
You may run the command
sudo netstat -tulpn | grep java
this should list several listening ports. The port that openhab is running on in your installation needs to be listed there.
Did you edit the right file.
In case of an upgrade you may have a file /etc/default/openhab and /etc/default/openhab2.
After editing the file you did a restart of the openhab service ?
What do you mean by that? I think I’ve edited the right file (“openhab.cli info” shows the http ports I’ve configured). But when I try to open the UI at the port, I get the message that the site cannot be reached.
this will show files containing the port number 8080. That should be normal at least for a subset of them. Which files are listed ?
In case you would like to see the content that is found run
Could it be that the port 8080 from Unify controller and port 8080 from OH are conflicting resulting in not finishing the webUI. Maybe the change of the port I’m OH was not successful.
The service for the (karaf) console is running under port 8101.
You can check if the port is in use by checking which ports are used with:
netstat -tulpn | grep java
The status command says that the openhab service is running since 5 minutes.
It could be that this is not long enough that all parts are up and running yet.
The files that you reported to contain port 8080 should be ok.
Is there differnt output of “systemctl status openhab” if you execute it about 30 minutes or later after service start ?
that upgrade is expected. So that should be fine.
You may check if java 11 is the default which has to be the case by running:
java -version
The output of netstat shows that port 8080 and 8443 are in use by the same process with the process id ( PID ) 961 which is java. So that should be the openhab process. You can check that by running
ps -ef |grep 961
Keep in mind after a restart of the service or reboot of the system the PID might change.
The search for files containing the old port numbers found the file
which belongs to the OH2 instance. As you did an upgrade it could be the case that still this file is in use to define ports for your OH3 service.
So could you just check and also change the port numbers in the openhab2 file and do a restart of the openhab.service ?
It is not required to wait 15h. I think after 30 minutes to max. of 1h ( which I assume is more than required ) should be enough to wait.
Redo the netstat command please to check which port numbers are in use then.