ReinerNippes / nextcloud_on_docker

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

Role postgres dosen't exist #85

Closed littlewolf59 closed 3 years ago

littlewolf59 commented 3 years ago

Hello reiner,

j'ai un problème lors de l'installation de votre playbook sur un serveur de test nouvellement installé.

So i try in english... ;(

installation I run the playbook on a newly installed machine

fatal: [localhost]: FAILED! => changed=true

this command docker logs nextcloud-db shows 👍

Success. You can now start the database server using:

pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2021-01-22 10:26:17.198 UTC [26] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2021-01-22 10:26:17.210 UTC [27] LOG: database system was shut down at 2021-01-22 10:26:16 UTC 2021-01-22 10:26:17.212 UTC [26] LOG: database system is ready to accept connections done server started CREATE DATABASE

/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

2021-01-22 10:26:17.633 UTC [26] LOG: received fast shutdown request waiting for server to shut down....2021-01-22 10:26:17.635 UTC [26] LOG: aborting any active transactions 2021-01-22 10:26:17.636 UTC [26] LOG: background worker "logical replication launcher" (PID 33) exited with exit code 1 2021-01-22 10:26:17.636 UTC [28] LOG: shutting down 2021-01-22 10:26:17.645 UTC [26] LOG: database system is shut down done server stopped

PostgreSQL init process complete; ready for start up.

2021-01-22 10:26:17.743 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2021-01-22 10:26:17.744 UTC [1] LOG: listening on IPv6 address "::", port 5432 2021-01-22 10:26:17.746 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2021-01-22 10:26:17.757 UTC [40] LOG: database system was shut down at 2021-01-22 10:26:17 UTC 2021-01-22 10:26:17.759 UTC [1] LOG: database system is ready to accept connections 2021-01-22 10:26:25.272 UTC [52] FATAL: role "postgres" does not exist 2021-01-22 10:26:35.386 UTC [58] FATAL: role "postgres" does not exist

littlewolf59 commented 3 years ago

cd nextcloud_on_docker/roles/docker_container/tasks/ vi database.yml

substitution line 61 default by {{ nextcloud_db_name }}

make a fresh install