ReinerNippes / nextcloud_on_docker

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

Task failure: docker_container : wait for nextcloud-db to become ready #35

Closed ghost closed 4 years ago

ghost commented 4 years ago
fatal: [localhost]: FAILED! => changed=false
  elapsed: 31
  msg: Timeout when waiting for 172.21.0.3:3306

I just tried switching to mysql. Now having another issue... Looks like the DB doesn't come up quick enough?

ghost commented 4 years ago

Related to issues in #22

ghost commented 4 years ago

I believe this issue could be resolved by increasing the timeout duration? @ReinerNippes :-)

ReinerNippes commented 4 years ago

I just run the playbook on a AWS Ubuntu 18 EC2 and didn't encounter this problem.

What system are you using?

ghost commented 4 years ago

Ubuntu server 18.04 LTS.

ReinerNippes commented 4 years ago

do you run the playbook with a slow internet connection? on aws ec2s the initial download of any container image is just a snap.

i increased the timeout to 600 sec.

https://github.com/ReinerNippes/nextcloud_on_docker/blob/082b75624674c06a8caa8bad5b46d04ead2a231f/roles/docker_container/tasks/database.yml#L81

ghost commented 4 years ago

I average around 90mbps.

ghost commented 4 years ago

Fix works.