exec format error
My System
$ uname -a
Linux rpi 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux
$ docker-compose --version
docker-compose version 1.21.0, build unknown
$ docker --version
Docker version 19.03.11, build 42e35e6
Error message
It looks like postgres is fine, but pleroma is broken. At the bottom where it says exec format error exit with error code 1, it just repeats that over and over until I close it. I saw somewhere that other people were getting this error because a script was calling ash, I found the script that was calling ash by searching /var/lib/docker/overlay and I changed it to sh. But I still get the same error message, so it cant be that.
$ docker-compose up
Creating network "pleroma-docker-compose_default" with the default driver
Pulling pleroma-db (postgres:12.1-alpine)...
12.1-alpine: Pulling from library/postgres
Digest: sha256:686fc517b2b979f972aa2cdbdb4e3392f28b7d6e6dc31054c05144863e6d9098
Status: Downloaded newer image for postgres:12.1-alpine
Pulling pleroma (git.pleroma.social:5050/pleroma/pleroma:latest)...
latest: Pulling from pleroma/pleroma
Digest: sha256:3c0cd24e680b9d70bd034c1b9ed0b40c3579305b9b93729f46413e8d6ec5508b
Status: Downloaded newer image for git.pleroma.social:5050/pleroma/pleroma:latest
Creating pleroma-db ... done
Creating pleroma ... done
Attaching to pleroma-db, pleroma
pleroma-db | The files belonging to this database system will be owned by user "postgres".
pleroma-db | This user must also own the server process.
pleroma-db |
pleroma-db | The database cluster will be initialized with locale "en_US.utf8".
pleroma-db | The default database encoding has accordingly been set to "UTF8".
pleroma-db | The default text search configuration will be set to "english".
pleroma-db |
pleroma-db | Data page checksums are disabled.
pleroma-db |
pleroma-db | fixing permissions on existing directory /var/lib/postgresql/data ... ok
pleroma-db | creating subdirectories ... ok
pleroma-db | selecting dynamic shared memory implementation ... posix
pleroma-db | selecting default max_connections ... 100
pleroma-db | selecting default shared_buffers ... 128MB
pleroma-db | selecting default time zone ... UTC
pleroma-db | creating configuration files ... ok
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma-db | running bootstrap script ... ok
pleroma-db | performing post-bootstrap initialization ... sh: locale: not found
pleroma-db | 2020-06-24 16:43:26.667 UTC [30] WARNING: no usable system locales were found
pleroma-db | ok
pleroma-db | syncing data to disk ... ok
pleroma-db |
pleroma-db | initdb: warning: enabling "trust" authentication for local connections
pleroma-db | You can change this by editing pg_hba.conf or using the option -A, or
pleroma-db | --auth-local and --auth-host, the next time you run initdb.
pleroma-db |
pleroma-db | Success. You can now start the database server using:
pleroma-db |
pleroma-db | pg_ctl -D /var/lib/postgresql/data -l logfile start
pleroma-db |
pleroma-db | waiting for server to start....2020-06-24 16:43:38.041 UTC [35] LOG: starting PostgreSQL 12.1 on arm-unknown-linux-musleabihf, compiled by gcc (Alpine 9.2.0) 9.2.0,
32-bit
pleroma-db | 2020-06-24 16:43:38.047 UTC [35] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
pleroma-db | 2020-06-24 16:43:38.123 UTC [36] LOG: database system was shut down at 2020-06-24 16:43:35 UTC
pleroma-db | 2020-06-24 16:43:38.136 UTC [35] LOG: database system is ready to accept connections
pleroma-db | done
pleroma-db | server started
pleroma exited with code 1
pleroma-db | CREATE DATABASE
pleroma-db |
pleroma-db |
pleroma-db | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
pleroma-db |
pleroma-db | 2020-06-24 16:43:39.287 UTC [35] LOG: received fast shutdown request
pleroma-db | waiting for server to shut down....2020-06-24 16:43:39.297 UTC [35] LOG: aborting any active transactions
pleroma-db | 2020-06-24 16:43:39.304 UTC [35] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
pleroma-db | 2020-06-24 16:43:39.305 UTC [37] LOG: shutting down
pleroma-db | 2020-06-24 16:43:39.370 UTC [35] LOG: database system is shut down
pleroma-db | done
pleroma-db | server stopped
pleroma-db |
pleroma-db | PostgreSQL init process complete; ready for start up.
pleroma-db |
pleroma-db | 2020-06-24 16:43:39.482 UTC [1] LOG: starting PostgreSQL 12.1 on arm-unknown-linux-musleabihf, compiled by gcc (Alpine 9.2.0) 9.2.0, 32-bit
pleroma-db | 2020-06-24 16:43:39.483 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
pleroma-db | 2020-06-24 16:43:39.483 UTC [1] LOG: listening on IPv6 address "::", port 5432
pleroma-db | 2020-06-24 16:43:39.496 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
pleroma-db | 2020-06-24 16:43:39.602 UTC [46] LOG: database system was shut down at 2020-06-24 16:43:39 UTC
pleroma-db | 2020-06-24 16:43:39.626 UTC [1] LOG: database system is ready to accept connections
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma exited with code 0
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma | standard_init_linux.go:211: exec user process caused "exec format error"
pleroma exited with code 1
Edited by BrilliantMuffin