Page 2 of 2

Re: Domoticz does not open port 8080

Posted: Tuesday 01 January 2019 16:51
by waaren
m.versteegh wrote: Tuesday 01 January 2019 14:39 I've initialised logging and rebooted the system, so it's a fresh log. It starts with the items as provided below. The log does contain a error, but that is related to InfluxDB. Based on the log, I would say that it has fired up the server running at 8443.
From the lines in the logfile it looks like domoticz started on ports 8080 and 8443 but I do not see the expected domoticz process in the result of the ps command.
Can you tell from the last lines in the logfile (use tail -f "your logfile" if domoticz is still running ?
can you also try

Code: Select all

sudo ps -ef | grep 8080
sudo ps -ef | grep 8443
This should show the domoticz process

Re: Domoticz does not open port 8080

Posted: Tuesday 01 January 2019 17:57
by m.versteegh
waaren wrote: Tuesday 01 January 2019 16:51 Can you tell from the last lines in the logfile (use tail -f "your logfile" if domoticz is still running ?
can you also try

Code: Select all

sudo ps -ef | grep 8080
sudo ps -ef | grep 8443
This should show the domoticz process
Sure I can :D

The tail command results in:

Code: Select all

pi@raspberrypi:/tmp $ tail -f domoticz.txt
2019-01-01 14:30:27.403  Status: XiaomiGateway (ID=9): Worker started...
2019-01-01 14:30:27.405  Status: XiaomiGateway (ID=9): Using 192.168.1.11 for local IP address.
2019-01-01 14:30:27.405  Status: XiaomiGateway (ID=5): Worker started...
2019-01-01 14:30:27.407  Status: XiaomiGateway (ID=5): Using 192.168.1.11 for local IP address.
2019-01-01 14:30:27.516  Status: XiaomiGateway: RGB Gateway Detected
2019-01-01 14:30:27.576  Status: EventSystem: reset all events...
2019-01-01 14:30:27.580  Status: EventSystem: reset all device statuses...
2019-01-01 14:30:27.613  (Aeon Zwave Stick) Current (Unknown)
2019-01-01 14:30:27.743  Status: PluginSystem: Entering work loop.
2019-01-01 14:30:27.867  Status: XiaomiGateway: RGB Gateway Detected
Grep results in:

Code: Select all

pi         683   524  0 17:56 pts/0    00:00:00 grep --color=auto 8080
and

Code: Select all

pi         693   524  0 17:56 pts/0    00:00:00 grep --color=auto 8443
(Already thanks for helping out!)

Re: Domoticz does not open port 8080

Posted: Tuesday 01 January 2019 18:13
by waaren
m.versteegh wrote: Tuesday 01 January 2019 17:57 Grep results in:

Code: Select all

pi         683   524  0 17:56 pts/0    00:00:00 grep --color=auto 8080
pi         693   524  0 17:56 pts/0    00:00:00 grep --color=auto 8443
Send a PM

Re: Domoticz does not open port 8080

Posted: Tuesday 01 January 2019 18:23
by m.versteegh
I've send a reply :D

Re: Domoticz does not open port 8080

Posted: Tuesday 01 January 2019 21:21
by Kouki31
hello.
i have same.
did you find a solution ?
thanks

Re: Domoticz does not open port 8080

Posted: Wednesday 02 January 2019 12:17
by m.versteegh
No, not yet, but working on it

Re: Domoticz does not open port 8080

Posted: Monday 07 January 2019 10:41
by mdaarek2
Hello.
I have similar symptoms. Everything worked until you added the Xiaomi gate. After adding Xiaomi - no gui :(
After restoring the copy of the domoticza directory everything works (of course, a copy without Xiaomi).

Re: Domoticz does not open port 8080

Posted: Wednesday 16 January 2019 23:42
by Kouki31
hello.
i have make a new installation...
its work good.
thanks

Re: Domoticz does not open port 8080

Posted: Tuesday 26 February 2019 21:39
by marmachine
I am experiencing the same issue.
Any thoughts?

I have tried:
  • Different port
  • Clean system without anything else installed prior to Domoticz instructions
When i test, as Domoticz instructions suggest, it works until reboot

Test Domoticz (Important to get the file ownerships right!)
cd domoticz
sudo ./domoticz

Could it be a matter of file rights? Since i use sudo above, after reboot it is the pi user starting up i guess? :?:

Code: Select all

-rw-r--r--  1 pi   pi         77 Feb 26 22:18 appversion.default
-rw-r--r--  1 pi   pi         79 Feb 26 22:20 appversion.h
-rw-r--r--  1 pi   pi         79 Feb 26 22:20 appversion.h.txt
-rw-r--r--  1 pi   pi       1400 Feb 26 22:18 appveyor.yml
drwxr-xr-x  6 pi   pi       4096 Feb 26 22:18 cereal
-rw-r--r--  1 pi   pi      22210 Feb 26 22:19 CMakeCache.txt
drwxr-xr-x  8 pi   pi       4096 Feb 27 00:31 CMakeFiles
-rw-r--r--  1 pi   pi       8275 Feb 26 22:19 cmake_install.cmake
-rw-r--r--  1 pi   pi      28573 Feb 26 22:18 CMakeLists.txt
drwxr-xr-x 84 pi   pi       4096 Jun 23  2018 Config
-rw-r--r--  1 pi   pi       3521 Feb 26 22:19 CPackConfig.cmake
-rw-r--r--  1 pi   pi       3893 Feb 26 22:19 CPackSourceConfig.cmake
-rwxr-xr-x  1 pi   pi   14614432 Jun 23  2018 domoticz
-rw-------  1 root root    14213 Feb 27 19:47 domoticz_crash.log
-rw-r-----  1 root root   409600 Feb 27 19:57 domoticz.db
-rw-r--r--  1 pi   pi       4427 Jun 23  2018 domoticz.sh
drwxr-xr-x  4 pi   pi       4096 Jun 23  2018 dzVents
-rw-r--r--  1 pi   pi       3085 Feb 26 22:18 getgit.cmake
drwxr-xr-x 12 pi   pi      12288 Feb 26 22:18 hardware
-rw-r--r--  1 pi   pi      87589 Jun 23  2018 History.txt
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 httpclient
-rw-r--r--  1 pi   pi       5930 Feb 26 22:18 INSTALL.md
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 json
-rw-r--r--  1 pi   pi      35147 Jun 23  2018 License.txt
drwxr-xr-x  5 pi   pi       4096 Feb 26 22:19 lua
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 main
-rw-r--r--  1 pi   pi       2488 Feb 26 22:18 makebeta
-rw-r--r--  1 pi   pi     240814 Feb 26 22:19 Makefile
-rw-r--r--  1 pi   pi       2346 Feb 26 22:18 makerelease
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 Manual
drwxr-xr-x  3 pi   pi       4096 Feb 26 22:20 MQTT
drwxr-xr-x  4 pi   pi       4096 Feb 26 22:18 msbuild
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 notifications
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 patches
drwxr-xr-x  4 pi   pi       4096 Jun 23  2018 plugins
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 push
-rw-r--r--  1 pi   pi       2864 Feb 26 22:18 README.md
drwxr-xr-x  8 pi   pi       4096 Jun 23  2018 scripts
-rw-r--r--  1 pi   pi       3414 Jun 23  2018 server_cert.pem
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 smtpclient
drwxr-xr-x  3 pi   pi       4096 Feb 26 22:23 sqlite
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:23 stdafx.h.gch
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 tcpserver
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 tinyxpath
drwxr-xr-x  3 pi   pi       4096 Feb 26 22:18 tools
-rwxr-xr-x  1 pi   pi        607 Jun 23  2018 updatebeta
-rwxr-xr-x  1 pi   pi        490 Feb 26 22:18 updatedomo
-rwxr-xr-x  1 pi   pi        624 Jun 23  2018 updaterelease
drwxr-xr-x  2 pi   pi       4096 Feb 26 22:18 webserver
drwxr-xr-x 13 pi   pi       4096 Jun 23  2018 www
drwxr-xr-x  3 pi   pi       4096 Feb 26 22:20 zip
drwxr-xr-x  3 pi   pi       4096 Feb 26 22:18 zlib

Code: Select all

[b]sudo /etc/init.d/domoticz.sh status -l[/b]
domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: active (exited) since Tue 2019-02-26 20:40:02 CET; 48min ago
Docs: man:systemd-sysv-generator(8)
Process: 427 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/domoticz.service

feb 26 20:40:00 raspberrypi systemd[1]: Starting LSB: Home Automation System...
feb 26 20:40:02 raspberrypi domoticz.sh[427]: 2019-02-26 20:40:02.221  Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
feb 26 20:40:02 raspberrypi domoticz.sh[427]: 2019-02-26 20:40:02.234  Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
feb 26 20:40:02 raspberrypi domoticz.sh[427]: 2019-02-26 20:40:02.255  Status: Startup Path: /home/pi/domoticz/
feb 26 20:40:02 raspberrypi domoticz.sh[427]: domoticz: Domoticz is starting up....
feb 26 20:40:02 raspberrypi domoticz[474]: Domoticz is starting up....
feb 26 20:40:02 raspberrypi domoticz[531]: Domoticz running...
feb 26 20:40:02 raspberrypi systemd[1]: Started LSB: Home Automation System.

Code: Select all

[b]sudo netstat -lpn[/b]
Active Internet connections (only servers)
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      517/sshd
tcp6       0      0 :::80                   :::*                    LISTEN      532/apache2
tcp6       0      0 :::22                   :::*                    LISTEN      517/sshd
tcp6       0      0 ::1:3350                :::*                    LISTEN      472/xrdp-sesman
tcp6       0      0 :::3389                 :::*                    LISTEN      501/xrdp
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           312/avahi-daemon: r
udp        0      0 0.0.0.0:33139           0.0.0.0:*                           312/avahi-daemon: r
udp        0      0 0.0.0.0:68              0.0.0.0:*                           350/dhcpcd
udp        0      0 192.168.2.103:123       0.0.0.0:*                           498/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           498/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           498/ntpd
udp6       0      0 :::5353                 :::*                                312/avahi-daemon: r
udp6       0      0 :::49656                :::*                                312/avahi-daemon: r
udp6       0      0 :::546                  :::*                                350/dhcpcd
udp6       0      0 2a02:a44e:c1ad:1:e5:123 :::*                                498/ntpd
udp6       0      0 fe80::358b:4dc5:648:123 :::*                                498/ntpd
udp6       0      0 ::1:123                 :::*                                498/ntpd
udp6       0      0 :::123                  :::*                                498/ntpd
raw6       0      0 :::58                   :::*                    7           350/dhcpcd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name     Path
unix  2      [ ACC ]     STREAM     LISTENING     11755    530/Xorg             @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     11816    561/systemd          /run/user/1000/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     11821    561/systemd          /run/user/1000/gnupg/S.gpg-agent.browser
unix  2      [ ACC ]     STREAM     LISTENING     11824    561/systemd          /run/user/1000/gnupg/S.gpg-agent.ssh
unix  2      [ ACC ]     STREAM     LISTENING     7231     1/init               /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     7242     1/init               /run/systemd/fsck.progress
unix  2      [ ACC ]     STREAM     LISTENING     7244     1/init               /run/systemd/journal/stdout
unix  2      [ ACC ]     SEQPACKET  LISTENING     7249     1/init               /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     14937    659/pcmanfm          /run/user/1000/pcmanfm-socket--0
unix  2      [ ACC ]     STREAM     LISTENING     11422    350/dhcpcd           /var/run/dhcpcd.sock
unix  2      [ ACC ]     STREAM     LISTENING     11424    350/dhcpcd           /var/run/dhcpcd.unpriv.sock
unix  2      [ ACC ]     SEQPACKET  LISTENING     14032    691/bluealsa         /var/run/bluealsa/hci0
unix  2      [ ACC ]     STREAM     LISTENING     8918     1/init               /run/thd.socket
unix  2      [ ACC ]     STREAM     LISTENING     11756    530/Xorg             /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     8920     1/init               /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     8923     1/init               /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     12008    718/menu-cached      /run/user/1000/menu-cached-:0
unix  2      [ ACC ]     STREAM     LISTENING     13150    619/ssh-agent        /tmp/ssh-cWFefTqtkSSb/agent.569
unix  2      [ ACC ]     STREAM     LISTENING     14580    561/systemd          /run/user/1000/bus
unix  2      [ ACC ]     STREAM     LISTENING     14582    561/systemd          /run/user/1000/gnupg/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     14584    561/systemd          /run/user/1000/gnupg/S.gpg-agent.extra
unix  2      [ ACC ]     STREAM     LISTENING     14798    674/ssh-agent        /tmp/ssh-qfgW7y2v0JqP/agent.671

Re: Domoticz does not open port 8080

Posted: Thursday 28 February 2019 22:30
by marmachine
Elvana wrote: Tuesday 12 September 2017 13:47 ...
I then installed Domoticz "The Easy Way" according to https://www.domoticz.com/wiki/Installin ... e_easy_way
with

Code: Select all

sudo curl -L install.domoticz.com | sudo bash
This ran successfully but yielded Domoticz inaccessible (with and without https enabled - no difference).
Well, here's another issue... this won't run on a clean downloaded brand-new image: 2018-11-13-raspbian-stretch-full

EDIT: Caused by IPV6 error, this is by default turned ON in my router, so turn OFF and reboot, then try again.
see this thread

Code: Select all

pi@raspberrypi:~ $ sudo curl -L install.domoticz.com | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11643  100 11643    0     0   293k      0 --:--:-- --:--:-- --:--:--  299k
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html>'

Re: Domoticz does not open port 8080

Posted: Thursday 28 February 2019 22:47
by DosN
im running domoticz 4.10038.. and i updated to the lates version of Feb 25

it was running fine , but after a reboot , i cannot open port 8182( where i set it on )

So i inserted teh backup 4.10038 again and it runns ..

It there a bug in the latest domoticx software ????? are more people having this issue ?

Re: Domoticz does not open port 8080

Posted: Tuesday 05 March 2019 20:47
by Benneton
Similar issue, was running latest beta version.
Since today I when I tried to add additional IP Camera (it showed up in preview gave error when hitting ADD button)
Error I got was:
"Problem adding camera!"
It failes a couple of times, so I believed a reboot of my system would be good.
System reboot, no more Domoticz.

Looked up not listing on port 8080 / 8443

Will see if I can install again domoticz.

Re: Domoticz does not open port 8080

Posted: Tuesday 05 March 2019 21:22
by Benneton
after a reboot and update of installed packeges it still did not work.
Checked Domoticz and saw that service was not started.
started domoticz and could view my page again.
Now need to sort out why the Domoticz service was not started automatically.