mederrata / ansible_docker_keycloak

0 stars 2 forks source link

chmod: /var/run/postgresql: Operation not permitted #4

Closed hungrymonkey closed 4 years ago

hungrymonkey commented 4 years ago
ubuntu@ip-172-31-13-183:~$ systemctl status postgres
● postgres.service - Postgres server
   Loaded: loaded (/etc/systemd/system/postgres.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-04-03 23:40:31 UTC; 17min ago
  Process: 10114 ExecStartPre=/usr/bin/docker rm keycloak-postgres (code=exited, status=1/FAILURE)
  Process: 10091 ExecStartPre=/usr/bin/docker stop keycloak-postgres (code=exited, status=1/FAILURE)
 Main PID: 10121 (docker)
    Tasks: 10 (limit: 1125)
   CGroup: /system.slice/postgres.service
           └─10121 /usr/bin/docker run --rm --name keycloak-postgres --log-driver=none --tmpfs=/tmp:rw,noexec,nosuid,size=100m --network=keycloak-network --user=995:995 --env-fil

Apr 03 23:40:31 ip-172-31-13-183 keycloak-postgres[10114]: Error: No such container: keycloak-postgres
Apr 03 23:40:31 ip-172-31-13-183 systemd[1]: Started Postgres server.
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: chmod: /var/run/postgresql: Operation not permitted
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: PostgreSQL Database directory appears to contain a database; Skipping initialization
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.658 UTC [1] LOG:  starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.658 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.658 UTC [1] LOG:  listening on IPv6 address "::", port 5432
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.662 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.678 UTC [12] LOG:  database system was shut down at 2020-04-03 23:39:44 UTC
Apr 03 23:40:32 ip-172-31-13-183 keycloak-postgres[10121]: 2020-04-03 23:40:32.682 UTC [1] LOG:  database system is ready to accept connections
hungrymonkey commented 4 years ago

Non issue