dashticzv3 / dashticz_v3

Dashticz V3: NOT MAINTAINED. Please switch to github.com/Dashticz/dashticz
https://github.com/Dashticz/dashticz
2 stars 1 forks source link

Autosetup on RPI: Sub-process /usr/bin/dpkg returned an error #21

Open Marmachine opened 5 years ago

Marmachine commented 5 years ago

Finding a free port for Dashticz Port 8082 is NOT in use

Setting up Dashticz on port 8082

Let's install docker first wget -qO- https://get.docker.com/ | sh

Executing docker install script, commit: 6bf300318ebaab958c4adc341a8c7bb9f3a54 a1a

Trying Domoticz IP...OK! All done

Marmachine commented 5 years ago

Also tried the following:

pi@raspberrypi:~ $ sudo apt-get install apache2 php php-xml php-curl libapache2-mod-php

Reading package lists... Done Building dependency tree Reading state information... Done apache2 is already the newest version (2.4.25-3+deb9u7). libapache2-mod-php is already the newest version (1:7.0+49). php is already the newest version (1:7.0+49). The following NEW packages will be installed: php-curl php-xml 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 kB of archives. After this operation, 24.6 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Selecting previously unselected package php-curl. (Reading database ... 138117 files and directories currently installed.) Preparing to unpack .../php-curl_1%3a7.0+49_all.deb ... Unpacking php-curl (1:7.0+49) ... Selecting previously unselected package php-xml. Preparing to unpack .../php-xml_1%3a7.0+49_all.deb ... Unpacking php-xml (1:7.0+49) ... Setting up docker-ce (5:19.03.1~3-0~raspbian-stretch) ... Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2019-07-28 21:37:40 CEST; 59ms ago Docs: https://docs.docker.com Process: 10030 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 10030 (code=exited, status=1/FAILURE) CPU: 1.291s

Jul 28 21:37:40 raspberrypi systemd[1]: docker.service: Unit entered failed state. Jul 28 21:37:40 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'. dpkg: error processing package docker-ce (--configure): subprocess installed post-installation script returned error exit status 1 Setting up php-curl (1:7.0+49) ... Setting up php-xml (1:7.0+49) ... Errors were encountered while processing: docker-ce E: Sub-process /usr/bin/dpkg returned an error code (1)

Marmachine commented 5 years ago

I did a bit of "googling" and i have found indication that the docker version [5:19.03.13] could be the problem. (see: https://github.com/moby/moby/issues/38175) So i've tried the oldest available and issued the following (however NO LUCK) sudo apt-get install docker-ce=17.09.0~ce-0~raspbian

Sooo... i'm not that much of an expert.... i went to manual installation and have v3 running

lokonli commented 5 years ago

ok, thanks for the feedback.

It seems to docker install related. It might be that docker more or less is installed correctly, but that the docker test and/or start at boot settings somehow went wrong.

You can see whether docker is installed correctly by typing docker

lokonli commented 5 years ago

Kamino cloned this issue to Dashticz/dashticz