Open emk opened 6 years ago
From the logs:
waiting for server to start....2017-10-18 16:00:26.569 UTC [41] FATAL: data directory "/var/lib/postgresql/data" has group or world access
2017-10-18 16:00:26.569 UTC [41] DETAIL: Permissions should be u=rwx (0700).
stopped waiting
pg_ctl: could not start server
Examine the log output.
Looks like cage new
is producing broken output, probably because https://github.com/faradayio/cage/blob/master/data/templates/new/pods/db.yml is not setting up a working set of directory permissions. Not sure how easy this will be to fix.
OK, the underlying problem here is actually with the standard Docker postgres
containers. They no longer reliably allow you to mount newly-created named volumes. I've switched to the Alpine version of the PostgreSQL container, which seems to work a bit better, but may not be a complete fix.
That seems like a pretty big limitation :/
Is there an open issue somewhere where that's being discussed?
I've seen a couple different issues on various PG Docker containers, but I haven't actually found the repo for the official upstream container.
Given that this issue existed with 0.2.2, for a while, and that it's going to take some time to fix, I'm going to release 0.2.3 anyway and get the other fixes out, and bump this to 0.2.4.
beta
is failing because it runs one important test thatstable
skips. To run this locally, run:I'm investigating, but please feel free to take a look if you want.
CC @camjackson