ReinerNippes / nextcloud_on_docker

Run Nextcloud in Docker Container on various Linux Hosts
MIT License
203 stars 48 forks source link

Playbook fails to complete. Fails on create traefik network #74

Open Tumtum2814 opened 3 years ago

Tumtum2814 commented 3 years ago

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. Trypip install dockerorpip install docker-py(Python 2.6)

I installed both modules with no luck on moving forward.

ReinerNippes commented 3 years ago

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

Tumtum2814 commented 3 years ago

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

ReinerNippes commented 3 years ago

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.