New instalation and webinterface

webinterface wont open.
The Py can be pinged in both windows and with router tool. Putty also connects.

###############################################################################
############### openHABianDevice ############################################
###############################################################################

Ip = 192.168.0.128

Release = Raspbian GNU/Linux 10 (buster)

Kernel = Linux 5.4.79-v7l+

Platform = Raspberry Pi 4 Model B Rev 1.1

Uptime = 0 day(s). 1:21:29

CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))

CPU Load = 1m: 0.00, 5m: 0.00, 15m: 0.00

Memory = Free: 3.55GB (94%), Used: 0.23GB (6%), Total: 3.78GB

Swap = Free: 2.58GB (100%), Used: 0.00GB (0%), Total: 2.58GB

Root = Free: 23.63GB (85%), Used: 4.13GB (15%), Total: 28.98GB

Updates = 1 apt updates available.

Sessions = 1 session(s)

Processes = 118 running processes of 32768 maximum processes

###############################################################################

                      _   _     _     ____   _

___ ___ ___ ___ | | | | / \ | __ ) () ____ ___
/ _ \ / _ \ / _ \ / _ \ | |
| | / _ \ | _ \ | | / _ \ / _
| () | () | /| | | || _ | / ___ \ | |) )| || () || | | |
_
/| / _/|| |||| ||// _|/ || _|||| | |
|
| 3.0.0 - Release Build

No problem with conection to other peripheral device, via web (syno nas)
No portforwarding rules visible in router…

Router is 2. in line behind ISP, checked and double checked that ISP router is in brige an WAN ip confirms that

Where and how to look for posibble errors ??
Linux skills is btw at the very minimum :slight_smile: so bare with me, if i need possible solotions cut in cardboard

BTW. tried with cable and wifi samesame no webinterface

  • Are there any error messages in /var/log/openhab/openhab.log ?
  • what do you get when you run the command
sudo netstat -tulpn | grep java
  • did you try to connect using the IP local address ?

What URL are you trying?

Cut in cardboard please… :slight_smile:
[12:00:34] openhabian@openHABianDevice:~$
[12:00:41] openhabian@openHABianDevice:~$ sudo netstat -tulpn | grep java
[sudo] password for openhabian:
[12:00:53] openhabian@openHABianDevice:~$ sudo netstat -tulpn | grep java
[12:00:59] openhabian@openHABianDevice:~$

Password used “openhabian”

  • Are there any error messages in /var/log/openhab/openhab.log ?
    How to check the log ?

  • did you try to connect using the IP local address ?
    hmm not sure what you mean by that … In browser im typing “openhab ip:8080”

sorry for the poor skills in linux / command lines… Im new in windows used apple since 1991 so used to graphic interface … :slight_smile:
Btw same issue if i try running openhab on my synology… !no web interface …therefor i suspect the issue is java…

openhab ip = 192.168.0.128:8080

just make sure it’s https://192.168.0.128:8080 , I’d also hop on the box and run

netstat -na|grep 8080

to make sure the port is listening

very sure :slight_smile:

[12:14:04] openhabian@openHABianDevice:~$ netstat -na|grep 8080
[12:14:28] openhabian@openHABianDevice:~$

Hmm is that the right response - total noob in putty world

No you should see

$ netstat -na|grep 8080
tcp6 0 0 :::8080 :::* LISTEN

so it’s not come up or running, you can look in the log by running

less /var/log/openhab/openhab.log

and if nothing in there then maybe

less /var/log/syslog

Already the answer of the command “netstat -tulpn | grep java” showed that the java process is not running. Thus the service is not listening on port 8080.
What does

sudo systemctl status openhab

and

sudo journalctl -u openhab

show ?

Java ( zulu ) 11 is installed ?

[12:33:58] openhabian@openHABianDevice:~$ less /var/log/openhab/openhab.log
/var/log/openhab/openhab.log: No such file or directory

[12:34:18] openhabian@openHABianDevice:~$ less /var/log/syslog
Jan 6 00:00:14 openHABianDevice rsyslogd: [origin software=“rsyslogd” swVersion=“8.1901.0” x-pid=“550” x-info=“https://www.rsyslog.com”] rsyslogd was HUPed
Jan 6 00:00:14 openHABianDevice systemd[1]: logrotate.service: Succeeded.
Jan 6 00:00:14 openHABianDevice systemd[1]: Started Rotate log files.
Jan 6 00:00:15 openHABianDevice systemd[1]: man-db.service: Succeeded.
Jan 6 00:00:15 openHABianDevice systemd[1]: Started Daily man-db regeneration.
Jan 6 00:04:26 openHABianDevice systemd[1]: Created slice User Slice of UID 1000.
Jan 6 00:04:26 openHABianDevice systemd[1]: Starting User Runtime Directory /run/user/1000…
Jan 6 00:04:26 openHABianDevice systemd[1]: Started User Runtime Directory /run/user/1000.
Jan 6 00:04:26 openHABianDevice systemd[1]: Starting User Manager for UID 1000…
Jan 6 00:04:27 openHABianDevice systemd[991]: Reached target Paths.
Jan 6 00:04:27 openHABianDevice systemd[991]: Listening on GnuPG cryptographic agent and passphrase cache.
Jan 6 00:04:27 openHABianDevice systemd[991]: Reached target Timers.
Jan 6 00:04:27 openHABianDevice systemd[991]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jan 6 00:04:27 openHABianDevice systemd[991]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jan 6 00:04:27 openHABianDevice systemd[991]: Listening on GnuPG cryptographic /var/log/syslog

[12:40:31] openhabian@openHABianDevice:~$ sudo systemctl status openhab
[sudo] password for openhabian:
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset:
Active: inactive (dead)
Docs: Introduction | openHAB
https://community.openhab.org

[12:42:02] openhabian@openHABianDevice:~$ sudo journalctl -u openhab
– Logs begin at Mon 2021-01-04 17:18:07 CET, end at Wed 2021-01-06 12:42:50 CET
– No entries –
lines 1-2/2 (END)

The service is disabled. Try:

sudo systemctl enable openhab.service

then

sudo systemctl restart openhab.service

in case there are error messages please post them.

[12:43:02] openhabian@openHABianDevice:~$ sudo systemctl enable openhab.service
Created symlink /etc/systemd/system/multi-user.target.wants/openhab.service → /l ib/systemd/system/openhab.service.
[12:49:45] openhabian@openHABianDevice:~$ sudo systemctl restart openhab.service
[12:50:07] openhabian@openHABianDevice:~$

AND … BINGO…

Dont know what or why, but now its running thx

I was going to say that this should have all been in the installation guide but looking at the Download page, when doing the Linux package route, it does look like it does miss these steps which are well known to Linux guys, but less so to newcomers. Maybe some of the admins could add these steps…

this step ‘normally’ is being executed during the installation of openhab service.
The commands are included in the openhabian-config installation steps and executed automatically.
So the question would be have there been any error messages shown during the installation?