Domoticz doesnt open on Rasberry

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz doesnt open on Rasberry

Post by Peter83 »

Hi,

i tried to figure ist out for a day now and read a lot here but nothing really helped.

So i installted Domoticz on my Pi 400 with Raspbian OS and appearently its active but i cannot open it up on Pi.
Pi got the Ip 192.168.0.200
So typing in this 192.168.0.200:443 on my desktop PC with Windows. Its opens up Domoticz and i can set up sensors an stuff.. so why here and not on PI?

i already installed some libssl 1.0-dev but i coulnd find the libssl 1.0.0 as mentioned here in some other topic..
i tried to open it up with 127.0.0.1:8080 as well on the Pi but it cant find website.
Whats missing?

( Im new to Domoticz, new to Raspberry, new to MQTT)
keros
Posts: 75
Joined: Saturday 27 July 2019 0:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by keros »

Have you tried 192.168.0.200:8080 from your Windows PC ?
Moderator on Easydomoticz.com, the French DomoticZ forum.
French writer for ZigBeeForDomoticZ Plugin Wiki
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

yes, i tried, but its not showing up.

i type in: https://192.168.0.200 and its finds domoticz at https://192.168.0.200/#/Dashboard
but on Windwos pc only.
keros
Posts: 75
Joined: Saturday 27 July 2019 0:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by keros »

Did you open the 8080 port during the installation ?
Moderator on Easydomoticz.com, the French DomoticZ forum.
French writer for ZigBeeForDomoticZ Plugin Wiki
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

i thougt i did so with 8080.
but looking in domoticz from my PC it says :Remote Shared Port :6144
and typing in netstat -lpn at PI it shows:

Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
tcp6 0 0 :::443 :::* LISTEN -
tcp6 0 0 :::1883 :::* LISTEN -
tcp6 0 0 :::6144 :::* LISTEN -
udp 0 0 0.0.0.0:36831 0.0.0.0:* -
udp 0 0 0.0.0.0:68 0.0.0.0:* -
udp 0 0 0.0.0.0:631 0.0.0.0:* -
udp 0 0 224.0.0.251:5353 0.0.0.0:* 1020/chromium-brows
udp 0 0 0.0.0.0:5353 0.
0.0.0:* -
udp6 0 0 :::546 :::* -
udp6 0 0 :::40094 :::* -
udp6 0 0 :::5353 :::* -
raw6 0 0 :::58 :::* 7 -
Aktive Sockets in der UNIX-Domäne (Nur Server)
Proto RefCnt Flags Type State I-Node PID/Program name Pfad
unix 2 [ ACC ] STREAM HÖRT 18727 587/systemd /run/user/1000/systemd/private
unix 2 [ ACC ] STREAM HÖRT 18732 587/systemd /run/user/1000/gnupg/S.gpg-agent.browser
unix 2 [ ACC ] STREAM HÖRT 18733 587/systemd /run/user/1000/pulse/native
unix 2 [ ACC ] STREAM HÖRT 18734 587/systemd /run/user/1000/gnupg/S.gpg-agent.ssh
unix 2 [ ACC ] STREAM HÖRT 18735 587/systemd /run/user/1000/gnupg/S.gpg-agent
unix 2 [ ACC ] STREAM HÖRT 18736 587/systemd /run/user/1000/bus
unix 2 [ ACC ] STREAM HÖRT 18737 587/systemd /run/user/1000/gnupg/S.gpg-agent.extra
unix 2 [ ACC ] STREAM HÖRT 18738 587/systemd /run/user/1000/gnupg/S.dirmngr
unix 2 [ ACC ] STREAM HÖRT 18027 667/pcmanfm /run/user/1000/pcmanfm-socket--0
unix 2 [ ACC ] STREAM HÖRT 18154 733/menu-cached /run/user/1000/menu-cached-:0
unix 2 [ ACC ] STREAM HÖRT 24304 1517/lxterminal /run/user/1000/.lxterminal-socket-:0.0
unix 2 [ ACC ] STREAM HÖRT 17808 - @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM HÖRT 9692 - /run/systemd/private
unix 2 [ ACC ] STREAM HÖRT 9697 - /run/systemd/fsck.progress
unix 2 [ ACC ] SEQPAKET HÖRT 9700 - /run/udev/control
unix 2 [ ACC ] STREAM HÖRT 9714 - /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM HÖRT 12169 - /run/cups/cups.sock
unix 2 [ ACC ] STREAM HÖRT 12171 - /run/avahi-daemon/socket
unix 2 [ ACC ] STREAM HÖRT 17809 - /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM HÖRT 12173 - /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM HÖRT 12175 - /run/thd.socket
unix 2 [ ACC ] STREAM HÖRT 18768 - /tmp/ssh-OXLx0DhA2Kbz/agent.598
unix 2 [ ACC ] STREAM HÖRT 19697 - /tmp/ssh-00Kfii3tmLn1/agent.670
unix 2 [ ACC ] STREAM HÖRT 15163 - /var/run/dhcpcd.sock
unix 2 [ ACC ] STREAM HÖRT 15164 - /var/run/dhcpcd.unpriv.sock
unix 2 [ ACC ] STREAM HÖRT 23688 1020/chromium-brows /tmp/.org.chromium.Chromium.Cnkk5A/SingletonSocket
Last edited by Peter83 on Sunday 31 July 2022 22:39, edited 1 time in total.
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

restart doesent help. tried sudo service domoticz.sh restart as well
Trying to get it with ..:6144 neigther

Ist TCP6 a problem?
really not knowing much of what im doing there at all
User avatar
elzorrovega
Posts: 61
Joined: Friday 08 May 2020 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Bordeaux, France
Contact:

Re: Domoticz doesnt open on Rasberry

Post by elzorrovega »

Hello Peter,

Please find a small script I use to verify my Domoticz connection and the output is below.
The second last line of the output tells me that my Domotiz daemon is running.
What version of OS and Domoticz are you running?
When you says that it works from PC, Do you mean that you can access the Domoticz web server from a windows machine?

bash script

Code: Select all

#!/bin/bash
# Find IP/MAC of ethernet devices
date
Rasp=$(hostname)
echo $Rasp "IP Configuration" 
RaspIP=$(hostname -I)
echo "IP " $RaspIP
MACe=$(cat /sys/class/net/eth0/address)
echo "eth0 MAC" $MACe
MACw=$(cat /sys/class/net/wlan0/address)
echo "wlan0 MAC" $MACw
echo "Is Domoticz Daemon running?"
ps -ef | grep 'domoticz'
#
script Output
Sun 31 Jul 22:45:47 CEST 2022
raspberrypi IP Configuration
IP 192.168.??.?? 192.168.??.?? 2a01:cb19:a01:e500:71e4:bd0d:3bd9:ac95 2a01:cb19:a01:e500:c9ac:dc3f:62b6:70a5
eth0 MAC b8:27:eb:7e:22:32
wlan0 MAC b8:27:eb:2b:77:67
Is Domoticz Daemon running?
root 564 1 1 Jul22 ? 02:15:49 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443
pi 546846 546839 0 22:45 pts/1 00:00:00 grep domoticz
The solution to the problem changes the problem!

Rasberry Pi 4 Model B; Bullseye -64 bit OS 6.1.21-v8+ #1642
Domoticz Version: 2024.7
zwave-js-ui: 9.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

ok so this ist my output:
pi@raspberrypi:~ $ #!/bin/bash
pi@raspberrypi:~ $ # Find IP/MAC of ethernet devices
pi@raspberrypi:~ $ date
So 31. Jul 23:17:15 CEST 2022
pi@raspberrypi:~ $ Rasp=$(hostname)
pi@raspberrypi:~ $ echo $Rasp "IP Configuration"
raspberrypi IP Configuration
pi@raspberrypi:~ $ RaspIP=$(hostname -I)
pi@raspberrypi:~ $ echo "IP " $RaspIP
IP 192.168.0.200
pi@raspberrypi:~ $ MACe=$(cat /sys/class/net/eth0/address)
pi@raspberrypi:~ $ echo "eth0 MAC" $MACe
eth0 MAC e4:5f:01:3d:15:c8
pi@raspberrypi:~ $ MACw=$(cat /sys/class/net/wlan0/address)
pi@raspberrypi:~ $ echo "wlan0 MAC" $MACw
wlan0 MAC e4:5f:01:3d:15:c9
pi@raspberrypi:~ $ echo "Is Domoticz Daemon running?"
Is Domoticz Daemon running?
pi@raspberrypi:~ $ ps -ef | grep 'domoticz'
root 2045 1 0 22:22 ? 00:00:11 /home/pi/domoticz/domoticz -daemon -www 0 -sslwww 443
pi 2997 1557 0 23:17 pts/1 00:00:00 grep --color=auto domoticz
pi@raspberrypi:~ $ #
So Port ist 0 or not installed??

where do i find out software versions?
i installed domoticz yesterday and dit update and upgrade on Pi first

tanks for your held so far!
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

elzorrovega wrote: Sunday 31 July 2022 23:01
When you says that it works from PC, Do you mean that you can access the Domoticz web server from a windows machine?
i type in 192.168.0.200 on firefox in Windows and it opens up domoticz wich must be on Raspberry since its Raspberrys adress. (PC got 192.168.0.103, and Domoticz on PC is switched off atm)
User avatar
elzorrovega
Posts: 61
Joined: Friday 08 May 2020 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Bordeaux, France
Contact:

Re: Domoticz doesnt open on Rasberry

Post by elzorrovega »

Hello Robert,

Good stuff! Domoticz is installed and working through port :0. Here below is a link to project workbook which should give you plenty of tips how to configure your system. What web browsers do you have installed in your Raspberry? Chromium should do the trick as url 192.168.0.200:0.
If you can access from MS Windows machine you will need to go to settings tab to change the port or it might be something via terminal.

viewtopic.php?t=36475

A simple way to get domoticz version is by opening the setup tab and look for about.

Here is a script to get RPIsysinfo

Code: Select all

!/bin/bash
#Read RPI sysinfo
#
if [ "$#" != "1" ]; then
	cat /proc/version
	cat /proc/cpuinfo
	for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9 ; do \
	echo -e "$codec:\t$(vcgencmd codec_enabled $codec)" ; \
	done
else
	cat /proc/version > "$1"
	cat /proc/cpuinfo >> "$1"
	for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9 ; do \
	echo -e "$codec:\t$(vcgencmd codec_enabled $codec)" >> "$1" ; \
	done
fi
exit
The solution to the problem changes the problem!

Rasberry Pi 4 Model B; Bullseye -64 bit OS 6.1.21-v8+ #1642
Domoticz Version: 2024.7
zwave-js-ui: 9.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

hi,
so Domoticz version is 2022.1, dzVents Version 3.1.8, Python Version 3.7.3
Pi Version is/raspbian/Gnu/Linux 10
Browser is Chromium

Its not working through ..:0 and i read that "0" has the Port closed. So how can i change 0 to 8080? (domoticz.sh file has had already Daemon_args... -www 8080" in it)
It actually is openining on all devices including the PI on httpS://...:443 now though.
User avatar
elzorrovega
Posts: 61
Joined: Friday 08 May 2020 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Bordeaux, France
Contact:

Re: Domoticz doesnt open on Rasberry

Post by elzorrovega »

Hello again

This link https://www.domoticz.com/wiki/Linux Option 1: Init.d and more generally https://www.domoticz.com/wiki/Main_Page is a Domoticz treasure trove.

Once you make changes you will need to restart Domoticz. Read about the scripts which you manually need to stop the database; otherwise, you run a risk of corrupting the database. Please refer to second script.

Use your favourite editor to change /etc/init.d/domoticz.sh to something like below

Code: Select all

DAEMON=/home/pi/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
Stop Script with monit included

Code: Select all

#!/bin/bash
echo "First stop Monit"
#
sudo /etc/init.d/monit stop 
#
echo "Then stop Domoticz"
#
sudo /etc/init.d/domoticz.sh stop
#
echo "When you are done modifying/updating/whatever, start Domoticz first:"
#
echo "Start Domoticz"
echo "sudo /etc/init.d/domoticz.sh start"
#
echo "Then start Monit again"
#
echo "sudo /etc/init.d/monit start"
#
The solution to the problem changes the problem!

Rasberry Pi 4 Model B; Bullseye -64 bit OS 6.1.21-v8+ #1642
Domoticz Version: 2024.7
zwave-js-ui: 9.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
Peter83
Posts: 24
Joined: Sunday 31 July 2022 13:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz doesnt open on Rasberry

Post by Peter83 »

thank you but it did not work for 8080

but du i actually nees it at all?
Since htts://...:443 ist working for me? And also if i want to sende data from outside wlan - is https not even better?
User avatar
elzorrovega
Posts: 61
Joined: Friday 08 May 2020 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Bordeaux, France
Contact:

Re: Domoticz doesnt open on Rasberry

Post by elzorrovega »

Hello Peter,

Did you modify domoticz.sh and restart RPI?

Although, you can use it via port 443, I would strongly recommend to de-install and reinstall Domoticz to have the proper configuration for local unsecured access. I believe that installation shell proposes by default port 8080. Since you have started, your database configuration is still empty so you have nothing to lose. Be sure that you have the latest updates to your RPI OS. Here is link to follow for more discussion about reinstalling

viewtopic.php?p=291019#p291019

I joined the Domoticz community in June 2019 and so far remote access via RealVNC is enough for me. If you wish to have access via your telephone/pad you can install RealVNC or buy a domain name. I have a second RPI (Raspberry Pi 4) where I do my tests and use it to run the local web browser to log to the Pi 3 B which runs Domoticz.

Working with Domoticz/RPi is like learning to ride a bicycle. It's hard at the beginning but you learn to keep your balance and go farther/faster. I will know that I will never participate to Tour de France but then again I should be able to ride at least some 50 km.

Welcome to the community and success to your project!

El Zorro Vega
The solution to the problem changes the problem!

Rasberry Pi 4 Model B; Bullseye -64 bit OS 6.1.21-v8+ #1642
Domoticz Version: 2024.7
zwave-js-ui: 9.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest