Content
You are here:
Docker image with plugins: postinstall.sh script fails
Added by Hendrik W almost 2 years ago
Hi there,
I followed the steps to build a custom OpenProject Docker image with plugins.
Unfortunately the last RUN statement fails with pg_ctl: could not start server
Log output when running ./docker/prod/setup/postinstall.sh in the Dockerfile:
[...]
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /tmp/nulldb ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
ok
Success. You can now start the database server using:
/usr/lib/postgresql/13/bin/pg_ctl -D /tmp/nulldb -l logfile start
waiting for server to start....pg_ctl: could not start server
Examine the log output.
stopped waiting
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
Is this a known issue? Any ideas for a workaround?