Last active
April 13, 2017 17:01
-
-
Save saneef/3b5374d1ca7af84e07032034ca323794 to your computer and use it in GitHub Desktop.
dokku database:backup Failure log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@gbl-dokku-01:~# dokku --trace postgres:backup my-app-name-db my-bucket-name | |
+ 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 postgres:backup my-app-name-db my-bucket-name | |
+ 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 | |
+ [[ postgres:backup =~ ^--.* ]] | |
+ 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 ]] | |
+ [[ postgres:backup =~ ^plugin:.* ]] | |
+ [[ postgres:backup == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
+ [[ -n '' ]] | |
+ dokku_auth postgres:backup my-app-name-db my-bucket-name | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=root | |
+ SSH_USER=root | |
+ export SSH_NAME=default | |
+ SSH_NAME=default | |
+ plugn trigger user-auth root default postgres:backup my-app-name-db my-bucket-name | |
+ 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 | |
+ [[ postgres:backup =~ (ssh-keys:add|ssh-keys:remove) ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd postgres:backup my-app-name-db my-bucket-name | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=postgres:backup | |
+ local PLUGIN_CMD=postgres:backup | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
++ readlink -f /var/lib/dokku/plugins/enabled/postgres | |
+ [[ /var/lib/dokku/plugins/available/postgres == *core-plugins* ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/postgres:backup/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/postgres:backup/subcommands/postgres:backup ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/postgres/subcommands/backup ]] | |
+ /var/lib/dokku/plugins/enabled/postgres/subcommands/backup postgres:backup my-app-name-db my-bucket-name | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++++ dirname /var/lib/dokku/plugins/enabled/postgres/subcommands/backup | |
+++ cd /var/lib/dokku/plugins/enabled/postgres/subcommands | |
+++ pwd | |
++ dirname /var/lib/dokku/plugins/enabled/postgres/subcommands | |
+ source /var/lib/dokku/plugins/enabled/postgres/functions | |
++++ dirname /var/lib/dokku/plugins/enabled/postgres/functions | |
+++ cd /var/lib/dokku/plugins/enabled/postgres | |
+++ pwd | |
++ source /var/lib/dokku/plugins/enabled/postgres/config | |
+++ export POSTGRES_IMAGE=postgres | |
+++ POSTGRES_IMAGE=postgres | |
+++ export POSTGRES_IMAGE_VERSION=9.6.1 | |
+++ POSTGRES_IMAGE_VERSION=9.6.1 | |
+++ export POSTGRES_ROOT=/var/lib/dokku/services/postgres | |
+++ POSTGRES_ROOT=/var/lib/dokku/services/postgres | |
+++ export PLUGIN_COMMAND_PREFIX=postgres | |
+++ PLUGIN_COMMAND_PREFIX=postgres | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/postgres | |
+++ PLUGIN_DATASTORE_PORTS=(5432) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DATASTORE_WAIT_PORT=5432 | |
+++ PLUGIN_DATASTORE_WAIT_PORT=5432 | |
+++ export PLUGIN_DEFAULT_ALIAS=DATABASE | |
+++ PLUGIN_DEFAULT_ALIAS=DATABASE | |
+++ export PLUGIN_ALT_ALIAS=DOKKU_POSTGRES | |
+++ PLUGIN_ALT_ALIAS=DOKKU_POSTGRES | |
+++ export PLUGIN_IMAGE=postgres | |
+++ PLUGIN_IMAGE=postgres | |
+++ export PLUGIN_IMAGE_VERSION=9.6.1 | |
+++ PLUGIN_IMAGE_VERSION=9.6.1 | |
+++ export PLUGIN_SCHEME=postgres | |
+++ PLUGIN_SCHEME=postgres | |
+++ export PLUGIN_SERVICE=Postgres | |
+++ PLUGIN_SERVICE=Postgres | |
+++ export PLUGIN_VARIABLE=POSTGRES | |
+++ PLUGIN_VARIABLE=POSTGRES | |
+++ 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/postgres/* ]] | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++++ dirname /var/lib/dokku/plugins/enabled/postgres/functions | |
+++ cd /var/lib/dokku/plugins/enabled/postgres | |
+++ pwd | |
++ source /var/lib/dokku/plugins/enabled/postgres/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) | |
+ postgres-backup-cmd postgres:backup my-app-name-db my-bucket-name | |
+ declare 'desc=creates a backup of the Postgres service to an existing s3 bucket' | |
+ argv=("$@") | |
+ local cmd=postgres:backup argv | |
+ [[ postgres:backup == \p\o\s\t\g\r\e\s\:\b\a\c\k\u\p ]] | |
+ shift 1 | |
+ declare SERVICE=my-app-name-db BUCKET_NAME=my-bucket-name | |
+ [[ -z my-app-name-db ]] | |
+ [[ -z my-bucket-name ]] | |
+ verify_service_name my-app-name-db | |
+ declare 'desc=Verifies that a service exists' | |
+ declare SERVICE=my-app-name-db | |
+ [[ ! -n my-app-name-db ]] | |
+ [[ ! -d /var/lib/dokku/services/postgres/my-app-name-db ]] | |
+ return 0 | |
+ service_backup my-app-name-db my-bucket-name | |
+ declare 'desc=Creates a backup of a service to an existing s3 bucket' | |
+ declare SERVICE=my-app-name-db BUCKET_NAME=my-bucket-name | |
+ local SERVICE_ROOT=/var/lib/dokku/services/postgres/my-app-name-db | |
+ local AWS_ACCESS_KEY_ID_FILE=/var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_ACCESS_KEY_ID | |
+ local AWS_SECRET_ACCESS_KEY_FILE=/var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_SECRET_ACCESS_KEY | |
+ [[ ! -f /var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_ACCESS_KEY_ID ]] | |
+ [[ ! -f /var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_SECRET_ACCESS_KEY ]] | |
++ mktemp -d | |
+ TMPDIR=/tmp/tmp.JdXQ4S0nbs | |
+ trap 'rm -rf "$TMPDIR" > /dev/null' RETURN INT TERM EXIT | |
+ service_export my-app-name-db | |
+ local SERVICE=my-app-name-db | |
+ local SERVICE_ROOT=/var/lib/dokku/services/postgres/my-app-name-db | |
++ get_service_name my-app-name-db | |
++ declare 'desc=Retrieves a docker service label' | |
++ declare SERVICE=my-app-name-db | |
++ echo dokku.postgres.my-app-name-db | |
+ local SERVICE_NAME=dokku.postgres.my-app-name-db | |
++ get_database_name my-app-name-db | |
++ declare 'desc=Retrieves a sanitized database name' | |
++ declare DATABASE=my-app-name-db | |
++ tr .- _ | |
++ echo my-app-name-db | |
+ local DATABASE_NAME=my_app_name_db | |
++ cat /var/lib/dokku/services/postgres/my-app-name-db/PASSWORD | |
+ local PASSWORD=pwdpwdpwdpwdpwdpwd | |
+ [[ -n /dev/pts/0 ]] | |
+ stty -opost | |
+ docker exec dokku.postgres.my-app-name-db env PGPASSWORD=pwdpwdpwdpwdpwdpwd pg_dump -Fc --no-acl --no-owner -h localhost -U postgres -w my_app_name_db | |
+ status=0 | |
+ [[ -n /dev/pts/0 ]] | |
+ stty opost | |
+ exit 0 | |
++ cat /var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_ACCESS_KEY_ID | |
++ cat /var/lib/dokku/services/postgres/my-app-name-db/backup/AWS_SECRET_ACCESS_KEY | |
+ docker run -e AWS_ACCESS_KEY_ID=accessKeyHere -e AWS_SECRET_ACCESS_KEY=secretKeyHere -e BUCKET_NAME=my-bucket-name -e BACKUP_NAME=postgres-my-app-name-db -v /tmp/tmp.JdXQ4S0nbs:/backup dokkupaas/s3backup:0.5.0-2 | |
/bin/tar: Removing leading `/' from member names | |
gof3r error: Post https://my-bucket-name.s3-us-east-1x-amz-request-id.amazonaws.com/postgres-my-app-name-db-2017-04-13-16-55-53.tgz?uploads=: dial tcp: lookup my-bucket-name.s3-us-east-1x-amz-request-id.amazonaws.com on 8.8.8.8:53: no such host | |
/bin/tar: -: Wrote only 2048 of 10240 bytes | |
/bin/tar: Child returned status 141 | |
/bin/tar: Error is not recoverable: exiting now | |
+ rm -rf /tmp/tmp.JdXQ4S0nbs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment