Open link in a new tab

Content

Expand project menu

Docker Error: Could not spawn process for application /app

Upgraded from a working 9.0.3 version to "latest" (10.0.2?) in Docker and now getting the following error when trying to navigate to OpenProject (seeing the "We're sorry, but something went wrong." page)

[ N 2019-10-10 01:00:38.4197 370/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
Forcefully loading the application. Use :environment to avoid eager loading.
hook registered
App 402 output: hook registered
Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
App 402 output: Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
2019-10-10 01:02:16.042 UTC [440] openproject@openproject LOG:  could not receive data from client: Connection reset by peer
[ E 2019-10-10 01:02:17.7066 370/Tc age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /app: A timeout occurred while starting a preloader process.
  Error ID: 89e9b405
  Error details saved to: /tmp/passenger-error-1pJJ4k.html

[ E 2019-10-10 01:02:17.7223 370/T7 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 89e9b405. Please see earlier logs for details about the error.
[ E 2019-10-10 01:02:17.8692 370/T7 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 89e9b405. Please see earlier logs for details about the error.
[Worker(host:8416036a7682 pid:135)] Starting job worker
2019-10-10T01:03:17+0000: [Worker(host:8416036a7682 pid:135)] Starting job worker
App 459 output: hook registered
App 459 output: Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
[ E 2019-10-10 01:05:00.6208 370/Th age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /app: A timeout occurred while starting a preloader process.
  Error ID: c22d62f4
  Error details saved to: /tmp/passenger-error-8jCQPq.html

[ E 2019-10-10 01:05:00.6559 370/T7 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-3] Cannot checkout session because a spawning error occurred. The identifier of the error is c22d62f4. Please see earlier logs for details about the error.

Message actions

Any update on how this one was fixed, I am facing the same issue

Message actions

Hi I´ve got the exact same error starting from a fresh installation. So the images seem to be corrupt.

Message actions

Hello, images are tagged, can you try with openproject/community:10 ? And possibly send the exact command line you're using to launch the image?

Thank you,

Cyril

Message actions

seems that the error occures after mounting the volumes. if you leave a / after for example assets it will not work.

Got it running now

Cheers

Message actions

Cyril Rohr wrote:

Hello, images are tagged, can you try with openproject/community:10 ? And possibly send the exact command line you're using to launch the image?

Thank you,

Cyril

Same error with using image "10". I am using docker-compose as shown below:

version: '3'
services:
  openproject:
    container_name: openproject
    #image: openproject/community:latest
    image: openproject/community:10
    ports:
      - 8091:80
    volumes:
      - openproject-assets:/var/openproject/assets
      - openproject-sup:/var/log/supervisor
      - openproject-data:/var/lib/postgresql/9.6/main
#      - ./openproject/tmp:/tmp
    environment:
      - SECRET_KEY_BASE=secret
      #- OPENPROJECT_WEB_WORKERS=4

volumes:
  openproject-data:
    driver: local
  openproject-assets:
    driver: local
  openproject-sup:
    driver: local

Since that didn't work I also tried a simple docker run command (shown below) with no luck either (same error as before)

docker run -d -p 8089:80 --name openproject -e SECRET_KEY_BASE=secret -v /home/thomas/docker-openproject/pgdata:/var/openproject/pgdata -v /home/thomas/docker-openproject/static:/var/openproject/assets openproject/community:10

Here is the error that I see

[ N 2020-02-16 18:54:45.7096 403/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
Forcefully loading the application. Use :environment to avoid eager loading.
[DEPRECATED] Bundler.environment has been removed in favor of Bundler.load (called at /app/lib/open_project/plugins/acts_as_op_engine.rb:178)
hook registered
Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
2020-02-16 18:56:21.992 UTC [475] openproject@openproject LOG:  could not receive data from client: Connection reset by peer
[ E 2020-02-16 18:56:22.0673 403/Tc age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /app: A timeout occurred while starting a preloader process.
  Error ID: de41fe99
  Error details saved to: /tmp/passenger-error-r1JneE.html

[ E 2020-02-16 18:56:22.1134 403/T7 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is de41fe99. Please see earlier logs for details about the error.

Message actions

Hi,

Any update on that issue ?

I'm having it too, i don't know which way to go to resolve it.

Message actions

I also have this problem. OpenProject wont load and I am not able to fix that. Our complete project documentation is stucked now and we cant get our project management files in any way out of the system.

Please help!!!

Message actions

On creating docker container, add PASSENGER_START_TIMEOUT=3000 to environment variable like below:

docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret -e PASSENGER_START_TIMEOUT=3000 -v ...:/var/openproject/pgdata -v ...:/var/openproject/assets openproject/community:10

This works for me.