Noob here, please help with connecting to domoticz via web browser

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

Moderator: leecollings

Post Reply
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

Hi, noob here and new to odroid, Ubuntu and domoticz.
Hardware: odroid c4
Software Ubuntu 20-04-5 lts 64b
Domoticz v2022-2

Installed domoticz using terminal script and it’s active.
But I cannot acces locally via Firefox running on odroid,
Also not via another computer in the network.

Fixed ip is set at 192 168 2 89

I’m stuck here, have searched and tried a lot but cannot get it to work.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by waltervl »

Should be accessible with http://<IP-of-Domoticz-server>:8080 or https://<IP-of-Domoticz-server>:443

How do you know it is running?

Else check wiki https://www.domoticz.com/wiki/Getting_started or for troubleshooting wiki: https://www.domoticz.com/wiki/Troubleshooting
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

Thanks for the help.

I know it’s running because when I request the status it tells me it’s active.

I have screenshots but unable to post due to size and not able to scale them down from this device.

Also when I manually start domoticz it starts with no errors. Previously I had ssl errors but managed to resolve that issue.

I will try the troubleshooting link from above post, I didn’t come across that one before but I don’t see a clue in there yet.

I also cannot access through http://127.0.0.1:8080/ on the odroid itself as the ‘getting started’ information says. Which seems like it’s not a network settings issue.
Last edited by gixfighter on Wednesday 28 December 2022 23:11, edited 1 time in total.
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

Btw, when do you need to fill in user and password for domoticz? I haven’t seen where I can do that yet.
Sorry for being a noob, I’m thinking too difficult maybe.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by waltervl »

You are using 2022.2 Stable I presume so no worries about logging in accounts.
What with https url? Also not working? As SSL has something to do with https.
Else I would advise to run ./updaterelease to get Domoticz reinstalled.
What does the log file say when activated to write to OS (see troubleshooting wiki to activate)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

This ithe result of manual starting,, which appears to be ok in my opinion.

odroid@odroid:~/domoticz$ sudo ./domoticz
2022-12-29 06:59:23.398 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz
2022-12-29 06:59:23.398 Status: Build Hash: eea9db734, Date: 2022-11-05 13:05:35
2022-12-29 06:59:23.398 Status: Startup Path: /home/odroid/domoticz/
2022-12-29 06:59:23.506 Status: PluginSystem: Started, Python version '3.9.5', 1 plugin definitions loaded.
2022-12-29 06:59:23.511 Active notification Subsystems: fcm, http (2/13)
2022-12-29 06:59:23.512 Status: WebServer(HTTP) started on address: :: with port 8080
2022-12-29 06:59:23.519 Status: WebServer(SSL) started on address: :: with port 443
2022-12-29 06:59:23.521 Starting shared server on: :::6144
2022-12-29 06:59:23.521 Status: TCPServer: shared server started...
2022-12-29 06:59:23.522 Status: RxQueue: queue worker started...
2022-12-29 06:59:25.523 Status: NotificationSystem: thread started...
2022-12-29 06:59:25.523 Status: EventSystem: reset all events...
2022-12-29 06:59:25.524 Status: EventSystem: reset all device statuses...
2022-12-29 06:59:25.568 Status: Python EventSystem: Initializing event module.
2022-12-29 06:59:25.569 Status: EventSystem: Queue thread started...
2022-12-29 06:59:25.569 Status: EventSystem: Started

The log doesn't seem to work (log file not created), but sure I'm doing this wrong. I've added the last four lines to domoticz.sh:
DAEMON=/home/$USERNAME/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"
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file
#DAEMON_ARGS="$DAEMON_ARGS -loglevel normal,status,error, debug" # debug disabled for now
DAEMON_ARGS="$DAEMON_ARGS -loglevel normal,status,error" # these loglevels will make it to the logfile
#DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

odroid@odroid:~/domoticz$ sudo systemctl daemon-reload
odroid@odroid:~/domoticz$ sudo service domoticz stop
odroid@odroid:~/domoticz$ sudo service domoticz start
odroid@odroid:~/domoticz$ sudo tail -f /var/log/domoticz.log
tail: cannot open '/var/log/domoticz.log' for reading: No such file or directory
tail: no files remaining
odroid@odroid:~/domoticz$

but now when I manually start I get this with some errors:
odroid@odroid:~/domoticz$ ./domoticz
2022-12-29 07:09:01.438 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz
2022-12-29 07:09:01.438 Status: Build Hash: eea9db734, Date: 2022-11-05 13:05:35
2022-12-29 07:09:01.438 Status: Startup Path: /home/odroid/domoticz/
2022-12-29 07:09:01.574 Status: PluginSystem: Started, Python version '3.9.5', 1 plugin definitions loaded.
2022-12-29 07:09:01.579 Active notification Subsystems: fcm, http (2/13)
2022-12-29 07:09:01.581 Status: WebServer(HTTP) started on address: :: with port 8080
2022-12-29 07:09:01.591 Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied [system:13], trying ::
2022-12-29 07:09:01.594 Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied [system:13], trying 0.0.0.0
2022-12-29 07:09:01.597 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied [system:13]
2022-12-29 07:09:01.597 Error: WebServer(SSL) check privileges for opening ports below 1024
2022-12-29 07:09:01.599 Starting shared server on: :::6144
2022-12-29 07:09:01.600 Status: RxQueue: queue worker started...
2022-12-29 07:09:01.602 Status: TCPServer: shared server started...
2022-12-29 07:09:03.604 Status: NotificationSystem: thread started...
2022-12-29 07:09:03.605 Status: EventSystem: reset all events...
2022-12-29 07:09:03.606 Status: EventSystem: reset all device statuses...
2022-12-29 07:09:03.684 Status: Python EventSystem: Initializing event module.
2022-12-29 07:09:03.685 Status: EventSystem: Started
2022-12-29 07:09:03.685 Status: EventSystem: Queue thread started...
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

just noticed I'm on Ubuntu 20.04, which is 2yrs old. should I upgrade to 22.04? I'm not sure why I am running 20.04, think I've downloaded the wrong version. 20.04 is at the top of the download link page, which is kinda odd.
Can I do the update without installing all over? or better to download the image to the SD card?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by waltervl »

20.04 is fine
It seems that Only the IPv6 adresss ( :: ) are running, it should also mention something like:
WebServer(HTTP) started on address: 0.0.0.0 with port 8080

Did you do something on this? Do you have another webserver running on this machine? Perhaps try using another port than 8080 with startup parameters eg -www 8090
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

I only set static IP adress in IPv4 settings, IPv6 is still automatic.
I now got this, when trying 0.0.0.0 it gives permission error:, something to do with permission in network settings? I don't know ...

odroid@odroid:~/domoticz$ ./domoticz
2022-12-29 12:47:29.655 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz
2022-12-29 12:47:29.655 Status: Build Hash: eea9db734, Date: 2022-11-05 13:05:35
2022-12-29 12:47:29.655 Status: Startup Path: /home/odroid/domoticz/
2022-12-29 12:47:29.749 Status: PluginSystem: Started, Python version '3.9.5', 1 plugin definitions loaded.
2022-12-29 12:47:29.753 Active notification Subsystems: fcm, http (2/13)
2022-12-29 12:47:29.754 Status: WebServer(HTTP) started on address: :: with port 8080
2022-12-29 12:47:29.761 Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied [system:13], trying ::
2022-12-29 12:47:29.763 Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied [system:13], trying 0.0.0.0
2022-12-29 12:47:29.766 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied [system:13]
2022-12-29 12:47:29.766 Error: WebServer(SSL) check privileges for opening ports below 1024
2022-12-29 12:47:29.768 Starting shared server on: :::6144
2022-12-29 12:47:29.769 Status: TCPServer: shared server started...
2022-12-29 12:47:29.770 Status: RxQueue: queue worker started...
2022-12-29 12:47:31.770 Status: NotificationSystem: thread started...
2022-12-29 12:47:31.770 Status: EventSystem: reset all events...
2022-12-29 12:47:31.771 Status: EventSystem: reset all device statuses...
2022-12-29 12:47:31.815 Status: Python EventSystem: Initializing event module.
2022-12-29 12:47:31.815 Status: EventSystem: Started
2022-12-29 12:47:31.815 Status: EventSystem: Queue thread started...
gixfighter
Posts: 7
Joined: Tuesday 27 December 2022 22:45
Target OS: Linux
Domoticz version:
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by gixfighter »

I eventually decided to start over with newest OS 22.04 and works directly. Not sure if this was a incidental issue or related to latest stable Domoticz with Ubuntu 20.04.

thanks for the help.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Noob here, please help with connecting to domoticz via web browser

Post by waltervl »

OK, good to know it runs again. I myself run Domoticz on a system with Ubuntu 20.04 so that should be no issue.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest