404 after Installing Nextcloud in Ansible + Docker package

Hi @Reiner_Nippes

I’ve installed the Nextcloud in Docker ansible playbook. Receiving a 404 error when I attempt to access any part of it. I setup my subdomain as a redirection in an existing cPanel for my domain.

cloud.example.com to http://xx.xxx.xx.xxx

ok: [localhost] =>
msg:

  • Your Nextcloud at https://cloud.xxx.xxx is ready.
  • 'Login with user: admin and password: xxx.xxx
  • ‘Other secrets you’'ll find in the directory /opt/nextcloud/secrets ’

TASK [We are ready] ************************************************************
Friday 25 October 2019 02:32:05 +0200 (0:00:00.105) 0:09:09.689 ********
ok: [localhost] =>
msg:

  • Manage your container at https://cloud.xxx.xxx/portainer/ .
  • 'Login with user: admin and password: xxx
    TASK [We are ready] ************************************************************
    Friday 25 October 2019 02:32:05 +0200 (0:00:00.106) 0:09:09.796 ********
    skipping: [localhost]

PLAY RECAP *********************************************************************
localhost : ok=93 changed=51 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0

Friday 25 October 2019 02:32:05 +0200 (0:00:00.038) 0:09:09.835 ********

nextcloud_config : first setup nextcloud ------------------------------ 104.42s
docker_container : Create the onlyoffice container --------------------- 71.57s
nextcloud_config : install talk app ------------------------------------ 70.39s
nextcloud_config : set nextcloud system config.php values -------------- 59.99s
prep_docker : install needed packages ---------------------------------- 47.33s
docker_container : Create the nextcloud container ---------------------- 20.26s
prep_ufw : Installing ufw package -------------------------------------- 15.92s
nextcloud_config : run nextcloud cronjob once --------------------------- 8.96s
docker_container : Create postgres container ---------------------------- 8.30s
docker_container : Create the portainer container ----------------------- 8.08s
docker_container : Create the traefik container ------------------------- 7.29s
nextcloud_config : backup jobs, upgrade apps and database tuning -------- 7.28s
nextcloud_config : {{ item.state }} {{ item.name }} app ----------------- 7.23s
docker_container : Create the nginx container --------------------------- 6.54s
docker_container : Create the turnserver container ---------------------- 6.41s
prep_os : install additional packages ----------------------------------- 5.78s
docker_container : Create the traefik cert dumper container ------------- 5.61s
docker_container : wait for nextcloud-db to become ready ---------------- 5.54s
docker_container : Create redis container ------------------------------- 5.13s
nextcloud_config : configure talk app ----------------------------------- 5.10s
root@cloud:~/nextcloud_on_docker#

When did you run the playbook?

Within 30 minutes of original post.

edit: Also, ran into a missing python dependency with the curl command.

I created a new branch with a new prepare_script.sh Hope that one works better.

About the 404 I have no idea. Coudl you provide more information about your setup and the redirect?