Skip to content

Instantly share code, notes, and snippets.

@firrae
Created October 30, 2015 18:26
Show Gist options
  • Select an option

  • Save firrae/5ecf4b04fd987a7d6dfc to your computer and use it in GitHub Desktop.

Select an option

Save firrae/5ecf4b04fd987a7d6dfc to your computer and use it in GitHub Desktop.

Revisions

  1. firrae created this gist Oct 30, 2015.
    703 changes: 703 additions & 0 deletions Ghost Build Issue
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,703 @@
    ✘-128 ~/ghost-0.7.1 [master L|✔]
    14:10 $ git push dokku master
    Counting objects: 8, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (8/8), done.
    Writing objects: 100% (8/8), 2.52 KiB | 0 bytes/s, done.
    Total 8 (delta 4), reused 0 (delta 0)
    To dokku@*.*.*.*:blog
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'dokku@*.*.*.*:blog'
    ✘-1 ~/ghost-0.7.1 [master L|✔]
    14:10 $ git push dokku master
    + parse_args git-receive-pack ''\''blog'\'''
    + for arg in '"$@"'
    + case "$arg" in
    + for arg in '"$@"'
    + case "$arg" in
    + return 0
    + args=("$@")
    + [[ git-receive-pack =~ ^--.* ]]
    + has_tty
    ++ /usr/bin/tty
    ++ true
    + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
    + return 1
    + DOKKU_QUIET_OUTPUT=1
    ++ id -un
    + [[ dokku != \d\o\k\k\u ]]
    + [[ -n git-receive-pack 'blog' ]]
    + export -n SSH_ORIGINAL_COMMAND
    + [[ git-receive-pack =~ config-* ]]
    + [[ git-receive-pack =~ docker-options* ]]
    + /usr/local/bin/dokku git-receive-pack ''\''blog'\'''
    + [[ -f /home/dokku/dokkurc ]]
    + [[ -d /home/dokku/.dokkurc ]]
    + for f in '$DOKKU_ROOT/.dokkurc/*'
    + source /home/dokku/.dokkurc/DOKKU_TRACE
    ++ export DOKKU_TRACE=1
    ++ DOKKU_TRACE=1
    + [[ -n 1 ]]
    + set -x
    + parse_args git-receive-pack ''\''blog'\'''
    + for arg in '"$@"'
    + case "$arg" in
    + for arg in '"$@"'
    + case "$arg" in
    + return 0
    + args=("$@")
    + [[ git-receive-pack =~ ^--.* ]]
    + has_tty
    ++ /usr/bin/tty
    ++ true
    + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
    + return 1
    + DOKKU_QUIET_OUTPUT=1
    ++ id -un
    + [[ dokku != \d\o\k\k\u ]]
    + [[ -n '' ]]
    + case "$1" in
    + implemented=0
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/20_events/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/apps/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/backup/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/certs/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/config/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/docker-options/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/domains/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/enter/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/git/commands git-receive-pack ''\''blog'\'''
    + source /var/lib/dokku/core-plugins/available/common/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    + case "$1" in
    ++ sed 's/^\///g'
    ++ sed 's/\\'\''/'\''/g'
    ++ perl -pe 's/(?<!\\)'\''//g'
    ++ echo ''\''blog'\'''
    + APP=blog
    + APP_PATH=/home/dokku/blog
    + [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
    + [[ ! -d /home/dokku/blog/refs ]]
    + [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
    + args='git-receive-pack '\''/home/dokku/blog'\'''
    + git-shell -c 'git-receive-pack '\''/home/dokku/blog'\'''
    Counting objects: 8, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (8/8), done.
    Writing objects: 100% (8/8), 2.52 KiB | 0 bytes/s, done.
    Total 8 (delta 4), reused 0 (delta 0)
    remote: + [[ -f /home/dokku/dokkurc ]]
    remote: + [[ -d /home/dokku/.dokkurc ]]
    remote: + for f in '$DOKKU_ROOT/.dokkurc/*'
    remote: + source /home/dokku/.dokkurc/DOKKU_TRACE
    remote: ++ export DOKKU_TRACE=1
    remote: ++ DOKKU_TRACE=1
    remote: + [[ -n 1 ]]
    remote: + set -x
    remote: + parse_args git-hook blog
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + return 0
    remote: + args=("$@")
    remote: + [[ git-hook =~ ^--.* ]]
    remote: + has_tty
    remote: ++ /usr/bin/tty
    remote: ++ true
    remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
    remote: + return 1
    remote: + DOKKU_QUIET_OUTPUT=1
    remote: ++ id -un
    remote: + [[ dokku != \d\o\k\k\u ]]
    remote: + [[ -n '' ]]
    remote: + case "$1" in
    remote: + implemented=0
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/20_events/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/apps/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/backup/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/certs/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/config/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/docker-options/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/domains/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/enter/commands git-hook blog
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/git/commands git-hook blog
    remote: + source /var/lib/dokku/core-plugins/available/common/functions
    remote: ++ set -eo pipefail
    remote: ++ [[ -n 1 ]]
    remote: ++ set -x
    remote: + case "$1" in
    remote: + APP=blog
    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: + plugn trigger receive-app blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + source /var/lib/dokku/core-plugins/available/common/functions
    remote: ++ set -eo pipefail
    remote: ++ [[ -n 1 ]]
    remote: ++ set -x
    remote: + [[ ! -n '' ]]
    remote: + source /var/lib/dokku/core-plugins/available/common/functions
    remote: ++ set -eo pipefail
    remote: ++ [[ -n 1 ]]
    remote: ++ set -x
    remote: + APP=blog
    remote: + REV=5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + [[ ! -d /home/dokku/blog/refs ]]
    remote: + dokku git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + [[ -f /home/dokku/dokkurc ]]
    remote: + [[ -d /home/dokku/.dokkurc ]]
    remote: + for f in '$DOKKU_ROOT/.dokkurc/*'
    remote: + source /home/dokku/.dokkurc/DOKKU_TRACE
    remote: ++ export DOKKU_TRACE=1
    remote: ++ DOKKU_TRACE=1
    remote: + [[ -n 1 ]]
    remote: + set -x
    remote: + parse_args git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + return 0
    remote: + args=("$@")
    remote: + [[ git-build =~ ^--.* ]]
    remote: + has_tty
    remote: ++ /usr/bin/tty
    remote: ++ true
    remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
    remote: + return 1
    remote: + DOKKU_QUIET_OUTPUT=1
    remote: ++ id -un
    remote: + [[ dokku != \d\o\k\k\u ]]
    remote: + [[ -n '' ]]
    remote: + case "$1" in
    remote: + implemented=0
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/20_events/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/apps/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/backup/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/certs/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/config/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/docker-options/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/domains/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/enter/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/git/commands git-build blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + source /var/lib/dokku/core-plugins/available/common/functions
    remote: ++ set -eo pipefail
    remote: ++ [[ -n 1 ]]
    remote: ++ set -x
    remote: + case "$1" in
    remote: + APP=blog
    remote: + APP_BUILD_LOCK=/home/dokku/blog/.build.lock
    remote: + APP_BUILD_LOCK_MSG='blog is currently being deployed or locked. Waiting...'
    remote: ++ flock -n /home/dokku/blog/.build.lock true
    remote: ++ echo 0
    remote: + [[ 0 -ne 0 ]]
    remote: + shift 1
    remote: + flock -o /home/dokku/blog/.build.lock dokku git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + [[ -f /home/dokku/dokkurc ]]
    remote: + [[ -d /home/dokku/.dokkurc ]]
    remote: + for f in '$DOKKU_ROOT/.dokkurc/*'
    remote: + source /home/dokku/.dokkurc/DOKKU_TRACE
    remote: ++ export DOKKU_TRACE=1
    remote: ++ DOKKU_TRACE=1
    remote: + [[ -n 1 ]]
    remote: + set -x
    remote: + parse_args git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + for arg in '"$@"'
    remote: + case "$arg" in
    remote: + return 0
    remote: + args=("$@")
    remote: + [[ git-build-locked =~ ^--.* ]]
    remote: + has_tty
    remote: ++ /usr/bin/tty
    remote: ++ true
    remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
    remote: + return 1
    remote: + DOKKU_QUIET_OUTPUT=1
    remote: ++ id -un
    remote: + [[ dokku != \d\o\k\k\u ]]
    remote: + [[ -n '' ]]
    remote: + case "$1" in
    remote: + implemented=0
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/20_events/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/apps/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/backup/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/certs/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/config/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/docker-options/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/domains/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/enter/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + exit_code=10
    remote: + set -e
    remote: + [[ 10 -eq 10 ]]
    remote: + continue
    remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    remote: + set +e
    remote: + /var/lib/dokku/plugins/enabled/git/commands git-build-locked blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + source /var/lib/dokku/core-plugins/available/common/functions
    remote: ++ set -eo pipefail
    remote: ++ [[ -n 1 ]]
    remote: ++ set -x
    remote: + case "$1" in
    remote: + APP=blog
    remote: + [[ 3 -ge 3 ]]
    remote: + REF=5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + git_build_app_repo blog 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + verify_app_name blog
    remote: + local APP=blog
    remote: + [[ ! -n blog ]]
    remote: + [[ ! -d /home/dokku/blog ]]
    remote: + return 0
    remote: + APP=blog
    remote: + REV=5e4741f2efba323c50e14b81e619246574db9ee0
    remote: ++ mktemp -d
    remote: + TMP_WORK_DIR=/tmp/tmp.0jtEvS0RQS
    remote: + trap 'rm -rf "$TMP_WORK_DIR" > /dev/null' RETURN
    remote: + chmod 755 /tmp/tmp.0jtEvS0RQS
    remote: + unset GIT_DIR GIT_WORK_TREE
    remote: + pushd /tmp/tmp.0jtEvS0RQS
    remote: + git clone -q /home/dokku/blog /tmp/tmp.0jtEvS0RQS
    remote: + git config advice.detachedHead false
    remote: + git checkout 5e4741f2efba323c50e14b81e619246574db9ee0
    remote: + git submodule update --init --recursive
    remote: + exit_code=1
    remote: + set -e
    remote: + [[ 1 -eq 10 ]]
    remote: + implemented=1
    remote: + [[ 1 -ne 0 ]]
    remote: + exit 1
    remote: + exit_code=1
    remote: + set -e
    remote: + [[ 1 -eq 10 ]]
    remote: + implemented=1
    remote: + [[ 1 -ne 0 ]]
    remote: + exit 1
    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_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/logs/commands git-receive-pack ''\''blog'\'''
    + source /var/lib/dokku/core-plugins/available/common/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    + source /var/lib/dokku/plugins/available/config/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    ++ source /var/lib/dokku/core-plugins/available/common/functions
    +++ set -eo pipefail
    +++ [[ -n 1 ]]
    +++ set -x
    + source /var/lib/dokku/plugins/available/nginx-vhosts/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    ++ source /var/lib/dokku/core-plugins/available/common/functions
    +++ set -eo pipefail
    +++ [[ -n 1 ]]
    +++ set -x
    ++ source /var/lib/dokku/plugins/available/certs/functions
    +++ set -eo pipefail
    +++ [[ -n 1 ]]
    +++ set -x
    +++ source /var/lib/dokku/core-plugins/available/common/functions
    ++++ set -eo pipefail
    ++++ [[ -n 1 ]]
    ++++ set -x
    ++ source /var/lib/dokku/plugins/available/config/functions
    +++ set -eo pipefail
    +++ [[ -n 1 ]]
    +++ set -x
    +++ source /var/lib/dokku/core-plugins/available/common/functions
    ++++ set -eo pipefail
    ++++ [[ -n 1 ]]
    ++++ set -x
    ++ source /var/lib/dokku/plugins/available/domains/functions
    +++ set -eo pipefail
    +++ [[ -n 1 ]]
    +++ set -x
    +++ source /var/lib/dokku/core-plugins/available/common/functions
    ++++ set -eo pipefail
    ++++ [[ -n 1 ]]
    ++++ set -x
    + case "$1" in
    + exit 10
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/maintenance/commands git-receive-pack ''\''blog'\'''
    + PLUGIN_BASE_PATH=/var/lib/dokku/plugins
    + [[ -n 1 ]]
    + PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
    + source /var/lib/dokku/plugins/enabled/common/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    + case "$1" in
    + exit 10
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/nginx-vhosts/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/plugin/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/postgres/commands git-receive-pack ''\''blog'\'''
    + PLUGIN_BASE_PATH=/var/lib/dokku/plugins
    + [[ -n 1 ]]
    + PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
    + source /var/lib/dokku/plugins/enabled/common/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    ++ dirname /var/lib/dokku/plugins/enabled/postgres/commands
    + source /var/lib/dokku/plugins/enabled/postgres/functions
    ++ set -eo pipefail
    ++ [[ -n 1 ]]
    ++ set -x
    +++ dirname /var/lib/dokku/plugins/enabled/postgres/commands
    ++ source /var/lib/dokku/plugins/enabled/postgres/config
    +++ export POSTGRES_IMAGE=postgres
    +++ POSTGRES_IMAGE=postgres
    +++ export POSTGRES_IMAGE_VERSION=9.4.4
    +++ POSTGRES_IMAGE_VERSION=9.4.4
    +++ export POSTGRES_ROOT=/var/lib/dokku/services/postgres
    +++ POSTGRES_ROOT=/var/lib/dokku/services/postgres
    +++ export PLUGIN_COMMAND_PREFIX=postgres
    +++ PLUGIN_COMMAND_PREFIX=postgres
    +++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres
    +++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres
    +++ PLUGIN_DATASTORE_PORTS=(5432)
    +++ export PLUGIN_DATASTORE_PORTS
    +++ export PLUGIN_DEFAULT_ALIAS=DATABASE
    +++ PLUGIN_DEFAULT_ALIAS=DATABASE
    +++ export PLUGIN_ALT_ALIAS=DOKKU_POSTGRES
    +++ PLUGIN_ALT_ALIAS=DOKKU_POSTGRES
    +++ export PLUGIN_IMAGE=postgres
    +++ PLUGIN_IMAGE=postgres
    +++ export PLUGIN_IMAGE_VERSION=9.4.4
    +++ PLUGIN_IMAGE_VERSION=9.4.4
    +++ export PLUGIN_SCHEME=postgres
    +++ PLUGIN_SCHEME=postgres
    +++ export PLUGIN_SERVICE=Postgres
    +++ PLUGIN_SERVICE=Postgres
    ++ dirname /var/lib/dokku/plugins/enabled/postgres/commands
    + source /var/lib/dokku/plugins/enabled/postgres/config
    ++ export POSTGRES_IMAGE=postgres
    ++ POSTGRES_IMAGE=postgres
    ++ export POSTGRES_IMAGE_VERSION=9.4.4
    ++ POSTGRES_IMAGE_VERSION=9.4.4
    ++ export POSTGRES_ROOT=/var/lib/dokku/services/postgres
    ++ POSTGRES_ROOT=/var/lib/dokku/services/postgres
    ++ export PLUGIN_COMMAND_PREFIX=postgres
    ++ PLUGIN_COMMAND_PREFIX=postgres
    ++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres
    ++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres
    ++ PLUGIN_DATASTORE_PORTS=(5432)
    ++ export PLUGIN_DATASTORE_PORTS
    ++ export PLUGIN_DEFAULT_ALIAS=DATABASE
    ++ PLUGIN_DEFAULT_ALIAS=DATABASE
    ++ export PLUGIN_ALT_ALIAS=DOKKU_POSTGRES
    ++ PLUGIN_ALT_ALIAS=DOKKU_POSTGRES
    ++ export PLUGIN_IMAGE=postgres
    ++ PLUGIN_IMAGE=postgres
    ++ export PLUGIN_IMAGE_VERSION=9.4.4
    ++ PLUGIN_IMAGE_VERSION=9.4.4
    ++ export PLUGIN_SCHEME=postgres
    ++ PLUGIN_SCHEME=postgres
    ++ export PLUGIN_SERVICE=Postgres
    ++ PLUGIN_SERVICE=Postgres
    + [[ git-receive-pack == postgres:* ]]
    + case "$1" in
    + exit 10
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/ps/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/shell/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/tags/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + for script in '$PLUGIN_ENABLED_PATH/*/commands'
    + set +e
    + /var/lib/dokku/plugins/enabled/tar/commands git-receive-pack ''\''blog'\'''
    + exit_code=10
    + set -e
    + [[ 10 -eq 10 ]]
    + continue
    + [[ 1 -eq 0 ]]
    + exit 0
    To dokku@*.*.*.*:blog
    ! [remote rejected] master -> master (pre-receive hook declined)