Skip to content

Instantly share code, notes, and snippets.

@Corstiaan84
Created November 26, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Corstiaan84/df0ae20c7cbaf268f23a to your computer and use it in GitHub Desktop.
Save Corstiaan84/df0ae20c7cbaf268f23a to your computer and use it in GitHub Desktop.
Description of problem:
When adding a DOKKU_SCALE file to the root of my rails app the deploy fails as it cannot kill running containers
Output of the following commands
- `uname -a`:
Linux dokku-test 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- `docker version`:
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64
- `docker -D info`:
Containers: 11
Images: 81
Server Version: 1.9.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 103
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-57-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 1
Total Memory: 994 MiB
Name: dokku-test
ID: MMFL:5VFJ:2UFS:JDJJ:J7XA:FBGJ:4NZR:YI2T:4GQQ:RBWN:JDV2:JLMH
WARNING: No swap limit support
- `dokku version`:
0.4.4
- `dokku plugin`:
00_dokku-standard 0.4.0 enabled dokku core standard plugin
20_events 0.4.0 enabled dokku core events logging plugin
apps 0.4.0 enabled dokku core apps plugin
backup 0.4.0 enabled dokku core backup plugin
build-env 0.4.0 enabled dokku core build-env plugin
certs 0.4.0 enabled dokku core certificate management plugin
checks 0.4.0 enabled dokku core checks plugin
common 0.4.0 enabled dokku core common plugin
config 0.4.0 enabled dokku core config plugin
docker-options 0.4.0 enabled dokku core docker-options plugin
domains 0.4.0 enabled dokku core domains plugin
enter 0.4.0 enabled dokku core enter plugin
git 0.4.0 enabled dokku core git plugin
logs 0.4.0 enabled dokku core logs plugin
named-containers 0.4.0 enabled dokku core named containers plugin
nginx-vhosts 0.4.0 enabled dokku core nginx-vhosts plugin
plugin 0.4.0 enabled dokku core plugin plugin
postgres 1.0.0 enabled dokku postgres service plugin
ps 0.4.0 enabled dokku core ps plugin
shell 0.4.0 enabled dokku core shell plugin
tags 0.4.0 enabled dokku core tags plugin
tar 0.4.0 enabled dokku core tar plugin
- Output of failing dokku commands with `dokku trace on`
See: https://gist.github.com/Corstiaan84/ed67c470a81059b3bd73
Environment details (AWS, VirtualBox, physical, etc.):
Digital Ocean 1gb vps
How was dokku installed?:
From the DO droplet on-click gallery. Dont know have the image was composed.
How reproducible:
In my case the app was deploying fine untill I added a DOKKU_SCALE file to scale a worker to 1 instance. Then deploys started failing immediately.
Steps to Reproduce:
1. Add DOKKU_SCALE file to root of rails app
2. Deploy
3. See error :-).
Actual Results:
remote: Error response from daemon: Cannot kill container 483221d17cc9e401e8397f23d994065b0807434b3d62746de3f9218ba0722073: notrunning: Container 483221d17cc9e401e8397f23d994065b0807434b3d62746de3f9218ba0722073 is not running
remote: Error: failed to kill containers: [483221d17cc9e401e8397f23d994065b0807434b3d62746de3f9218ba0722073]
Expected Results:
A successful deploy
Additional info:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment