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

[ Err Setup Postgres] initdb: cannot be run as root #3

Open
phoebebright opened this issue Sep 13, 2015 · 2 comments
Open

[ Err Setup Postgres] initdb: cannot be run as root #3

phoebebright opened this issue Sep 13, 2015 · 2 comments

Comments

@phoebebright
Copy link

Was being lazy and running as root so got this error, but creating a new user with root privileges and doing hitch clean and hitch init as new user solved the problem.

Suggest a check in hitch init to stop it being run as root.

@crdoconnor
Copy link
Contributor

Will do. Thanks!

@crdoconnor
Copy link
Contributor

Actually, thinking about this some more I might not implement this, since there are potentially legitimate reasons to run tests as root. If you are testing an app that absolutely requires root, the testing framework probably needs to be root too, for instance.

The only real issue with the django-remindme tests running as root is actually just that postgres point blank refuses to run - this is thus specific to this project (or any others that use postgres).

I will, however, add an additional environment check that can be used in settings.yml (along with apt packages installed, ports open, etc.) so that the test will fail fast with a clear message if the environment is root.

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