nextcloud_on_docker icon indicating copy to clipboard operation
nextcloud_on_docker copied to clipboard

Playbook fails to complete. Fails on create traefik network

Open Tumtum2814 opened this issue 4 years ago • 3 comments

Awesome project! I got this while running it. TASK [docker_container : Create traefik network] ****************************************************************************************************************************************************************************************************************************** Wednesday 11 November 2020 23:17:21 -0500 (0:00:00.058) 0:00:23.674 **** fatal: [localhost]: FAILED! => changed=false msg: Failed to import docker or docker-py - No module named ssl_match_hostname. Try pip install dockerorpip install docker-py (Python 2.6)

I installed both modules with no luck on moving forward.

Tumtum2814 avatar Nov 12 '20 04:11 Tumtum2814

Hi, may I ask what Linux distro you are using? As far as I remember this error is about the python version used.

ReinerNippes avatar Nov 14 '20 18:11 ReinerNippes

Hmmmm I'm assuming it's looking for python2.6? I'm running debian10. I have 2.6 and 3.1 installed.

Tumtum2814 avatar Nov 14 '20 21:11 Tumtum2814

If you run Debian 10 the package python3-docker should be installed.

https://github.com/ReinerNippes/nextcloud_on_docker/blob/a0c91eff87c44c5598156ff22ed6e1d35e10685f/roles/prep_docker/tasks/Debian.yml#L39

Anyhow python 2.6 and 3.1 are rather old. I think Python 3.6 or 3.7 is included in Debian 10.

ReinerNippes avatar Nov 21 '20 18:11 ReinerNippes