I can't start from docker-compose (postgres fails) #38
Comments
Is this a new or existing installation upgrade? If this is new and you're starting for the first time, have you try resetting? $ mv ./data/vestacp/ ./data/vestacp2/
$ mkdir -p ./data/vestacp/ Then start again. The error is saying that it is missing files. Something must have went wrong during initial initialization and it didn't copy all the file it needed. |
This is a new install. I'll give that a shot right now. |
I double checked and all permissions look good for the folder. User postgres is in ssl-cert group. The strange thing is that it works for me. After searching around, I'm suspecting the issue is with docker on mapped on certain file system (aufs?): sous-chefs/postgresql#156 (comment) All point to this specific fix/workaround: I'm implementing the fix and working on the build. Will let you know when it can be tested. Thanks. |
Can you try/test version 1.1.8? Sorry it took some time because the build server timed out on build of 1.1.7 |
Very odd. Because of docker there should be no difference between environments. That's the whole point of docker. I'll run a test with exact settings on a different machine and I'll try one without volumes on my ubuntu 14.04 machine and see what outcomes occur. |
Update. The version I ran without volumes in the docker-compose.yml file worked. So there must be some issue with my local Volumes. I don't have time to test at the moment but my hunch is that because the volume location is owned by my local user and the docker-compose up command is run by root, there's some permission issue that's cascading up somehow. I'm going to move my project folder to a root directory owned by root, then run there, see what happens. I was reading that there is some really peculiar permissions scenarios around these key files. |
That fixed it. Creating the volume folders are root user then running docker compose as root was the solution. Thanks for looking into this! |
Every time I attempt to start from
docker-compose up
I get a permissions error with postgres starting:This seems to stop the remaining services from starting also.
Here's my compose file:
The text was updated successfully, but these errors were encountered: