Closed haggen closed 6 years ago
Here's the trace when I try to unlink the instance:
$ dokku elasticsearch:unlink acervodigitalotm2 acervodigitalotm + export DOKKU_DISTRO ++ . /etc/os-release ++ echo ubuntu + DOKKU_DISTRO=ubuntu + export DOKKU_IMAGE=gliderlabs/herokuish + DOKKU_IMAGE=gliderlabs/herokuish + export DOKKU_LIB_ROOT=/var/lib/dokku + DOKKU_LIB_ROOT=/var/lib/dokku + export PLUGIN_PATH=/var/lib/dokku/plugins + PLUGIN_PATH=/var/lib/dokku/plugins + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled + export DOKKU_API_VERSION=1 + DOKKU_API_VERSION=1 + export DOKKU_NOT_IMPLEMENTED_EXIT=10 + DOKKU_NOT_IMPLEMENTED_EXIT=10 + export DOKKU_VALID_EXIT=0 + DOKKU_VALID_EXIT=0 + export DOKKU_LOGS_DIR=/var/log/dokku + DOKKU_LOGS_DIR=/var/log/dokku + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log + export DOKKU_CONTAINER_LABEL=dokku + DOKKU_CONTAINER_LABEL=dokku + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku + DOKKU_GLOBAL_RUN_ARGS=--label=dokku + source /var/lib/dokku/core-plugins/available/common/functions ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x + parse_args elasticsearch:unlink acervodigitalotm2 acervodigitalotm + declare 'desc=top-level cli arg parser' + local next_index=1 + local skip=false + args=("$@") + local args + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=2 + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=3 + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=4 + return 0 + args=("$@") + skip_arg=false + [[ elasticsearch:unlink =~ ^--.* ]] + has_tty + declare 'desc=return 0 if we have a tty' ++ /usr/bin/tty + [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] + return 0 ++ id -un + [[ arthur != \d\o\k\k\u ]] + [[ ! elasticsearch:unlink =~ plugin:* ]] + [[ ! elasticsearch:unlink == \s\s\h\-\k\e\y\s\:\a\d\d ]] ++ id -un + export SSH_USER=arthur + SSH_USER=arthur + sudo -u dokku -E -H /usr/bin/dokku elasticsearch:unlink acervodigitalotm2 acervodigitalotm + export DOKKU_DISTRO ++ . /etc/os-release ++ echo ubuntu + DOKKU_DISTRO=ubuntu + export DOKKU_IMAGE=gliderlabs/herokuish + DOKKU_IMAGE=gliderlabs/herokuish + export DOKKU_LIB_ROOT=/var/lib/dokku + DOKKU_LIB_ROOT=/var/lib/dokku + export PLUGIN_PATH=/var/lib/dokku/plugins + PLUGIN_PATH=/var/lib/dokku/plugins + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled + export DOKKU_API_VERSION=1 + DOKKU_API_VERSION=1 + export DOKKU_NOT_IMPLEMENTED_EXIT=10 + DOKKU_NOT_IMPLEMENTED_EXIT=10 + export DOKKU_VALID_EXIT=0 + DOKKU_VALID_EXIT=0 + export DOKKU_LOGS_DIR=/var/log/dokku + DOKKU_LOGS_DIR=/var/log/dokku + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log + export DOKKU_CONTAINER_LABEL=dokku + DOKKU_CONTAINER_LABEL=dokku + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku + DOKKU_GLOBAL_RUN_ARGS=--label=dokku + source /var/lib/dokku/core-plugins/available/common/functions ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x + parse_args elasticsearch:unlink acervodigitalotm2 acervodigitalotm + declare 'desc=top-level cli arg parser' + local next_index=1 + local skip=false + args=("$@") + local args + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=2 + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=3 + for arg in '"$@"' + [[ false == \t\r\u\e ]] + case "$arg" in + next_index=4 + return 0 + args=("$@") + skip_arg=false + [[ elasticsearch:unlink =~ ^--.* ]] + has_tty + declare 'desc=return 0 if we have a tty' ++ /usr/bin/tty + [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] + return 0 ++ id -un + [[ dokku != \d\o\k\k\u ]] + [[ elasticsearch:unlink =~ ^plugin:.* ]] + [[ elasticsearch:unlink == \s\s\h\-\k\e\y\s\:\a\d\d ]] + [[ -n '' ]] + dokku_auth elasticsearch:unlink acervodigitalotm2 acervodigitalotm + declare 'desc=calls user-auth plugin trigger' + export SSH_USER=arthur + SSH_USER=arthur + export SSH_NAME=default + SSH_NAME=default + plugn trigger user-auth arthur default elasticsearch:unlink acervodigitalotm2 acervodigitalotm + source /var/lib/dokku/core-plugins/available/common/functions ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x + [[ ! -n '' ]] + source /var/lib/dokku/core-plugins/available/common/functions ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x + [[ elasticsearch:unlink =~ (ssh-keys:add|ssh-keys:remove) ]] + return 0 + case "$1" in + execute_dokku_cmd elasticsearch:unlink acervodigitalotm2 acervodigitalotm + declare 'desc=executes dokku sub-commands' + local PLUGIN_NAME=elasticsearch:unlink + local PLUGIN_CMD=elasticsearch:unlink + local implemented=0 + local script + argv=("$@") + local argv + case "$PLUGIN_NAME" in ++ readlink -f /var/lib/dokku/plugins/enabled/elasticsearch + [[ /var/lib/dokku/plugins/available/elasticsearch == *core-plugins* ]] + [[ -x /var/lib/dokku/plugins/enabled/elasticsearch:unlink/subcommands/default ]] + [[ -x /var/lib/dokku/plugins/enabled/elasticsearch:unlink/subcommands/elasticsearch:unlink ]] + [[ -x /var/lib/dokku/plugins/enabled/elasticsearch/subcommands/unlink ]] + [[ -n unlink ]] + /var/lib/dokku/plugins/enabled/elasticsearch/subcommands/unlink elasticsearch:unlink acervodigitalotm2 acervodigitalotm + source /var/lib/dokku/plugins/enabled/common/functions ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x ++++ dirname /var/lib/dokku/plugins/enabled/elasticsearch/subcommands/unlink +++ cd /var/lib/dokku/plugins/enabled/elasticsearch/subcommands +++ pwd ++ dirname /var/lib/dokku/plugins/enabled/elasticsearch/subcommands + source /var/lib/dokku/plugins/enabled/elasticsearch/functions ++++ dirname /var/lib/dokku/plugins/enabled/elasticsearch/functions +++ cd /var/lib/dokku/plugins/enabled/elasticsearch +++ pwd ++ source /var/lib/dokku/plugins/enabled/elasticsearch/config +++ export ELASTICSEARCH_IMAGE=elasticsearch +++ ELASTICSEARCH_IMAGE=elasticsearch +++ export ELASTICSEARCH_IMAGE_VERSION=2.3.5 +++ ELASTICSEARCH_IMAGE_VERSION=2.3.5 +++ export ELASTICSEARCH_ROOT=/var/lib/dokku/services/elasticsearch +++ ELASTICSEARCH_ROOT=/var/lib/dokku/services/elasticsearch +++ export PLUGIN_COMMAND_PREFIX=elasticsearch +++ PLUGIN_COMMAND_PREFIX=elasticsearch +++ export PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/elasticsearch +++ PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/elasticsearch +++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/elasticsearch +++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/elasticsearch +++ PLUGIN_DATASTORE_PORTS=(9200 9300) +++ export PLUGIN_DATASTORE_PORTS +++ export PLUGIN_DATASTORE_WAIT_PORT=9200 +++ PLUGIN_DATASTORE_WAIT_PORT=9200 +++ export PLUGIN_DEFAULT_ALIAS=ELASTICSEARCH +++ PLUGIN_DEFAULT_ALIAS=ELASTICSEARCH +++ export PLUGIN_ALT_ALIAS=DOKKU_ELASTICSEARCH +++ PLUGIN_ALT_ALIAS=DOKKU_ELASTICSEARCH +++ export PLUGIN_IMAGE=elasticsearch +++ PLUGIN_IMAGE=elasticsearch +++ export PLUGIN_IMAGE_VERSION=2.3.5 +++ PLUGIN_IMAGE_VERSION=2.3.5 +++ export PLUGIN_SCHEME=http +++ PLUGIN_SCHEME=http +++ export PLUGIN_SERVICE=Elasticsearch +++ PLUGIN_SERVICE=Elasticsearch +++ export PLUGIN_VARIABLE=ELASTICSEARCH +++ PLUGIN_VARIABLE=ELASTICSEARCH +++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins +++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins +++ [[ -n 1 ]] +++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled +++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled +++ [[ -d /var/lib/dokku/services/elasticsearch/* ]] ++ set -eo pipefail ++ [[ -n 1 ]] ++ set -x ++++ dirname /var/lib/dokku/plugins/enabled/elasticsearch/functions +++ cd /var/lib/dokku/plugins/enabled/elasticsearch +++ pwd ++ source /var/lib/dokku/plugins/enabled/elasticsearch/common-functions +++ set -eo pipefail +++ [[ -n 1 ]] +++ set -x ++ source /var/lib/dokku/plugins/enabled/common/functions +++ set -eo pipefail +++ [[ -n 1 ]] +++ set -x ++ source /var/lib/dokku/plugins/available/config/functions +++ set -eo pipefail +++ [[ -n 1 ]] +++ set -x +++ source /var/lib/dokku/core-plugins/available/common/functions ++++ set -eo pipefail ++++ [[ -n 1 ]] ++++ set -x ++ [[ -f /var/lib/dokku/plugins/available/docker-options/functions ]] ++ source /var/lib/dokku/plugins/available/docker-options/functions +++ set -eo pipefail +++ [[ -n 1 ]] +++ set -x +++ source /var/lib/dokku/core-plugins/available/common/functions ++++ set -eo pipefail ++++ [[ -n 1 ]] ++++ set -x +++ AVAILABLE_PHASES=(build deploy run) + service-unlink-cmd elasticsearch:unlink acervodigitalotm2 acervodigitalotm + declare 'desc=unlink the Elasticsearch service from the app' + argv=("$@") + local cmd=elasticsearch:unlink argv + [[ elasticsearch:unlink == \e\l\a\s\t\i\c\s\e\a\r\c\h\:\u\n\l\i\n\k ]] + shift 1 + declare SERVICE=acervodigitalotm2 APP=acervodigitalotm + APP=acervodigitalotm + [[ -z acervodigitalotm2 ]] + [[ -z acervodigitalotm ]] + verify_service_name acervodigitalotm2 + declare 'desc=Verifies that a service exists' + declare SERVICE=acervodigitalotm2 + [[ ! -n acervodigitalotm2 ]] + [[ ! -d /var/lib/dokku/services/elasticsearch/acervodigitalotm2 ]] + return 0 + verify_app_name acervodigitalotm + declare 'desc=verify app name format and app existence' + local APP=acervodigitalotm + is_valid_app_name acervodigitalotm + declare 'desc=verify app name format' + local APP=acervodigitalotm + [[ ! -n acervodigitalotm ]] + [[ ! acervodigitalotm =~ ^[a-z].* ]] + return 0 + [[ ! -d /home/dokku/acervodigitalotm ]] + return 0 + service_unlink acervodigitalotm2 acervodigitalotm + declare 'desc=Unlinks an application from a service' + declare SERVICE=acervodigitalotm2 APP=acervodigitalotm + update_plugin_scheme_for_app acervodigitalotm + declare 'desc=Retrieves the updated plugin scheme' + declare APP=acervodigitalotm + local DATABASE_SCHEME ++ config_get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ declare 'desc=get value of given config var' ++ [[ acervodigitalotm == \c\o\n\f\i\g\:\g\e\t ]] ++ set -- config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ config_parse_args config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ declare 'desc=parse config plugin args' ++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT ++ for var in '"$@"' ++ [[ config:get == \-\-\g\l\o\b\a\l ]] ++ [[ config:get == \-\-\n\o\-\r\e\s\t\a\r\t ]] ++ [[ config:get == \-\-\e\x\p\o\r\t ]] ++ [[ config:get == \-\-\s\h\e\l\l ]] ++ for var in '"$@"' ++ [[ acervodigitalotm == \-\-\g\l\o\b\a\l ]] ++ [[ acervodigitalotm == \-\-\n\o\-\r\e\s\t\a\r\t ]] ++ [[ acervodigitalotm == \-\-\e\x\p\o\r\t ]] ++ [[ acervodigitalotm == \-\-\s\h\e\l\l ]] ++ for var in '"$@"' ++ [[ ELASTICSEARCH_DATABASE_SCHEME == \-\-\g\l\o\b\a\l ]] ++ [[ ELASTICSEARCH_DATABASE_SCHEME == \-\-\n\o\-\r\e\s\t\a\r\t ]] ++ [[ ELASTICSEARCH_DATABASE_SCHEME == \-\-\e\x\p\o\r\t ]] ++ [[ ELASTICSEARCH_DATABASE_SCHEME == \-\-\s\h\e\l\l ]] ++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) +++ get_sanitized_config_args config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME +++ local 'desc=return sanitized arguments for config plugin' +++ SANITIZED_ARGS=("$@") +++ local SANITIZED_ARGS +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") +++ echo config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ local SANITIZED_ARGS ++ set -- config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ DOKKU_CONFIG_TYPE=app ++ DOKKU_CONFIG_RESTART=true ++ [[ app == \a\p\p ]] ++ [[ -z acervodigitalotm ]] ++ verify_app_name acervodigitalotm ++ declare 'desc=verify app name format and app existence' ++ local APP=acervodigitalotm ++ is_valid_app_name acervodigitalotm ++ declare 'desc=verify app name format' ++ local APP=acervodigitalotm ++ [[ ! -n acervodigitalotm ]] ++ [[ ! acervodigitalotm =~ ^[a-z].* ]] ++ return 0 ++ [[ ! -d /home/dokku/acervodigitalotm ]] ++ return 0 ++ APP=acervodigitalotm ++ ENV_FILE=/home/dokku/acervodigitalotm/ENV ++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT ++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) +++ get_sanitized_config_args config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME +++ local 'desc=return sanitized arguments for config plugin' +++ SANITIZED_ARGS=("$@") +++ local SANITIZED_ARGS +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") +++ echo config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ local SANITIZED_ARGS ++ set -- config:get acervodigitalotm ELASTICSEARCH_DATABASE_SCHEME ++ [[ -z acervodigitalotm ]] ++ config_create /home/dokku/acervodigitalotm/ENV ++ declare 'desc=create config env file' ++ local ENV_FILE=/home/dokku/acervodigitalotm/ENV ++ [[ -f /home/dokku/acervodigitalotm/ENV ]] ++ [[ ! -s /home/dokku/acervodigitalotm/ENV ]] ++ local KEY=ELASTICSEARCH_DATABASE_SCHEME ++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/acervodigitalotm/ENV ++ cut -d= -f2- ++ sed -e 's/^'\''//' -e 's/'\''$//' ++ grep '^export ELASTICSEARCH_DATABASE_SCHEME=' ++ true + DATABASE_SCHEME= + PLUGIN_SCHEME=http ++ service_url acervodigitalotm2 ++ local SERVICE=acervodigitalotm2 +++ service_alias acervodigitalotm2 +++ declare 'desc=Retrieves the alias of a service' +++ declare SERVICE=acervodigitalotm2 ++++ get_service_name acervodigitalotm2 ++++ declare 'desc=Retrieves a docker service label' ++++ declare SERVICE=acervodigitalotm2 ++++ echo dokku.elasticsearch.acervodigitalotm2 +++ local SERVICE_NAME=dokku.elasticsearch.acervodigitalotm2 +++ echo dokku.elasticsearch.acervodigitalotm2 +++ tr ._ - ++ local SERVICE_ALIAS=dokku-elasticsearch-acervodigitalotm2 ++ echo http://dokku-elasticsearch-acervodigitalotm2:9200 + local SERVICE_URL=http://dokku-elasticsearch-acervodigitalotm2:9200 ++ get_service_name acervodigitalotm2 ++ declare 'desc=Retrieves a docker service label' ++ declare SERVICE=acervodigitalotm2 ++ echo dokku.elasticsearch.acervodigitalotm2 + local SERVICE_NAME=dokku.elasticsearch.acervodigitalotm2 ++ config_all acervodigitalotm ++ declare 'desc=print or export config vars' ++ [[ acervodigitalotm == \c\o\n\f\i\g ]] ++ set -- config acervodigitalotm ++ config_parse_args config acervodigitalotm ++ declare 'desc=parse config plugin args' ++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT ++ for var in '"$@"' ++ [[ config == \-\-\g\l\o\b\a\l ]] ++ [[ config == \-\-\n\o\-\r\e\s\t\a\r\t ]] ++ [[ config == \-\-\e\x\p\o\r\t ]] ++ [[ config == \-\-\s\h\e\l\l ]] ++ for var in '"$@"' ++ [[ acervodigitalotm == \-\-\g\l\o\b\a\l ]] ++ [[ acervodigitalotm == \-\-\n\o\-\r\e\s\t\a\r\t ]] ++ [[ acervodigitalotm == \-\-\e\x\p\o\r\t ]] ++ [[ acervodigitalotm == \-\-\s\h\e\l\l ]] ++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) +++ get_sanitized_config_args config acervodigitalotm +++ local 'desc=return sanitized arguments for config plugin' +++ SANITIZED_ARGS=("$@") +++ local SANITIZED_ARGS +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") +++ echo config acervodigitalotm ++ local SANITIZED_ARGS ++ set -- config acervodigitalotm ++ DOKKU_CONFIG_TYPE=app ++ DOKKU_CONFIG_RESTART=true ++ [[ app == \a\p\p ]] ++ [[ -z acervodigitalotm ]] ++ verify_app_name acervodigitalotm ++ declare 'desc=verify app name format and app existence' ++ local APP=acervodigitalotm ++ is_valid_app_name acervodigitalotm ++ declare 'desc=verify app name format' ++ local APP=acervodigitalotm ++ [[ ! -n acervodigitalotm ]] ++ [[ ! acervodigitalotm =~ ^[a-z].* ]] ++ return 0 ++ [[ ! -d /home/dokku/acervodigitalotm ]] ++ return 0 ++ APP=acervodigitalotm ++ ENV_FILE=/home/dokku/acervodigitalotm/ENV ++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT ++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) +++ get_sanitized_config_args config acervodigitalotm +++ local 'desc=return sanitized arguments for config plugin' +++ SANITIZED_ARGS=("$@") +++ local SANITIZED_ARGS +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") +++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") +++ echo config acervodigitalotm ++ local SANITIZED_ARGS ++ set -- config acervodigitalotm ++ config_create /home/dokku/acervodigitalotm/ENV ++ declare 'desc=create config env file' ++ local ENV_FILE=/home/dokku/acervodigitalotm/ENV ++ [[ -f /home/dokku/acervodigitalotm/ENV ]] ++ [[ -n '' ]] ++ [[ -n acervodigitalotm ]] ++ local DOKKU_CONFIG_TYPE=acervodigitalotm ++ [[ ! -s /home/dokku/acervodigitalotm/ENV ]] +++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/acervodigitalotm/ENV +++ cut '-d ' -f2- ++ local 'VARS=DOKKU_APP_TYPE='\''dockerfile'\'' DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\'' DOKKU_DOCKERFILE_PORTS='\''5000'\''' ++ [[ -n '' ]] ++ dokku_log_info2_quiet 'acervodigitalotm config vars' ++ declare 'desc=log info2 formatter (with quiet option)' ++ [[ -z '' ]] ++ echo '=====> acervodigitalotm config vars' ++ config_styled_hash 'DOKKU_APP_TYPE='\''dockerfile'\'' DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\'' DOKKU_DOCKERFILE_PORTS='\''5000'\''' ++ declare 'desc=internal config hash' ++ local 'vars=DOKKU_APP_TYPE='\''dockerfile'\'' DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\'' DOKKU_DOCKERFILE_PORTS='\''5000'\''' ++ local prefix= ++ local longest= ++ read -r word +++ echo 'DOKKU_APP_TYPE='\''dockerfile'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_APP_TYPE ++ [[ 14 -gt 0 ]] ++ local longest=DOKKU_APP_TYPE ++ read -r word +++ echo 'DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_DOCKERFILE_CMD ++ [[ 20 -gt 14 ]] ++ local longest=DOKKU_DOCKERFILE_CMD ++ read -r word +++ echo 'DOKKU_DOCKERFILE_PORTS='\''5000'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_DOCKERFILE_PORTS ++ [[ 22 -gt 20 ]] ++ local longest=DOKKU_DOCKERFILE_PORTS ++ read -r word ++ read -r word +++ echo 'DOKKU_APP_TYPE='\''dockerfile'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_APP_TYPE +++ echo 'DOKKU_APP_TYPE='\''dockerfile'\''' +++ cut -d= -f2- +++ sed -e 's/^'\''//' -e 's/'\''$//' -e 's/$$//g' ++ local VALUE=dockerfile ++ local num_zeros=8 ++ local 'zeros= ' ++ [[ 8 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=7 ++ [[ 7 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=6 ++ [[ 6 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=5 ++ [[ 5 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=4 ++ [[ 4 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=3 ++ [[ 3 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=2 ++ [[ 2 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=1 ++ [[ 1 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=0 ++ [[ 0 -gt 0 ]] ++ echo 'DOKKU_APP_TYPE: dockerfile' ++ read -r word +++ echo 'DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_DOCKERFILE_CMD +++ echo 'DOKKU_DOCKERFILE_CMD='\''CMD ["foreman", "start"]'\''' +++ cut -d= -f2- +++ sed -e 's/^'\''//' -e 's/'\''$//' -e 's/$$//g' ++ local 'VALUE=CMD ["foreman", "start"]' ++ local num_zeros=2 ++ local 'zeros= ' ++ [[ 2 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=1 ++ [[ 1 -gt 0 ]] ++ local 'zeros= ' ++ local num_zeros=0 ++ [[ 0 -gt 0 ]] ++ echo 'DOKKU_DOCKERFILE_CMD: CMD ["foreman", "start"]' ++ read -r word +++ echo 'DOKKU_DOCKERFILE_PORTS='\''5000'\''' +++ cut -d= -f1 ++ local KEY=DOKKU_DOCKERFILE_PORTS +++ echo 'DOKKU_DOCKERFILE_PORTS='\''5000'\''' +++ cut -d= -f2- +++ sed -e 's/^'\''//' -e 's/'\''$//' -e 's/$$//g' ++ local VALUE=5000 ++ local num_zeros=0 ++ local 'zeros= ' ++ [[ 0 -gt 0 ]] ++ echo 'DOKKU_DOCKERFILE_PORTS: 5000' ++ read -r word + local 'EXISTING_CONFIG======> acervodigitalotm config vars DOKKU_APP_TYPE: dockerfile DOKKU_DOCKERFILE_CMD: CMD ["foreman", "start"] DOKKU_DOCKERFILE_PORTS: 5000' ++ service_alias acervodigitalotm2 ++ declare 'desc=Retrieves the alias of a service' ++ declare SERVICE=acervodigitalotm2 +++ get_service_name acervodigitalotm2 +++ declare 'desc=Retrieves a docker service label' +++ declare SERVICE=acervodigitalotm2 +++ echo dokku.elasticsearch.acervodigitalotm2 ++ local SERVICE_NAME=dokku.elasticsearch.acervodigitalotm2 ++ echo dokku.elasticsearch.acervodigitalotm2 ++ tr ._ - + local SERVICE_ALIAS=dokku-elasticsearch-acervodigitalotm2 + LINK=($(echo "$EXISTING_CONFIG" | grep "$SERVICE_URL" | cut -d: -f1)) ++ echo '=====> acervodigitalotm config vars DOKKU_APP_TYPE: dockerfile DOKKU_DOCKERFILE_CMD: CMD ["foreman", "start"] DOKKU_DOCKERFILE_PORTS: 5000' ++ cut -d: -f1 ++ grep http://dokku-elasticsearch-acervodigitalotm2:9200 + local LINK + [[ -z '' ]] + dokku_log_fail 'Not linked to app acervodigitalotm' + declare 'desc=log fail formatter' + echo 'Not linked to app acervodigitalotm' Not linked to app acervodigitalotm + exit 1
This issue was moved to dokku/dokku-redis#92
Here's the trace when I try to unlink the instance: