-
Notifications
You must be signed in to change notification settings - Fork 116
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 error when running as root #3
Comments
It looks like there are a couple of things going on there. Firstly, you should be fine with that version of Java, but we have tested most heavily with Java 8, so you might like to try that to get rid of the The second problem seems to be with running the embedded PostgreSQL server. We include binaries for most common systems, but there are inevitably environments that we haven't come across before. Are you running this as root or a regular user? |
Yes, I am running it as root. |
I have similar error, no idea how to solve it: (venv2) root@mysite:~/venv2# anvil-app-server --app MyApp Found Anvil App Server JAR in package directory (venv2) root@mysite:~/venv2# java -version |
The answer is: Don't run the App Server as root! The Postgres database will refuse to run as root, so you'll need to create a user account, Thanks for the reports -- the next release of the App Server will have a more helpful error message to tell you this :) |
Thank you! that worked ... However I noticed another error that also that will probably require root permissions: [ERROR anvil.app-server.run] Failed to start mail server on port 25 - this application will not be able to receive email: java.net.BindException: Permission denied (Bind failed) |
Thank you Meredydd, it works nicely. |
Hi @groundswel,
You can find the answer to this in the Getting Started guide:
https://github.com/anvil-works/anvil-runtime/blob/master/doc/getting-started.md
|
I am getting the following error. Running on macOS .
Can you please prescribe the java / python version needed to run this?
The text was updated successfully, but these errors were encountered: