Skip to content

Deployment fails when there are 10 or more Docker containers running #37

@mschm

Description

@mschm

Pushing the Node.js sample to the box fails when there are at least 10 docker containers running.

MSMBP:nodejs-hello-world M$ git push platform master
Counting objects: 407, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (321/321), done.
Writing objects: 100% (407/407), 216.88 KiB | 0 bytes/s, done.
Total 407 (delta 57), reused 403 (delta 56)
-----> Cleaning up...
-----> Building nodejs-hello-world from buildstep...
-----> Adding BUILD_ENV to build environment...
-----> Injecting apt repositories and packages ...
-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_MODULES_CACHE=true

-----> Installing binaries
       engines.node (package.json):  0.12.2
       engines.npm (package.json):   unspecified (use default)

       Downloading and installing node 0.12.2...
       Using default npm version: 2.7.4

-----> Restoring cache
       Loading 1 from cacheDirectories (default):
       - node_modules

-----> Building dependencies
       Pruning any extraneous modules
       Installing node modules (package.json + shrinkwrap)

-----> Caching build
       Clearing previous node cache
       Saving 1 cacheDirectories (default):
       - node_modules

-----> Build succeeded!
       └── express@4.13.3

-----> Discovering process types
       Procfile declares types -> web
-----> Releasing nodejs-hello-world...
-----> Deploying nodejs-hello-world...
-----> Running pre-flight checks
       For more efficient zero downtime deployments, create a file CHECKS.
       See http://progrium.viewdocs.io/dokku/checks-examples.md for examples
       CHECKS file not found in container: Running simple container check...
-----> Waiting for 10 seconds ...
remote: App container failed to start!!
=====> nodejs-hello-world container output:
       Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
       Recommending WEB_CONCURRENCY=1
       Node app is running at localhost:5000
=====> end nodejs-hello-world container output
remote: /usr/local/bin/dokku: line 49:  1524 Killed                  dokku deploy "$APP"
To ssh://dokku@vskylabs.local:8022/nodejs-hello-world
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://dokku@vskylabs.local:8022/nodejs-hello-world'

As soon as I reduce the number of running docker containers by calling docker stop ... , everything deploys fine.
I suppose it is related to this issue: dokku/dokku#1270

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions