Skip to content

Instantly share code, notes, and snippets.

@enjikaka
Created September 16, 2015 15:39
Show Gist options
  • Save enjikaka/391ee342e43a303368b0 to your computer and use it in GitHub Desktop.
Save enjikaka/391ee342e43a303368b0 to your computer and use it in GitHub Desktop.
+ parse_args git-receive-pack ''\''youtube'\'''
+ 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 'youtube' ]]
+ export -n SSH_ORIGINAL_COMMAND
+ [[ git-receive-pack =~ config-* ]]
+ [[ git-receive-pack =~ docker-options* ]]
+ /usr/local/bin/dokku git-receive-pack ''\''youtube'\'''
+ [[ -f /home/dokku/dokkurc ]]
+ source /home/dokku/dokkurc
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args git-receive-pack ''\''youtube'\'''
+ 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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/00_dokku-standard/commands git-receive-pack ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/20_events/commands git-receive-pack ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/20_events/commands
+ source /var/lib/dokku/plugins/20_events/../common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/20_events/commands
+ PLUGIN_DIR=/var/lib/dokku/plugins/20_events
+ 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 ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/apps/commands
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/backup/commands git-receive-pack ''\''youtube'\'''
+ 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 ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/config/commands
+ source /var/lib/dokku/plugins/config/../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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/docker-options/commands git-receive-pack ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/docker-options/commands
+ source /var/lib/dokku/plugins/docker-options/../common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ PHASES=(build deploy run)
+ FILE_PREFIX=DOCKER_OPTIONS_
+ 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/domains/commands git-receive-pack ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/domains/commands
+ source /var/lib/dokku/plugins/domains/../common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
+ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,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}$'
+ 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 ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/git/commands
+ source /var/lib/dokku/plugins/git/../common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ case "$1" in
++ sed 's/^\///g'
++ sed 's/\\'\''/'\''/g'
++ perl -pe 's/(?<!\\)'\''//g'
++ echo ''\''youtube'\'''
+ APP=youtube
+ APP_PATH=/home/dokku/youtube
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ [[ ! -d /home/dokku/youtube/refs ]]
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ args='git-receive-pack '\''/home/dokku/youtube'\'''
+ git-shell -c 'git-receive-pack '\''/home/dokku/youtube'\'''
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args git-hook youtube
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands git-hook youtube
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands git-hook youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 youtube
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 youtube
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 youtube
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/docker-options/commands git-hook youtube
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands git-hook youtube
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,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,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 youtube
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + APP=youtube
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: + pluginhook -p receive-app youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/20_events/receive-app
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ dirname /var/lib/dokku/plugins/git/receive-app
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + APP=youtube
remote: + REV=0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + '[' '!' -d /home/dokku/youtube/refs ']'
remote: + dokku git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
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-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/docker-options/commands git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands git-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){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-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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-build youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + APP=youtube
remote: + APP_BUILD_LOCK=/home/dokku/youtube/.build.lock
remote: + APP_BUILD_LOCK_MSG='youtube is currently being deployed or locked. Waiting...'
remote: ++ flock -n /home/dokku/youtube/.build.lock true
remote: ++ echo 0
remote: + [[ 0 -ne 0 ]]
remote: + shift 1
remote: + flock -o /home/dokku/youtube/.build.lock dokku git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
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-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/docker-options/commands git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands git-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a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,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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-build-locked youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + APP=youtube
remote: + [[ 3 -ge 3 ]]
remote: + REF=0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + git_build_app_repo youtube 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + verify_app_name youtube
remote: + local APP=youtube
remote: + [[ ! -n youtube ]]
remote: + [[ ! -d /home/dokku/youtube ]]
remote: + IMAGE=dokku/youtube
remote: + return 0
remote: + APP=youtube
remote: + REV=0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: ++ mktemp -d
remote: + TMP_WORK_DIR=/tmp/tmp.G9UrqiF9mH
remote: + trap 'rm -rf "$TMP_WORK_DIR" > /dev/null' RETURN
remote: + chmod 755 /tmp/tmp.G9UrqiF9mH
remote: + unset GIT_DIR GIT_WORK_TREE
remote: + pushd /tmp/tmp.G9UrqiF9mH
remote: + git clone -q /home/dokku/youtube /tmp/tmp.G9UrqiF9mH
remote: + git config advice.detachedHead false
remote: + git checkout 0cc73b2d0ca8332a2454a911a2f923249e2698cd
remote: + git submodule update --init --recursive
remote: + find -name .git -prune -exec rm -rf '{}' ';'
remote: + [[ -f Dockerfile ]]
remote: + sed -u 's/^//'
remote: + dokku receive youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args receive youtube herokuish /tmp/tmp.G9UrqiF9mH
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: + for arg in '"$@"'
remote: + case "$arg" in
remote: + return 0
remote: + args=("$@")
remote: + [[ receive =~ ^--.* ]]
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: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + IMAGE_SOURCE_TYPE=herokuish
remote: + TMP_WORK_DIR=/tmp/tmp.G9UrqiF9mH
remote: + dokku_log_info1 'Cleaning up...'
remote: + echo '-----> Cleaning up...'
remote: -----> Cleaning up...
remote: + dokku cleanup
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args cleanup
remote: + for arg in '"$@"'
remote: + case "$arg" in
remote: + return 0
remote: + args=("$@")
remote: + [[ cleanup =~ ^--.* ]]
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: ++ docker ps -a -f status=exited -q
remote: + docker rm 5cae767dcf84 c2a42b270f5b 5036ed7af17d c6cc74b2dc63 02856c928c4a 908822a3b2a5 f7f8627b15f9
remote: + dokku_log_info1 'Building youtube from herokuish...'
remote: + echo '-----> Building youtube from herokuish...'
remote: + dokku build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: -----> Building youtube from herokuish...
remote: + [[ -f /home/dokku/dokkurc ]]
remote: ++ docker images -f dangling=true -q
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args build youtube herokuish /tmp/tmp.G9UrqiF9mH
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: + for arg in '"$@"'
remote: + case "$arg" in
remote: + return 0
remote: + args=("$@")
remote: + [[ 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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + IMAGE_SOURCE_TYPE=herokuish
remote: + TMP_WORK_DIR=/tmp/tmp.G9UrqiF9mH
remote: + CACHE_DIR=/home/dokku/youtube/cache
remote: + [[ -f /home/dokku/youtube/ENV ]]
remote: + source /home/dokku/youtube/ENV
remote: + pushd /tmp/tmp.G9UrqiF9mH
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: ++ docker run -i -a stdin gliderlabs/herokuish /bin/bash -c 'mkdir -p /app && tar -xC /app'
remote: ++ tar -c .
remote: + docker rmi e1bf1b09fa1e
remote: + id=2846f171e80f05096ca1ce3354e4a8da24f46175eede537732e7d9840f14e46e
remote: ++ docker wait 2846f171e80f05096ca1ce3354e4a8da24f46175eede537732e7d9840f14e46e
remote: + test 0 -eq 0
remote: + docker commit 2846f171e80f05096ca1ce3354e4a8da24f46175eede537732e7d9840f14e46e dokku/youtube
remote: + [[ -d /home/dokku/youtube/cache ]]
remote: + pluginhook pre-build youtube
remote: ++ dirname /var/lib/dokku/plugins/build-env/pre-build
remote: + source /var/lib/dokku/plugins/build-env/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + BUILD_ENV=
remote: + [[ -f /home/dokku/BUILD_ENV ]]
remote: + grep -q CURL_CONNECT_TIMEOUT /home/dokku/ENV
remote: + grep -q CURL_TIMEOUT /home/dokku/ENV
remote: + [[ -f /home/dokku/ENV ]]
remote: + BUILD_ENV+='
remote: '
remote: + BUILD_ENV+='export CURL_CONNECT_TIMEOUT=5
remote: export CURL_TIMEOUT=30'
remote: + BUILD_ENV+='
remote: '
remote: + [[ -f /home/dokku/youtube/ENV ]]
remote: + BUILD_ENV+='
remote: '
remote: + BUILD_ENV+=
remote: + BUILD_ENV+='
remote: '
remote: + [[ ! -z
remote: export CURL_CONNECT_TIMEOUT=5
remote: export CURL_TIMEOUT=30
remote:
remote:
remote: ]]
remote: + dokku_log_info1 'Adding BUILD_ENV to build environment...'
remote: + echo '-----> Adding BUILD_ENV to build environment...'
remote: -----> Adding BUILD_ENV to build environment...
remote: ++ sed -e 's@export @@g' -e 's@\\n@ @g'
remote: ++ echo export CURL_CONNECT_TIMEOUT=5 export CURL_TIMEOUT=30
remote: +++ cat
remote: ++ docker run -i -a stdin dokku/youtube /bin/bash -c 'for ENV_VAR in CURL_CONNECT_TIMEOUT=5 CURL_TIMEOUT=30; do echo $ENV_VAR |sed '\''s@^\([^=]*\)=\(.*\)$@echo \"\2\" >/tmp/env/\1@g'\'' >>/tmp/set_env.sh; done && mkdir -p /tmp/env && /bin/bash /tmp/set_env.sh'
remote: + id=b18087a9a147c9fffb175f1c3af8e02124aedd9fd31f23a022e4845af418e846
remote: ++ docker wait b18087a9a147c9fffb175f1c3af8e02124aedd9fd31f23a022e4845af418e846
remote: + test 0 -eq 0
remote: + docker commit b18087a9a147c9fffb175f1c3af8e02124aedd9fd31f23a022e4845af418e846 dokku/youtube
remote: ++ docker run -i -a stdin dokku/youtube /bin/bash -c 'cat >> /app/.env'
remote: ++ echo -e '
remote: export CURL_CONNECT_TIMEOUT=5
remote: export CURL_TIMEOUT=30
remote:
remote:
remote: '
remote: + id=6f025883cfdf12d3b444f216d8027bfbf5f14b3ce1859c37012228bd8dae4f7a
remote: ++ docker wait 6f025883cfdf12d3b444f216d8027bfbf5f14b3ce1859c37012228bd8dae4f7a
remote: + test 0 -eq 0
remote: + docker commit 6f025883cfdf12d3b444f216d8027bfbf5f14b3ce1859c37012228bd8dae4f7a dokku/youtube
remote: + pluginhook pre-build-buildstep youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/pre-build-buildstep
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + pluginhook pre-build-buildpack youtube
remote: ++ pluginhook docker-args youtube build
remote: ++ :
remote: + DOCKER_ARGS=
remote: ++ pluginhook docker-args-build youtube
remote: ++ :
remote: ++ dirname /var/lib/dokku/plugins/20_events/docker-args-build
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ cat
remote: + STDIN=
remote: + APP=youtube
remote: + case "$0" in
remote: + PHASE=BUILD
remote: + FILE_PREFIX=DOCKER_OPTIONS_
remote: + PHASE_FILE_PATH=/home/dokku/youtube/DOCKER_OPTIONS_BUILD
remote: + output=
remote: + [[ -f /home/dokku/youtube/DOCKER_OPTIONS_BUILD ]]
remote: + echo ''
remote: + DOCKER_ARGS+=
remote: ++ docker run -d -v /home/dokku/youtube/cache:/cache -e CACHE_PATH=/cache dokku/youtube /build
remote: + id=ddd000ed14794b89eedaa0bb7eb0f229e6d82d8116d93f33ac6d4b31cd188fee
remote: + docker attach ddd000ed14794b89eedaa0bb7eb0f229e6d82d8116d93f33ac6d4b31cd188fee
remote:  -----> Node.js app detected
remote: 
remote: -----> Creating runtime environment
remote: 
remote:  NPM_CONFIG_LOGLEVEL=error
remote:  NPM_CONFIG_PRODUCTION=true
remote:  NODE_MODULES_CACHE=true
remote: 
remote: -----> Installing binaries
remote:  engines.node (package.json): unspecified
remote:  engines.npm (package.json): unspecified (use default)
remote: 
remote:  Resolving node version (latest stable) via semver.io...
remote:  Downloading and installing node 0.12.7...
remote:  Using default npm version: 2.11.3
remote: 
remote: -----> Restoring cache
remote:  Loading 1 from cacheDirectories (default):
remote:  - node_modules
remote: 
remote: -----> Building dependencies
remote:  Pruning any extraneous modules
remote:  Installing node modules (package.json)
remote: 
remote: -----> Caching build
remote:  Clearing previous node cache
remote:  Saving 1 cacheDirectories (default):
remote:  - node_modules
remote: 
remote: -----> Build succeeded!
remote:  ├── [email protected]
remote:  └── [email protected]
remote: 
remote:  -----> Discovering process types
remote:  Default types for -> web
remote: ++ docker wait ddd000ed14794b89eedaa0bb7eb0f229e6d82d8116d93f33ac6d4b31cd188fee
remote: + test 0 -eq 0
remote: + docker commit ddd000ed14794b89eedaa0bb7eb0f229e6d82d8116d93f33ac6d4b31cd188fee dokku/youtube
remote: + pluginhook post-build youtube
remote: + pluginhook post-build-buildstep youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/post-build-buildstep
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + pluginhook post-build-buildpack youtube
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/20_events/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 build youtube herokuish /tmp/tmp.G9UrqiF9mH
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 build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/docker-options/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-f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-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/nginx-vhosts/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + source /var/lib/dokku/plugins/nginx-vhosts/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/ps/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/commands
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
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/shell/commands build youtube herokuish /tmp/tmp.G9UrqiF9mH
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
remote: + dokku_log_info1 'Releasing youtube...'
remote: + echo '-----> Releasing youtube...'
remote: + dokku release youtube herokuish
remote: -----> Releasing youtube...
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args release youtube herokuish
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: + [[ release =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + IMAGE_SOURCE_TYPE=herokuish
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + pluginhook pre-release youtube
remote: + pluginhook pre-release-buildstep youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/pre-release-buildstep
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + pluginhook pre-release-buildpack youtube
remote: + [[ -f /home/dokku/ENV ]]
remote: ++ docker run -i -a stdin dokku/youtube /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/00-global-env.sh'
remote: + id=2798e12f5ed82f2b86a6c8af4cbb694126b23a438135b79f73f0af13ccd19bf7
remote: ++ docker wait 2798e12f5ed82f2b86a6c8af4cbb694126b23a438135b79f73f0af13ccd19bf7
remote: + test 0 -eq 0
remote: + docker commit 2798e12f5ed82f2b86a6c8af4cbb694126b23a438135b79f73f0af13ccd19bf7 dokku/youtube
remote: + [[ -f /home/dokku/youtube/ENV ]]
remote: ++ docker run -i -a stdin dokku/youtube /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/01-app-env.sh'
remote: + id=904277a1c9fb34039bb01145e5fe4f6d8f14ee944855ff25fb823586387afab0
remote: ++ docker wait 904277a1c9fb34039bb01145e5fe4f6d8f14ee944855ff25fb823586387afab0
remote: + test 0 -eq 0
remote: + docker commit 904277a1c9fb34039bb01145e5fe4f6d8f14ee944855ff25fb823586387afab0 dokku/youtube
remote: + pluginhook post-release youtube
remote: + pluginhook post-release-buildstep youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/post-release-buildstep
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + pluginhook post-release-buildpack youtube
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/20_events/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 release youtube herokuish
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 release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/docker-options/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1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:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/nginx-vhosts/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + source /var/lib/dokku/plugins/nginx-vhosts/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/ps/commands release youtube herokuish
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/commands
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
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/shell/commands release youtube herokuish
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
remote: + dokku_log_info1 'Deploying youtube...'
remote: + echo '-----> Deploying youtube...'
remote: + dokku deploy youtube
remote: -----> Deploying youtube...
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args deploy youtube
remote: + for arg in '"$@"'
remote: + case "$arg" in
remote: + for arg in '"$@"'
remote: + case "$arg" in
remote: + return 0
remote: + args=("$@")
remote: + [[ deploy =~ ^--.* ]]
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: + [[ -z youtube ]]
remote: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + verify_app_name youtube
remote: + local APP=youtube
remote: + [[ ! -n youtube ]]
remote: + [[ ! -d /home/dokku/youtube ]]
remote: + IMAGE=dokku/youtube
remote: + return 0
remote: + pluginhook pre-deploy youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/pre-deploy
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ dirname /var/lib/dokku/plugins/ps/pre-deploy
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/pre-deploy
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/pre-deploy
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + APP=youtube
remote: + generate_scale_file youtube
remote: + local APP=youtube
remote: + local IMAGE=dokku/youtube
remote: + local DOKKU_SCALE_FILE=/home/dokku/youtube/DOKKU_SCALE
remote: + copy_from_image dokku/youtube /app/DOKKU_SCALE /home/dokku/youtube
remote: + [[ ! -f /home/dokku/youtube/DOKKU_SCALE ]]
remote: + dokku_log_info1_quiet 'DOKKU_SCALE file found'
remote: + [[ -z '' ]]
remote: + echo '-----> DOKKU_SCALE file found'
remote: + print_dokku_scale_file youtube
remote: + local APP=youtube
remote: + local DOKKU_SCALE_FILE=/home/dokku/youtube/DOKKU_SCALE
remote: + read line
remote: + dokku_log_info2_quiet web=1
remote: + [[ -z '' ]]
remote: + echo '=====> web=1'
remote: + read line
remote: + '[' -n '' ']'
remote: -----> DOKKU_SCALE file found
remote: =====> web=1
remote: + is_image_herokuish_based dokku/youtube
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --entrypoint=/bin/sh --rm dokku/youtube -c 'test -f /exec'
remote: + DOKKU_HEROKUISH=true
remote: + DOKKU_SCALE_FILE=/home/dokku/youtube/DOKKU_SCALE
remote: ++ get_app_container_ids youtube
remote: ++ APP=youtube
remote: ++ verify_app_name youtube
remote: ++ local APP=youtube
remote: ++ [[ ! -n youtube ]]
remote: ++ [[ ! -d /home/dokku/youtube ]]
remote: ++ IMAGE=dokku/youtube
remote: ++ return 0
remote: ++ [[ -f /home/dokku/youtube/CONTAINER ]]
remote: ++ shopt -s nullglob
remote: ++ shopt -u nullglob
remote: ++ echo
remote: + oldids=
remote: + read line
remote: + TRIM=web=1
remote: + PROC_TYPE=web
remote: + PROC_COUNT=1
remote: + CONTAINER_INDEX=1
remote: + [[ 1 -le 1 ]]
remote: + id=
remote: + port=
remote: + ipaddr=
remote: + DOKKU_CONTAINER_ID_FILE=/home/dokku/youtube/CONTAINER.web.1
remote: + DOKKU_IP_FILE=/home/dokku/youtube/IP.web.1
remote: + DOKKU_PORT_FILE=/home/dokku/youtube/PORT.web.1
remote: ++ pluginhook docker-args youtube deploy
remote: ++ :
remote: + DOCKER_ARGS=
remote: + DOCKER_ARGS+=' -e DYNO=web '
remote: ++ pluginhook docker-args-deploy youtube
remote: ++ :
remote: ++ dirname /var/lib/dokku/plugins/20_events/docker-args-deploy
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ dirname /var/lib/dokku/plugins/config/docker-args-deploy
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ cat
remote: + STDIN=
remote: + APP=youtube
remote: + IMAGE=dokku/youtube
remote: + DOCKERFILE_ENV_FILE=/home/dokku/youtube/DOCKERFILE_ENV_FILE
remote: + is_image_herokuish_based dokku/youtube
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --entrypoint=/bin/sh --rm dokku/youtube -c 'test -f /exec'
remote: + echo ''
remote: ++ cat
remote: + STDIN=
remote: + APP=youtube
remote: + case "$0" in
remote: + PHASE=DEPLOY
remote: + FILE_PREFIX=DOCKER_OPTIONS_
remote: + PHASE_FILE_PATH=/home/dokku/youtube/DOCKER_OPTIONS_DEPLOY
remote: + output=
remote: + [[ -f /home/dokku/youtube/DOCKER_OPTIONS_DEPLOY ]]
remote: + echo ''
remote: + DOCKER_ARGS+=
remote: ++ pluginhook bind-external-ip youtube
remote: ++ dirname /var/lib/dokku/plugins/20_events/bind-external-ip
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + APP=youtube
remote: ++ dokku config:get youtube NO_VHOST
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args config:get youtube NO_VHOST
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: + [[ config:get =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 config:get youtube NO_VHOST
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 config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + parse_config_args config:get youtube NO_VHOST
remote: + case "$2" in
remote: + APP=youtube
remote: + ENV_FILE=/home/dokku/youtube/ENV
remote: + DOKKU_CONFIG_TYPE=app
remote: + DOKKU_CONFIG_RESTART=true
remote: + [[ app = \a\p\p ]]
remote: + [[ -z youtube ]]
remote: + verify_app_name youtube
remote: + local APP=youtube
remote: + [[ ! -n youtube ]]
remote: + [[ ! -d /home/dokku/youtube ]]
remote: + IMAGE=dokku/youtube
remote: + return 0
remote: + export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
remote: + [[ -z NO_VHOST ]]
remote: + config_create
remote: + '[' -f /home/dokku/youtube/ENV ']'
remote: + [[ ! -s /home/dokku/youtube/ENV ]]
remote: + exit 0
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/docker-options/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){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,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/nginx-vhosts/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + source /var/lib/dokku/plugins/nginx-vhosts/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/ps/commands config:get youtube NO_VHOST
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/commands
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
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/shell/commands config:get youtube NO_VHOST
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
remote: + NO_VHOST=
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,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,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: + [[ -f /home/dokku/VHOST ]]
remote: + GLOBAL_VHOST=dret.nu
remote: + [[ -n '' ]]
remote: + [[ dret.nu =~ ([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
remote: + [[ dret.nu =~ ([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
remote: + [[ -z dret.nu ]]
remote: + [[ -f /home/dokku/youtube/VHOST ]]
remote: + echo false
remote: + BIND_EXTERNAL=false
remote: + [[ -n true ]]
remote: + START_CMD='/start web'
remote: + [[ -z true ]]
remote: + [[ web == \w\e\b ]]
remote: + port=5000
remote: + [[ false = \t\r\u\e ]]
remote: ++ docker run -d -e PORT=5000 -e DYNO=web dokku/youtube /start web
remote: + id=49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: ++ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + ipaddr=172.17.0.70
remote: ++ dokku config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args config:get youtube DOKKU_SKIP_ALL_CHECKS
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: + [[ config:get =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 config:get youtube DOKKU_SKIP_ALL_CHECKS
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 config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + parse_config_args config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: + case "$2" in
remote: + APP=youtube
remote: + ENV_FILE=/home/dokku/youtube/ENV
remote: + DOKKU_CONFIG_TYPE=app
remote: + DOKKU_CONFIG_RESTART=true
remote: + [[ app = \a\p\p ]]
remote: + [[ -z youtube ]]
remote: + verify_app_name youtube
remote: + local APP=youtube
remote: + [[ ! -n youtube ]]
remote: + [[ ! -d /home/dokku/youtube ]]
remote: + IMAGE=dokku/youtube
remote: + return 0
remote: + export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
remote: + [[ -z DOKKU_SKIP_ALL_CHECKS ]]
remote: + config_create
remote: + '[' -f /home/dokku/youtube/ENV ']'
remote: + [[ ! -s /home/dokku/youtube/ENV ]]
remote: + exit 0
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/docker-options/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-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1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/nginx-vhosts/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + source /var/lib/dokku/plugins/nginx-vhosts/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/ps/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/commands
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
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/shell/commands config:get youtube DOKKU_SKIP_ALL_CHECKS
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
remote: + DOKKU_APP_SKIP_ALL_CHECKS=
remote: ++ dokku config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
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: + [[ config:get =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
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 config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + parse_config_args config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: + case "$2" in
remote: + APP=youtube
remote: + ENV_FILE=/home/dokku/youtube/ENV
remote: + DOKKU_CONFIG_TYPE=app
remote: + DOKKU_CONFIG_RESTART=true
remote: + [[ app = \a\p\p ]]
remote: + [[ -z youtube ]]
remote: + verify_app_name youtube
remote: + local APP=youtube
remote: + [[ ! -n youtube ]]
remote: + [[ ! -d /home/dokku/youtube ]]
remote: + IMAGE=dokku/youtube
remote: + return 0
remote: + export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
remote: + [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]]
remote: + config_create
remote: + '[' -f /home/dokku/youtube/ENV ']'
remote: + [[ ! -s /home/dokku/youtube/ENV ]]
remote: + exit 0
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/docker-options/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/docker-options/commands
remote: + source /var/lib/dokku/plugins/docker-options/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + PHASES=(build deploy run)
remote: + FILE_PREFIX=DOCKER_OPTIONS_
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/domains/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/domains/commands
remote: + source /var/lib/dokku/plugins/domains/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + RE_IPV4='([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: + RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]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.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
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 config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/git/commands
remote: + source /var/lib/dokku/plugins/git/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/nginx-vhosts/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + source /var/lib/dokku/plugins/nginx-vhosts/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/ps/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/ps/commands
remote: + source /var/lib/dokku/plugins/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: +++ dirname /var/lib/dokku/plugins/ps/commands
remote: ++ source /var/lib/dokku/plugins/ps/../common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
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/shell/commands config:get youtube DOKKU_SKIP_DEFAULT_CHECKS
remote: + case "$1" in
remote: + exit 10
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
remote: + DOKKU_APP_SKIP_DEFAULT_CHECKS=
remote: ++ dokku config:get --global DOKKU_SKIP_ALL_CHECKS
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args config:get --global DOKKU_SKIP_ALL_CHECKS
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: + [[ config:get =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands config:get --global DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands config:get --global DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 config:get --global DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 config:get --global DOKKU_SKIP_ALL_CHECKS
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 config:get --global DOKKU_SKIP_ALL_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + parse_config_args config:get --global DOKKU_SKIP_ALL_CHECKS
remote: + case "$2" in
remote: + ENV_FILE=/home/dokku/ENV
remote: + DOKKU_CONFIG_TYPE=global
remote: + DOKKU_CONFIG_RESTART=false
remote: + APP=--global
remote: + ENV_FILE=/home/dokku/ENV
remote: + DOKKU_CONFIG_TYPE=global
remote: + DOKKU_CONFIG_RESTART=false
remote: + [[ global = \a\p\p ]]
remote: + export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
remote: + [[ -z DOKKU_SKIP_ALL_CHECKS ]]
remote: + config_create
remote: + '[' -f /home/dokku/ENV ']'
remote: + [[ ! -s /home/dokku/ENV ]]
remote: + KEY=DOKKU_SKIP_ALL_CHECKS
remote: + sed -e 's/^'\''//' -e 's/'\''$//'
remote: + cut -d= -f2-
remote: + grep '^export DOKKU_SKIP_ALL_CHECKS='
remote: + grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV
remote: + exit_code=1
remote: + set -e
remote: + [[ 1 -eq 10 ]]
remote: + implemented=1
remote: + [[ 1 -ne 0 ]]
remote: + exit 1
remote: ++ true
remote: + DOKKU_GLOBAL_SKIP_ALL_CHECKS=
remote: ++ dokku config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: + [[ -f /home/dokku/dokkurc ]]
remote: + source /home/dokku/dokkurc
remote: ++ export DOKKU_TRACE=1
remote: ++ DOKKU_TRACE=1
remote: + [[ -d /home/dokku/.dokkurc ]]
remote: + [[ -n 1 ]]
remote: + set -x
remote: + parse_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS
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: + [[ config:get =~ ^--.* ]]
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_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands
remote: + source /var/lib/dokku/plugins/00_dokku-standard/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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/20_events/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ dirname /var/lib/dokku/plugins/20_events/commands
remote: + PLUGIN_DIR=/var/lib/dokku/plugins/20_events
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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/apps/commands
remote: + source /var/lib/dokku/plugins/apps/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS
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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: ++ dirname /var/lib/dokku/plugins/config/commands
remote: + source /var/lib/dokku/plugins/config/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + parse_config_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS
remote: + case "$2" in
remote: + ENV_FILE=/home/dokku/ENV
remote: + DOKKU_CONFIG_TYPE=global
remote: + DOKKU_CONFIG_RESTART=false
remote: + APP=--global
remote: + ENV_FILE=/home/dokku/ENV
remote: + DOKKU_CONFIG_TYPE=global
remote: + DOKKU_CONFIG_RESTART=false
remote: + [[ global = \a\p\p ]]
remote: + export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
remote: + [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]]
remote: + config_create
remote: + '[' -f /home/dokku/ENV ']'
remote: + [[ ! -s /home/dokku/ENV ]]
remote: + KEY=DOKKU_SKIP_DEFAULT_CHECKS
remote: + sed -e 's/^'\''//' -e 's/'\''$//'
remote: + cut -d= -f2-
remote: + grep '^export DOKKU_SKIP_DEFAULT_CHECKS='
remote: + grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV
remote: + exit_code=1
remote: + set -e
remote: + [[ 1 -eq 10 ]]
remote: + implemented=1
remote: + [[ 1 -ne 0 ]]
remote: + exit 1
remote: ++ true
remote: + DOKKU_GLOBAL_SKIP_DEFAULT_CHECKS=
remote: + DOKKU_SKIP_ALL_CHECKS=
remote: + DOKKU_SKIP_DEFAULT_CHECKS=
remote: + [[ '' = \t\r\u\e ]]
remote: + trap kill_new INT TERM EXIT
remote: + dokku_log_info1 'Running pre-flight checks'
remote: + echo '-----> Running pre-flight checks'
remote: + pluginhook check-deploy youtube 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72 web 5000 172.17.0.70
remote: -----> Running pre-flight checks
remote: ++ dirname /var/lib/dokku/plugins/20_events/check-deploy
remote: + source /var/lib/dokku/plugins/20_events/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ dirname /var/lib/dokku/plugins/checks/check-deploy
remote: + source /var/lib/dokku/plugins/checks/../common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + APP=youtube
remote: + DOKKU_APP_CONTAINER_ID=49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + DOKKU_APP_CONTAINER_TYPE=web
remote: + DOKKU_APP_LISTEN_PORT=5000
remote: + DOKKU_APP_LISTEN_IP=172.17.0.70
remote: + [[ -z 5000 ]]
remote: + [[ -z 172.17.0.70 ]]
remote: + [[ -z 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72 ]]
remote: + [[ -f /home/dokku/ENV ]]
remote: + source /home/dokku/ENV
remote: ++ export CURL_CONNECT_TIMEOUT=5
remote: ++ CURL_CONNECT_TIMEOUT=5
remote: ++ export CURL_TIMEOUT=30
remote: ++ CURL_TIMEOUT=30
remote: + [[ -f /home/dokku/youtube/ENV ]]
remote: + source /home/dokku/youtube/ENV
remote: + WAIT=5
remote: + TIMEOUT=30
remote: + ATTEMPTS=5
remote: ++ mktemp -d /tmp/CHECKS.XXXXX
remote: + TMPDIR=/tmp/CHECKS.8sSxG
remote: + docker cp 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72:/app/CHECKS /tmp/CHECKS.8sSxG
remote: + true
remote: + FILENAME=/tmp/CHECKS.8sSxG/CHECKS
remote: + trap cleanup EXIT
remote: + [[ ! -s /tmp/CHECKS.8sSxG/CHECKS ]]
remote: + [[ '' = \t\r\u\e ]]
remote: + dokku_log_verbose 'For more efficient zero downtime deployments, create a file CHECKS.'
remote: + echo ' For more efficient zero downtime deployments, create a file CHECKS.'
remote: + dokku_log_verbose 'See http://progrium.viewdocs.io/dokku/checks-examples.md for examples'
remote: + echo ' See http://progrium.viewdocs.io/dokku/checks-examples.md for examples'
remote: + dokku_log_verbose 'CHECKS file not found in container: Running simple container check...'
remote: + echo ' CHECKS file not found in container: Running simple container check...'
remote: + rm -rf /tmp/CHECKS.8sSxG
remote:  For more efficient zero downtime deployments, create a file CHECKS.
remote:  See http://progrium.viewdocs.io/dokku/checks-examples.md for examples
remote:  CHECKS file not found in container: Running simple container check...
remote: + DOKKU_DEFAULT_CHECKS_WAIT=10
remote: + dokku_log_info1 'Waiting for 10 seconds ...'
remote: + echo '-----> Waiting for 10 seconds ...'
remote: + sleep 10
remote: -----> Waiting for 10 seconds ...
remote: + is_container_running 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + local CID=49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: ++ docker inspect -f '{{.State.Running}}' 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + local CONTAINER_STATUS=false
remote: + [[ false == \t\r\u\e ]]
remote: + return 1
remote: + dokku_log_fail 'App container failed to start!!'
remote: + echo 'App container failed to start!!'
remote: App container failed to start!!
remote: + exit 1
remote: + cleanup
remote: + rm -rf /tmp/CHECKS.8sSxG
remote: + dokku_log_info2_quiet 'youtube container output:'
remote: + [[ -z '' ]]
remote: + echo '=====> youtube container output:'
remote: + dokku_container_log_verbose_quiet 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + CID=49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + shift
remote: + OIFS='
remote: '
remote: + IFS='
remote: '
remote: =====> youtube container output:
remote: ++ docker logs 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)'
remote: + [[ -z '' ]]
remote: + echo ' Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'Recommending WEB_CONCURRENCY=1'
remote: + [[ -z '' ]]
remote: + echo ' Recommending WEB_CONCURRENCY=1'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! Linux 3.13.0-57-generic'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! Linux 3.13.0-57-generic'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! node v0.12.7'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! node v0.12.7'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! npm v2.11.3'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! npm v2.11.3'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! missing script: start'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! missing script: start'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! '
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! '
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! If you need help, you may report this error at:'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! If you need help, you may report this error at:'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! <https://github.com/npm/npm/issues>'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! <https://github.com/npm/npm/issues>'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! Please include the following file with any support request:'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! Please include the following file with any support request:'
remote: + for line in '$(docker logs $CID 2>&1)'
remote: + dokku_log_verbose_quiet 'npm ERR! /app/npm-debug.log'
remote: + [[ -z '' ]]
remote: + echo ' npm ERR! /app/npm-debug.log'
remote: + IFS='
remote: '
remote: + dokku_log_info2_quiet 'end youtube container output'
remote: + [[ -z '' ]]
remote: + echo '=====> end youtube container output'
remote:  Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
remote:  Recommending WEB_CONCURRENCY=1
remote:  npm ERR! Linux 3.13.0-57-generic
remote:  npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
remote:  npm ERR! node v0.12.7
remote:  npm ERR! npm v2.11.3
remote:  npm ERR! missing script: start
remote:  npm ERR!
remote:  npm ERR! If you need help, you may report this error at:
remote:  npm ERR! <https://github.com/npm/npm/issues>
remote:  npm ERR! Please include the following file with any support request:
remote:  npm ERR! /app/npm-debug.log
remote: =====> end youtube container output
remote: + kill_new
remote: + docker inspect 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + docker stop 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + docker kill 49999132c17b03bc22ced81106404e083b7899f8f3023db9e92498a7d4fc6f72
remote: + trap - INT TERM EXIT
remote: + kill -9 21136
remote: /usr/local/bin/dokku: line 52: 21136 Killed dokku deploy "$APP"
remote: + exit_code=137
remote: + set -e
remote: + [[ 137 -eq 10 ]]
remote: + implemented=1
remote: + [[ 137 -ne 0 ]]
remote: + exit 137
remote: + exit_code=137
remote: + set -e
remote: + [[ 137 -eq 10 ]]
remote: + implemented=1
remote: + [[ 137 -ne 0 ]]
remote: + exit 137
remote: + exit_code=137
remote: + set -e
remote: + [[ 137 -eq 10 ]]
remote: + implemented=1
remote: + [[ 137 -ne 0 ]]
remote: + exit 137
+ 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 ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands
+ source /var/lib/dokku/plugins/nginx-vhosts/../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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/ps/commands git-receive-pack ''\''youtube'\'''
++ dirname /var/lib/dokku/plugins/ps/commands
+ source /var/lib/dokku/plugins/ps/../common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/ps/commands
+ source /var/lib/dokku/plugins/ps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+++ dirname /var/lib/dokku/plugins/ps/commands
++ source /var/lib/dokku/plugins/ps/../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_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/shell/commands git-receive-pack ''\''youtube'\'''
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ exit 0
To [email protected]:youtube
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:youtube'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment