Skip to content

Instantly share code, notes, and snippets.

@rchrd2
Last active August 29, 2015 14:13
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 rchrd2/76d439ad07bd87d556f2 to your computer and use it in GitHub Desktop.
Save rchrd2/76d439ad07bd87d556f2 to your computer and use it in GitHub Desktop.
Dokku breaks with file
>git commit -a -m 'add index'
gi[master 5377c90] add index
1 file changed, 547 insertions(+)
create mode 100755 public/vf/index.html
>git push sandbox master
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 11.20 KiB | 0 bytes/s, done.
Total 5 (delta 2), reused 0 (delta 0)
-----> Cleaning up ...
-----> Building examples ...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected
PRO TIP: Specify a node version in package.json
See https://devcenter.heroku.com/articles/nodejs-support
-----> Defaulting to latest stable node: 0.10.35
-----> Downloading and installing node
-----> Restoring node_modules directory from cache
-----> Pruning cached dependencies not specified in package.json
npm WARN package.json embed-examples@0.0.0 No repository field.
-----> Exporting config vars to environment
-----> Installing dependencies
npm WARN package.json embed-examples@0.0.0 No repository field.
-----> Caching node_modules directory for future builds
-----> Cleaning up node-gyp and npm artifacts
-----> No Procfile found; Adding npm start to new Procfile
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> web
-----> Releasing examples ...
-----> Deploying examples ...
-----> Running pre-flight checks
check-deploy: /home/dokku/examples/CHECKS not found. attempting to retrieve it from container ...
CHECKS file not found in container. skipping checks.
-----> Running post-deploy
-----> Configuring examples.example.com...
-----> Creating http nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Shutting down old container in 60 seconds
=====> Application deployed:
http://examples.example.com
To dokku@example.com:examples
436e946..5377c90 master -> master
>mkdir public/vf/vf_files
>cp ../embed-examples/public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js public/vf/vf_files/
>git add -A
>git commit -a -m 'large file'
[master 3c3fadd] large file
1 file changed, 53 insertions(+)
create mode 100755 public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js
>git push sandbox master
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 8.26 KiB | 0 bytes/s, done.
Total 6 (delta 2), reused 0 (delta 0)
-----> Cleaning up ...
-----> Building examples ...
To dokku@example.com:examples
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@example.com:examples'
>rm public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js
>git commit -a -m 'remove file'
[master dbfa6f2] remove file
1 file changed, 53 deletions(-)
delete mode 100755 public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js
>git push sandbox master
Counting objects: 10, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 8.40 KiB | 0 bytes/s, done.
Total 7 (delta 2), reused 0 (delta 0)
-----> Cleaning up ...
-----> Building examples ...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected
PRO TIP: Specify a node version in package.json
See https://devcenter.heroku.com/articles/nodejs-support
-----> Defaulting to latest stable node: 0.10.35
-----> Downloading and installing node
-----> Restoring node_modules directory from cache
-----> Pruning cached dependencies not specified in package.json
npm WARN package.json embed-examples@0.0.0 No repository field.
-----> Exporting config vars to environment
-----> Installing dependencies
npm WARN package.json embed-examples@0.0.0 No repository field.
-----> Caching node_modules directory for future builds
-----> Cleaning up node-gyp and npm artifacts
-----> No Procfile found; Adding npm start to new Procfile
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> web
-----> Releasing examples ...
-----> Deploying examples ...
-----> Running pre-flight checks
check-deploy: /home/dokku/examples/CHECKS not found. attempting to retrieve it from container ...
CHECKS file not found in container. skipping checks.
-----> Running post-deploy
-----> Configuring examples.example.com...
-----> Creating http nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Shutting down old container in 60 seconds
=====> Application deployed:
http://examples.example.com
To dokku@example.com:examples
5377c90..dbfa6f2 master -> master
>git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js
>git commit -a -m 'add the file again'
[master 02a7b3d] add the file again
1 file changed, 53 insertions(+)
create mode 100755 public/vf/vf_files/oKmauz-dLaAke3cUDynMnMGs2QiQJeBQVb_8QEyGvrJfenCffFHN4UJLFRbh52jhWD9DwcjUjhItZQsKw24K5ewDFQIU5QwowsTyiaiaO1ZyjhB0ieZyScunjkoRdhXCicBRjAoXZcBkdAlROcFzdPUhjAFyd1scjW4l-hw0SaBujW48Sagyjh90jhNlOfG0icBRjAoXZcBkdAlRO1FUiABkZWF3jAF8OcFzdPJwSY4zpe8ljPu0daZyJ68c.js
>git push sandbox master
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 8.27 KiB | 0 bytes/s, done.
Total 6 (delta 2), reused 0 (delta 0)
-----> Cleaning up ...
-----> Building examples ...
To dokku@example.com:examples
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@example.com:examples'
>git push sandbox master | tee output.txt
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n git-receive-pack 'examples' ]]
+ export -n SSH_ORIGINAL_COMMAND
+ [[ git-receive-pack =~ config-* ]]
+ /usr/local/bin/dokku git-receive-pack ''\''examples'\'''
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n '' ]]
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/00_dokku-standard/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/apps/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/backup/commands git-receive-pack ''\''examples'\'''
+ CURRENT_BACKUP_VERSION=1
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/config/commands git-receive-pack ''\''examples'\'''
+ ENV_FILE='/home/dokku/'\''examples'\''/ENV'
+ ENV_FILE_TEMP='/home/dokku/'\''examples'\''/ENV.tmp'
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/dokku-docker-options/commands git-receive-pack ''\''examples'\'''
+ CMD=git-receive-pack
+ [[ -n git-receive-pack ]]
+ shift
+ APP=''\''examples'\'''
+ [[ -n 'examples' ]]
+ shift
+ OPTIONS_STRING=
+ [[ git-receive-pack == docker-options ]]
+ [[ git-receive-pack == docker-options:* ]]
+ case "$CMD" in
+ exit_code=0
+ set -e
+ '[' 0 -eq 10 ']'
+ implemented=1
+ '[' 0 -ne 0 ']'
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/dokku-pg-plugin/commands git-receive-pack ''\''examples'\'''
+ exit_code=0
+ set -e
+ '[' 0 -eq 10 ']'
+ implemented=1
+ '[' 0 -ne 0 ']'
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/dokku-rebuild/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
+ exit_code=0
+ set -e
+ '[' 0 -eq 10 ']'
+ implemented=1
+ '[' 0 -ne 0 ']'
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/domains/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/git/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
++ sed 's/\\'\''/'\''/g'
++ perl -pe 's/(?<!\\)'\''//g'
++ echo ''\''examples'\'''
+ APP=examples
+ APP_PATH=/home/dokku/examples
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ [[ ! -d /home/dokku/examples/refs ]]
+ args='git-receive-pack '\''examples'\'''
+ git-shell -c 'git-receive-pack '\''examples'\'''
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 8.27 KiB | 0 bytes/s, done.
Total 6 (delta 2), reused 0 (delta 0)
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ -n '' ]]
remote: + case "$1" in
remote: + implemented=0
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands git-hook examples
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + '[' 10 -eq 10 ']'
remote: + continue
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/apps/commands git-hook examples
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + '[' 10 -eq 10 ']'
remote: + continue
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/backup/commands git-hook examples
remote: + CURRENT_BACKUP_VERSION=1
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + '[' 10 -eq 10 ']'
remote: + continue
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/config/commands git-hook examples
remote: + ENV_FILE=/home/dokku/examples/ENV
remote: + ENV_FILE_TEMP=/home/dokku/examples/ENV.tmp
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + '[' 10 -eq 10 ']'
remote: + continue
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/dokku-docker-options/commands git-hook examples
remote: + CMD=git-hook
remote: + [[ -n git-hook ]]
remote: + shift
remote: + APP=examples
remote: + [[ -n examples ]]
remote: + shift
remote: + OPTIONS_STRING=
remote: + [[ git-hook == docker-options ]]
remote: + [[ git-hook == docker-options:* ]]
remote: + case "$CMD" in
remote: + exit_code=0
remote: + set -e
remote: + '[' 0 -eq 10 ']'
remote: + implemented=1
remote: + '[' 0 -ne 0 ']'
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/dokku-pg-plugin/commands git-hook examples
remote: + exit_code=0
remote: + set -e
remote: + '[' 0 -eq 10 ']'
remote: + implemented=1
remote: + '[' 0 -ne 0 ']'
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/dokku-rebuild/commands git-hook examples
remote: + case "$1" in
remote: + exit_code=0
remote: + set -e
remote: + '[' 0 -eq 10 ']'
remote: + implemented=1
remote: + '[' 0 -ne 0 ']'
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/domains/commands git-hook examples
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + '[' 10 -eq 10 ']'
remote: + continue
remote: + for script in '$PLUGIN_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/git/commands git-hook examples
remote: + case "$1" in
remote: + APP=examples
remote: + read oldrev newrev refname
remote: + [[ refs/heads/master = \r\e\f\s\/\h\e\a\d\s\/\m\a\s\t\e\r ]]
/'
remote: + dokku receive examples
remote: + git_archive_all examples 02a7b3da37aaa71315edf02da106bd0af96caa31
remote: + APP=examples
remote: + REV=02a7b3da37aaa71315edf02da106bd0af96caa31
remote: ++ id -un
remote: ++ mktemp -d
remote: + TMP_WORK_DIR=/tmp/tmp.YDQXw2czXv
remote: + chmod 755 /tmp/tmp.YDQXw2czXv
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ -n '' ]]
remote: + case "$1" in
remote: + APP=examples
remote: + IMAGE=dokku/examples
remote: + echo '-----> Cleaning up ...'
-----> Cleaning up ...
remote: + dokku cleanup
remote: + unset GIT_DIR GIT_WORK_TREE
remote: + git clone -q /home/dokku/examples /tmp/tmp.YDQXw2czXv
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ -n '' ]]
remote: + case "$1" in
remote: + echo '-----> Building examples ...'
-----> Building examples ...
remote: + docker images
remote: + grep '<none>'
remote: + cat
remote: + awk '{print $3}'
remote: + xargs docker rmi
remote: + xargs docker rm
remote: + dokku build examples
remote: + grep Exit
remote: + awk '{print $1}'
remote: + docker ps -a
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ -n '' ]]
remote: + case "$1" in
remote: + APP=examples
remote: + IMAGE=dokku/examples
remote: + CACHE_DIR=/home/dokku/examples/cache
remote: ++ cat
remote: ++ docker run -i -a stdin progrium/buildstep /bin/bash -c 'mkdir -p /app && tar -xC /app'
remote: + pushd /tmp/tmp.YDQXw2czXv
remote: + git config advice.detachedHead false
remote: + git checkout 02a7b3da37aaa71315edf02da106bd0af96caa31
remote: + git submodule update --init --recursive
remote: + find -name .git -prune -exec rm -rf '{}' ';'
remote: + tar c .
remote: + popd
remote: + rm -rf /tmp/tmp.YDQXw2czXv
remote: + id=3661d783eb8d0ea537b4b288c80c344603e98ba6582a613b2288d9a15469917d
remote: ++ docker wait 3661d783eb8d0ea537b4b288c80c344603e98ba6582a613b2288d9a15469917d
remote: + test 2 -eq 0
remote: + exit_code=1
remote: + set -e
remote: + '[' 1 -eq 10 ']'
remote: + implemented=1
remote: + '[' 1 -ne 0 ']'
remote: + exit 1
+ exit_code=0
+ set -e
+ '[' 0 -eq 10 ']'
+ implemented=1
+ '[' 0 -ne 0 ']'
+ for script in '$PLUGIN_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/nginx-vhosts/commands git-receive-pack ''\''examples'\'''
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ '[' 10 -eq 10 ']'
+ continue
+ '[' 1 -eq 0 ']'
+ exit 0
To dokku@example.com:examples
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@example.com:examples'
@rchrd2
Copy link
Author

rchrd2 commented Jan 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment