repeat the same salt_ssh command
2 tasks shown failed
----------
ID: docker-software-service-running-docker
Function: service.running
Name: docker
Result: False
Comment: Service docker is already enabled, and is dead
Started: 20:19:33.052122
Duration: 252.685 ms
Changes:
----------
ID: docker-software-service-running-docker-fail-notify
Function: test.fail_without_changes
Result: False
Comment: Formula is trying to start 'docker' service
but failed, is it a correct name for Docker service in your OS?
In certain circumstances the docker service will not start.
Your kernel is missing some modules, or not in ideal state.
See https://github.com/moby/moby/blob/master/contrib/check-config.sh
* Rebooting your host is recommended!
Started: 20:19:33.307348
Duration: 2.35 ms
Changes:
docker.service fails to run. Inspection of failure
systemctl status docker.service
● docker.service - docker service
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sun 2021-04-25 20:19:33 BST; 1min 42s ago
Docs: https://docs.docker.com
Process: 3670 ExecStart=/usr/local/docker-19.03.9/bin//dockerd (code=killed, signal=SEGV)
Main PID: 3670 (code=killed, signal=SEGV)
Apr 25 20:19:33 raspberrypi systemd[1]: Started docker service.
Apr 25 20:19:33 raspberrypi systemd[1]: docker.service: Main process exited, code=killed, status=11/SEGV
Apr 25 20:19:33 raspberrypi systemd[1]: docker.service: Failed with result 'signal'.
and attempts to run dockerd manually on pi4 bash shows Segmentation fault
I note that #264 raised the exact same issue but did not mention in close that the latest commits leading to 2,0.3 where successful. I have made some changes to the docker-formula and have raised a WIP PULL request #287 . I am very unfamiliar with SALT and its architecture but learning fast and I am sure the key developers will be able to guide as appropriate to resolve this as a general solution for raspbian
Your setup
PI4 with latest raspbian 2021-03-04: https://downloads.raspberrypi.org/raspios_lite_armhf/release_notes.txt
uname -a
->Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
Formula commit hash / release tag
commit e44383834a42a9f7fed0910b68efe48b6b45f509 (HEAD -> master, tag: v2.0.3, origin/master, origin/HEAD)
Versions reports (master & minion)
I am using salt_ssh with a roster file so only master is relevant
Pillar / config used
None
Bug details
Describe the bug
on first run of
salt-ssh 'test_pi4' state.apply TEST_pi4_docker_install test=False
with logging I observerepeat the same salt_ssh command 2 tasks shown failed
docker.service fails to run. Inspection of failure
and attempts to run
dockerd
manually on pi4 bash showsSegmentation fault
Steps to reproduce the bug
roster (sensitive details redacted)
TEST_pi4_docker_install.sls
install docker attempt on rostered device
salt-ssh 'test_pi4' state.apply TEST_pi4_docker_install test=False
Expected behaviour
dockerd should be running
Attempts to fix the bug
Trace of install attempt show the archive installed as (Excerpt of Logfile with -l trace)
in reviewing the docker install instructions for raspbian specific note is made to not use the general install methods:
doing a dry run of the script reveals the package being installed as
deb [arch=armhf] https://download.docker.com/linux/raspbian buster stable
fromsudo sh get-docker.sh --dry-run
Additional context
I note that #264 raised the exact same issue but did not mention in close that the latest commits leading to 2,0.3 where successful. I have made some changes to the docker-formula and have raised a WIP PULL request #287 . I am very unfamiliar with SALT and its architecture but learning fast and I am sure the key developers will be able to guide as appropriate to resolve this as a general solution for raspbian