Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres permission issue #5

Open
ChinaShrimp opened this issue Jul 5, 2019 · 1 comment
Open

Postgres permission issue #5

ChinaShrimp opened this issue Jul 5, 2019 · 1 comment

Comments

@ChinaShrimp
Copy link

Environment: Ubuntu 16.04 server 64bit
Docker-compose version: 1.24.1, build 4667896b
Docker version: 18.06.0-ce, build 0ffa825

Procedure:
After cloning, I run docker-compose up and failed to start db. So I tried only run db and got following logs:

vagrant@vagrant:~/docker-alfresco$ docker-compose up db
Starting docker-alfresco_db_1 ... done
Attaching to docker-alfresco_db_1
db_1           | 2019-07-05 15:10:09.711 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1           | 2019-07-05 15:10:09.712 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1           | 2019-07-05 15:10:09.715 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1           | 2019-07-05 15:10:09.729 UTC [1] FATAL:  could not open log file "/var/log/postgresql/postgresql-2019-07-05_151009.log": Permission denied
db_1           | 2019-07-05 15:10:09.732 UTC [1] LOG:  database system is shut down
docker-alfresco_db_1 exited with code 1

It seems that we have issue with mounting local volumes/logs/postgres to db container. After removing corresponding volume mounting lines in docker-compose.yml, I got all running.

@petercsapo
Copy link

I've encountered the same problem.
You need to change the folder permissions for the folder volumes/logs/postgres to user id 999, and it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants