Raspberry Pi 3B+ Server localhost:3030 does not work after install Anvil App Server Jar.
Failed to start built-in Postgres database: java.lang.IllegalStateException: Process [.anvil-data/db-bin/PG-b3395acdd374999db588d5dfa1346d41/bin/initdb, -A, trust, -U, postgres, -D, .anvil-data/db, -E, UTF-8] failed
More logs are available in .anvil-data/postgres.log.
Some common causes of this problem:
- Are you launching this server as 'root' on a UNIX system?
Postgres will not run as root; try launching the server as an ordinary user.
- Are you running this server on an unusual architecture or OS? (Linux/arm)
tail .anvil-data/postgres.log.
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
What could be the solution to this?