Unable to connect to IP:8080 on new RaspberryPi 4

I always have a monitor (Samsung TV) and keyboard attached. I can ping my IP address so I know that is ok. It is only when I use the OpenHap URL that I get this error.
I haven’t yet found a system log.
I should add that I use MacOS and only use Unix occasionally so am not familiar with a lot of the folders. I did find /var/log/ … Is that where you suggested I look and if so is there a log I should examine?

Please check the output of the command

sudo netstat -tulpe --numeric-ports

This command lists all open ports and related binaries.
Is port 8080 listed ? Is java listed as the related executable ?

port 8080 is not there

Did it ever run ( the connection to port 8080 ) after booting the Pi or only after executing sudo systemctl start openhab2.service manually ?

Good question … I never restarted it after chrome crashed … I don’t think that I restarted the Raspberry but perhaps I did. Do I need to add the start command to rc.local?

Do

sudo systemctl enable openhab2.service

this will enable the service to be started during boot.

So once I do that I don’t need to add it to startup process such as RBC.local?

correct that’s the idea. See https://wiki.debian.org/systemd#Managing_services or do

man systemctl

to read the manual page on your system.

Thanks for the advice on systemctl. By the way, OpenHab has restarted several times since I followed your suggestions.

That means the problem is solved ?

That problem… thanks

1 Like