can't auto install on pi zero - error & ends ssh session Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

can't auto install on pi zero - error & ends ssh session

Post by adeibiza »

i installed dashticz on a spare pi4 and liked it so i tried to install on a zero i have which has all the main devices on it

on the pi4 it went without a hitch but on the zero i get this (tried 3 times so far) and it also ends the ssh session....

Code: Select all

Setting up Dashticz on port 8082


Starting make process ...

Checking container dtv3-8082
Checking port 8082
sudo docker build --build-arg tz="Europe/Madrid" -t dtv3-8082 .
Sending build context to Docker daemon  120.3MB
Step 1/4 : FROM php:apache
 ---> 1c4fcc5e4a24
Step 2/4 : ARG tz="Europe/Amsterdam"
 ---> Using cache
 ---> 2327cdddb240
Step 3/4 : RUN printf "[PHP]\ndate.timezone = $tz\n" > /usr/local/etc/php/conf.d/tzone.ini
 ---> Running in 4ad5d62890d0
The command '/bin/sh -c printf "[PHP]\ndate.timezone = $tz\n" > /usr/local/etc/php/conf.d/tzone.ini' returned a non-zero code: 139
make: *** [Makefile:51: start] Error 139
Error during Make. Exiting
Connection to 192.168.1.153 closed.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by Lokonli »

Another user reported a similar issue in the past.

I don't have a zero, so I can't reproduce the issue myself.

As a workaround, you could edit Dockerfile:

Put a '#' in front of the line 6, like:

Code: Select all

#RUN printf "[PHP]\ndate.timezone = $tz\n" > /usr/local/etc/php/conf.d/tzone.ini
then build and start the Docker container with the following command:

Code: Select all

make start
I expect that Dashticz then will work. The only problem then still is, that the timezone info for PHP is not configured correctly. This might give issues with your Dashticz calendars. But we can solve that in the next step.
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by adeibiza »

i saw that other thread, nothing worked for me either

great, i wont be using calendars so no probs :)
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by adeibiza »

naaaah that doesn't work

i checked the /custom/CONFIG.js details are correct but nope - can't be arsed to faff about with it (which is a shame as it looks great for what i want to do but don't need the headache)

Code: Select all

Checking container dtv3-8082
Checking port 8082
sudo docker build --build-arg tz=Europe/Amsterdam -t dtv3-8082 .
Sending build context to Docker daemon  120.3MB
Step 1/3 : FROM php:apache
 ---> 1c4fcc5e4a24
Step 2/3 : ARG tz="Europe/Amsterdam"
 ---> Using cache
 ---> 2327cdddb240
Step 3/3 : SHELL ["/bin/bash", "-c"]
 ---> Running in 2431fd6e9a8a
Removing intermediate container 2431fd6e9a8a
 ---> 665039a3c936
Successfully built 665039a3c936
Successfully tagged dtv3-8082:latest
sudo docker run  --restart unless-stopped -v /etc/localtime:/etc/localtime:ro  --name dtv3-8082 -d -p 8082:80 --mount type=bind,source="/home/pi/dev/tent",target=/var/www/html dtv3-8082
e8581485e2a2656d7b89f53299aa1202b6d5ddf21bb3fbd3d70f02a4c21e7984

Dashticz is running at:
Template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "80/tcp") 0>: error calling index: index of untyped nil
http://192.168.1.153:
http://172.17.0.1:
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by Lokonli »

Dashticz should be running..
Did you try to open
http://192.168.1.153:8082
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by adeibiza »

nope - i forgot to reboot so did that, checked domoticz is running - nada on 153:8082

thanks, but it's now midnight, need to do some backup images - giving up this for the day ;)
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't auto install on pi zero - error & ends ssh session

Post by Lokonli »

docker probably is not running correctly. What is the output of:

Code: Select all

sudo docker ps
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest