I am running Anvil on the Ubuntu service on Windows. My error is a tiny bit different from the one described previously
`Found Anvil App Server JAR in package directory Failed to start built-in Postgres database: java.io.IOException: Gave up waiting for server to start after 10000ms 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/amd64)`
I have opened the postgres.log file adn there i can see this:
This user must also own the server process.
The database cluster will be initialized with locale "C.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory .anvil-data/db ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... Europe/Kiev
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
.anvil-data/db-bin/PG-a8263178df5b3591feca6b619939c2bb/bin/pg_ctl -D .anvil-data/db -l logfile start
waiting for server to start....2021-01-21 01:34:23.667 EET [1666] FATAL: data directory "/mnt/c/users/patri/.anvil-data/db" has group or world access
2021-01-21 01:34:23.667 EET [1666] DETAIL: Permissions should be u=rwx (0700).
stopped waiting
pg_ctl: could not start server
Examine the log output.
pg_ctl: PID file ".anvil-data/db/postmaster.pid" does not exist
Is server running?
waiting for server to start....2021-01-21 01:35:21.998 EET [1708] FATAL: data directory "/mnt/c/users/patri/.anvil-data/db" has group or world access
2021-01-21 01:35:21.998 EET [1708] DETAIL: Permissions should be u=rwx (0700).
stopped waiting
pg_ctl: could not start server
Examine the log output.
pg_ctl: PID file ".anvil-data/db/postmaster.pid" does not exist
Is server running?
waiting for server to start....2021-01-21 01:36:28.344 EET [1750] FATAL: data directory "/mnt/c/users/patri/.anvil-data/db" has group or world access
2021-01-21 01:36:28.344 EET [1750] DETAIL: Permissions should be u=rwx (0700).
stopped waiting
pg_ctl: could not start server
Examine the log output.
pg_ctl: PID file ".anvil-data/db/postmaster.pid" does not exist
Is server running?
Please let me know if you have any advice on this matter. Thanks again