ReinerNippes / nextcloud_on_docker

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

Failed to create traefik container #88

Closed avilleret closed 3 years ago

avilleret commented 3 years ago

I think I'm missing some configuration because the traefik container failed to create, does anyone have an idea what am I missing ?

TASK [docker_container : Create the traefik container] *************************************************************************************************************************************************
Monday 01 February 2021  09:02:25 +0000 (0:00:00.803)       0:01:14.741 *******
fatal: [localhost]: FAILED! => changed=false 
  msg: 'Error creating container: UnixHTTPConnectionPool(host=''localhost'', port=None): Read timed out. (read timeout=60)'

PLAY RECAP *********************************************************************************************************************************************************************************************
localhost                  : ok=43   changed=4    unreachable=0    failed=1    skipped=3    rescued=0    ignored=0

Monday 01 February 2021  09:03:33 +0000 (0:01:07.877)       0:02:22.618 *******
===============================================================================
docker_container : Create the traefik container ------------------------------------------------------------------------------------------------------------------------------------------------ 67.88s
docker_container : Create the dockerproxy container -------------------------------------------------------------------------------------------------------------------------------------------- 25.19s
docker_container : Create watchtower container for auto update ---------------------------------------------------------------------------------------------------------------------------------- 7.11s
prep_ufw : Configuring port/protocol/network rules ---------------------------------------------------------------------------------------------------------------------------------------------- 5.25s
prep_os : apt dist-upgrade ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 4.82s
Gathering Facts --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 4.20s
prep_docker : add docker key -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.05s
prep_ufw : Configuring service ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.49s
prep_docker : enable docker --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.40s
prep_os : install additional packages ----------------------------------------------------------------------------------------------------------------------------------------------------------- 1.34s
prep_os : make sure nextcloud directories are present ------------------------------------------------------------------------------------------------------------------------------------------- 1.32s
prep_ufw : Installing ufw package --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.28s
prep_docker : install needed packages ----------------------------------------------------------------------------------------------------------------------------------------------------------- 1.27s
prep_docker : install docker -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.21s
prep_ufw : Configuring firewall ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.21s
prep_ufw : Enabling firewall -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.13s
docker_container : Create traefik network ------------------------------------------------------------------------------------------------------------------------------------------------------- 1.06s
prep_os : enable service disable-transparent-hugepages ------------------------------------------------------------------------------------------------------------------------------------------ 1.04s
prep_ufw : start ufw ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.99s
prep_docker : remove ubuntu repo docker --------------------------------------------------------------------------------------------------------------------------------------------------------- 0.98s
ReinerNippes commented 3 years ago

port 80 and/or 443 already in use?

avilleret commented 3 years ago

I don't think so, when they are in use, I got another error saying explicitly that they are in use. I'm trying to setup nextcloud on docker on my personal server at home. I have a domain name pointing to my public IP and my router is setup to forward port 80 and 443 to the machine hosting docker.

ReinerNippes commented 3 years ago

slow internet connection? well the traefic container is rather small. that shouldn't be a problem. google found for example: https://github.com/docker/compose/issues/3927 maybe it's worse to look at this discussion.

avilleret commented 3 years ago

it seems that my machine was in a bad state after some aborted configurations, probably some port already in use as you firstly pointed out @ReinerNippes everything works fine after reinstalling server