jordemort / docker-pleroma

Pleroma in a container
https://hub.docker.com/r/jordemort/pleroma
16 stars 1 forks source link

Permission denied with [dumb-init] run-pleroma.sh using docker-composer #11

Closed p3nj closed 2 years ago

p3nj commented 2 years ago

Hi, thanks for this work.

I was trying to set this up using AWS ECS but failed, so I decided to atleast test run this on local machine to see if I can get it up and running, I cloned this repo and chmod both the shell script.

Everything went fine until it shows pleroma_1 | [dumb-init] run-pleroma.sh: Permission denied

I didn't change anything inside docker-compose.yml

here is the full terminal log below.

Starting docker-compose_pleroma_1  ... done
Starting docker-compose_postgres_1 ... done
Attaching to docker-compose_postgres_1, docker-compose_pleroma_1
postgres_1  |
postgres_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1  |
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
postgres_1  | 2021-09-15 15:07:22.442 UTC [1] LOG:  starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-09-15 15:07:22.442 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-09-15 15:07:22.442 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-09-15 15:07:22.445 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-09-15 15:07:22.450 UTC [26] LOG:  database system was shut down at 2021-09-15 15:06:20 UTC
postgres_1  | 2021-09-15 15:07:22.455 UTC [1] LOG:  database system is ready to accept connections
docker-compose_pleroma_1 exited with code 2
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
docker-compose_pleroma_1 exited with code 2
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
pleroma_1   | [dumb-init] run-pleroma.sh: Permission denied
^CGracefully stopping... (press Ctrl+C again to force)
Stopping docker-compose_postgres_1 ... done
Stopping docker-compose_pleroma_1  ... done

please help me solve this, thanks.

p3nj commented 2 years ago

it turns out that folder is temped, I re-cloned and it can run on local no problem now.