Possible incomplete instruction "Build Domoticz from source" 404 not found

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

Moderator: leecollings

Post Reply
heinohein
Posts: 5
Joined: Saturday 11 July 2020 15:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Possible incomplete instruction "Build Domoticz from source" 404 not found

Post by heinohein »

On my Raspberry PI 4B I freshly installed Linux. Then I followed the instructions from "Build Domoticz from source" accurately. As an extra step I created a map domoticz and copied the programm domoticz and domoticz.sh. When I checked the status of domoticz with systemctl, the programm was running. When I try to open the webpage of domotiz on port 8080 I get a blank screen with the message "404 Not found".

I installed the precompiled version of domoticz 2020.2. When I open the webpage of domoticz on port 8080 I see the startup screen of domoticz. OKE. I saved the precompiled version of domoticz and the domoticz.sh file.

I stopped domoticz, copied the compiled version of domoticz from dev-domoticz to the map domoticz and started domoticz again. When I open the webpage of domoticz on port 8080 I see the startup screen of domoticz. OKE.

I renamed the map domoticz, created a new map domoticz and copied the saved version of domoticz and domoticz.sh. I started domoticz and checked with status that is was running. When I try to open the webpage of domotiz on port 8080 I get a blank screen with the message "404 Not found".

I noticed the following differences between the map with the 404 error and the map with no error:

404 error:

Code: Select all

pi@RPI4:~/domoticz $ ls
domoticz  domoticz.db  domoticz.db-shm  domoticz.db-wal  domoticz.sh  plugins
running fine:

Code: Select all

Config       License.txt     domoticz                  domoticz.db  dzVents  scripts          updatebeta     www
History.txt  domocookie.txt  domoticz.2020.2.nochange  domoticz.sh  plugins  server_cert.pem  updaterelease


I assume that the 404 error is caused by missing necessary maps and files. If correct could you update the documentation "Build Domoticz from source" to overcome this problem?
Thank you.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Possible incomplete instruction "Build Domoticz from source" 404 not found

Post by waaren »

heinohein wrote: Thursday 15 October 2020 20:46 I assume that the 404 error is caused by missing necessary maps and files. If correct could you update the documentation "Build Domoticz from source" to overcome this problem?
Thank you.
That part of the wiki is indeed not complete. Assumption here is that members technical enough to "Build Domoticz from source" know how to create a "production" environment separated from the development.
But this is not the first time the question comes up so I will update the wiki with below

btw. The wiki is from / for us all so please feel free to update / amend it when you see it's not complete or incorrect. To do so you can send me a PM with your Email address / preferred username and I will create an account for you.

Code: Select all

source=~/dev-domoticz  # or another directory you use(d) for development
target=~/domoticz      # or another target directory

sudo mkdir -p $target/backups
sudo mkdir $target/plugins

# One of the next two rsync comamnds will copy your domoticz binary to the target location
sudo rsync -I $source/bin/domoticz $target/domoticz # will error if the binary is not in $source/bin
sudo rsync -I $source/domoticz $target/domoticz     # will error if the binary is not in $source

sudo rsync -rI $source/www/ $target/www
sudo rsync -rI $source/dzVents/ $target/dzVents
sudo rsync -rI $source/Config/ $target/Config
sudo rsync -rI $source/scripts/ $target/scripts

sudo rsync -I $source/History.txt $target
sudo rsync -I $source/License.txt $target
sudo rsync -I $source/server_cert.pem $target
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