strapi-docker-compose-example icon indicating copy to clipboard operation
strapi-docker-compose-example copied to clipboard

Stuck in the bootstrapping loop

Open pbartusch opened this issue 3 years ago • 1 comments

Hi, I followed the instructions and ended up in bootstrapping loop that does not successfully start the app. In the logs, I can observe a continuous try to start the app:

strapiexample exited with code 1
strapiexample    | Starting your app...
strapiexample    | Missing environment config for env: development.
strapiexample    | Make sure the directory ./config/environments/development exists
strapiexample exited with code 1
strapiexample    | Starting your app...
strapiexample    | Missing environment config for env: development.
strapiexample    | Make sure the directory ./config/environments/development exists
strapiexample exited with code 1

When I exec into the Strapi container, I am seeing the following processes:

# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0 19 20:04 ?        00:00:04 /usr/bin/qemu-x86_64 /usr/local/bin/node /usr/local/bin/strapi develop
root        23     1  0 20:04 ?        00:00:00 /usr/bin/qemu-x86_64 /bin/sh -c npm run -s build -- --no-optimization
root        26    23 10 20:04 ?        00:00:01 /usr/bin/qemu-x86_64 /usr/local/bin/node /usr/local/bin/npm run -s build -- --no-optimization
root        40    26  0 20:04 ?        00:00:00 /usr/bin/qemu-x86_64 /bin/sh -c strapi build "--no-optimization"
root        43    40 50 20:04 ?        00:00:07 /usr/bin/qemu-x86_64 /usr/local/bin/node /srv/app/node_modules/.bin/strapi build --no-optimization
root        53     0  1 20:04 pts/0    00:00:00 /usr/bin/qemu-x86_64 /bin/sh
root        61    53  0 19:24 ?        00:00:00 /bin/ps -ef

Any ideas, how to get the app running?

Environment: Apple M1 chipset

pbartusch avatar Apr 03 '22 20:04 pbartusch

Seems to be a missing env variable or file. The cause may be that since I wrote this script, Strapi has gone through many many newer versions, and docker and docker-compose also! However, I am no longer using Strapi and unfortunately have no plans to update this script. Can someone help? Would love to take a pull request!

victorkane avatar Apr 04 '22 13:04 victorkane