404 Not Found

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

Moderator: leecollings

Post Reply
Huupke
Posts: 25
Joined: Monday 21 October 2019 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Boxtel, Netherlands
Contact:

404 Not Found

Post by Huupke »

I keep getting a "404 Not Found" error on the webpage of my Rpi4 running domoticz after a fresh build. I merged in latest development so at HEAD and only made some changes to XiaomiGateway.

I cleared my browser cache and removed the database but no luck.
I tried different things to increase verbosity to get more information on what is actually missing or not accessible. I run domoticz as follows now:

Code: Select all

sudo bin/domoticz -log /var/log/domoticz.log -loglevel normal,status,error,debug -debuglevel normal,hardware,received,webserver,eventsystem
I managed to get a little bit more info but nothing useful yet:

Code: Select all

2021-05-17 15:47:01.362  [b5ff5010] Status: Domoticz V2021.1 (build 13264) (c)2012-2021 GizMoCuz
2021-05-17 15:47:01.362  [b5ff5010] Status: Build Hash: 2f6348c3f-modified, Date: 2021-05-16 14:09:33
2021-05-17 15:47:01.362  [b5ff5010] Status: Startup Path: /home/pi/dev-domoticz/domoticz/bin/
2021-05-17 15:47:01.471  [b5ff5010] Status: PluginSystem: Started, Python version '3.7.3'.
2021-05-17 15:47:01.474  [b5ff5010] Active notification Subsystems: fcm, http (2/13)
2021-05-17 15:47:01.475  [b5ff5010] Status: WebServer(HTTP) started on address: :: with port 8080
2021-05-17 15:47:01.478  [b5ff5010] Status: WebServer(SSL) started on address: :: with port 443
2021-05-17 15:47:01.479  [b5ff5010] Starting shared server on: :::6144
2021-05-17 15:47:01.479  [b09fe220] Status: TCPServer: shared server started...
2021-05-17 15:47:01.480  [af7ff220] Status: RxQueue: queue worker started...
2021-05-17 15:47:03.480  [aebff220] Status: NotificationSystem: thread started...
2021-05-17 15:47:03.481  [b01fd220] Status: EventSystem: reset all events...
2021-05-17 15:47:03.481  [b01fd220] Status: EventSystem: reset all device statuses...
2021-05-17 15:47:03.545  [b01fd220] Status: Python EventSystem: Initalizing event module.
2021-05-17 15:47:03.546  [ae3fe220] Status: EventSystem: Started
2021-05-17 15:47:03.546  [ad9ff220] Status: EventSystem: Queue thread started...
2021-05-17 15:48:00.095  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:48:01.348  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:48:01.475  [b3597220] Debug: [web:8080] cleaning sessions...
2021-05-17 15:48:01.478  [b23ff220] Debug: [web:443] cleaning sessions...
2021-05-17 15:48:01.736  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:48:01.955  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:58:08.558  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:58:10.173  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:58:10.832  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:58:11.069  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 15:58:16.664  [b2d96220] Debug: web: Host:192.168.1.37 Uri;/
2021-05-17 16:03:01.475  [b3597220] Debug: [web:8080] cleaning sessions...
2021-05-17 16:03:01.478  [b23ff220] Debug: [web:443] cleaning sessions...
Is there any extra logfile, loglevel, debuglevel that I'm missing to debug this error?
Running V2024.4 on RPi3B+ & development/HEAD on RPi4B
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 404 Not Found

Post by waaren »


Huupke wrote:I keep getting a "404 Not Found" error on the webpage of my Rpi4 running domoticz after a fresh build.
Is there any extra logfile, loglevel, debuglevel that I'm missing to debug this error?
What do you enter in your browser address bar?




Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Huupke
Posts: 25
Joined: Monday 21 October 2019 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Boxtel, Netherlands
Contact:

Re: 404 Not Found

Post by Huupke »

Same as I do with my stable running version (RPi3B:V2021.1):

Code: Select all

<hostname or ip>:8080
for instance:

Code: Select all

http://192.168.1.20:8080
but also the following doesn't work on my RPi4 running latest development branch:

Code: Select all

http://192.168.1.20:8080/#/Setup
Running V2024.4 on RPi3B+ & development/HEAD on RPi4B
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 404 Not Found

Post by waaren »

Huupke wrote: Monday 17 May 2021 19:48 Same as I do with my stable running version (RPi3B:V2021.1):
Noticed that you execute the domoticz binary in /home/pi/dev-domoticz/domoticz/bin/
Your domoticz binary and database should be located in the directory where also the subdirectories www, scripts, Config, dzVents (and optional backups and plugins) are.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Huupke
Posts: 25
Joined: Monday 21 October 2019 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Boxtel, Netherlands
Contact:

Re: 404 Not Found

Post by Huupke »

Thanks, that was easy and did the trick!

I noticed that 'make install' wants to install it in '/opt/domoticz/'. Do you generally just copy your executable from <source-folder>/bin to <source-folder> manually?
Running V2024.4 on RPi3B+ & development/HEAD on RPi4B
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 404 Not Found

Post by waaren »

Huupke wrote: Monday 17 May 2021 20:10 Do you generally just copy your executable from <source-folder>/bin to <source-folder> manually?
I don't use make install but the domoticz binary is only one part of the domoticz application.

After stopping domoticz and making a backup, I copy the files domoticz + update* + History.txt + server_cert.pem (only when you don't have a own version) and the required subdirectories to the target dir with rsync

after setting the vars source and target to the full qualified paths of source directory
for me

Code: Select all

source=/usr/local/domotica/git/beta
target=/opt/domoticz
I do a

Code: Select all

rsync  $source/bin/domoticz  $target
rsync  $source/update*  $target
rsync  $source/History.txt  $target
rsync --ignore-existing  $source/server_cert.pem $target
rsync -r $source/www/ $target/www
rsync -r $source/dzVents/ $target/dzVents
rsync -r $source/Config/ $target/Config
rsync -r $source/scripts/ to $target/scripts
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest