Closed nemanjam closed 5 months ago
This works fine on intel machines, so I'm wondering if there is something weird about how the mongodb 5 image works on arm64.
Setting image version doesn't seem to work.
ubuntu@arm1:~$ export MONGO_IMAGE_VERSION="4.0"
ubuntu@arm1:~$ echo $MONGO_IMAGE_VERSION
4.0
ubuntu@arm1:~$ dokku mongo:create mbd
Waiting for container to be ready
MongoServerError: Authentication failed.
ubuntu@arm1:~$ dokku mongo:info mbd
=====> mbd mongo service information
Config dir: /var/lib/dokku/services/mongo/mbd/config
Config options: --storageEngine wiredTiger --auth
Data dir: /var/lib/dokku/services/mongo/mbd/data
Dsn: mongodb://mbd:970edc7faaf5e6c7c30ec115547aee67@dokku-mongo-mbd:27017/mbd
Exposed ports: -
Id: 829af68ab4e80a1ff2bfbf64c9d1a8df37be85aa0988327a0e9343d697336921
Internal ip: 172.17.0.2
Initial network:
Links: -
Post create network:
Post start network:
Service root: /var/lib/dokku/services/mongo/mbd
Status: running
Version: mongo:5.0.14
I wonder if this is an issue with mongo versions lower than 6. I just released a plugin update that allows mongo 6 usage, mind updating your plugin and checking to see if that fixes it?
Same thing with 6.0.4
.
ubuntu@arm1:~$ echo $MONGO_IMAGE_VERSION
ubuntu@arm1:~$ dokku mongo:create mbd
Waiting for container to be ready
MongoServerError: Authentication failed.
ubuntu@arm1:~$ dokku mongo:info mbd
=====> mbd mongo service information
Config dir: /var/lib/dokku/services/mongo/mbd/config
Config options: --storageEngine wiredTiger --auth
Data dir: /var/lib/dokku/services/mongo/mbd/data
Dsn: mongodb://mbd:be27c884b8091c96afda3b8af7356273@dokku-mongo-mbd:27017/mbd
Exposed ports: -
Id: 053c5aa23ef927c3f17a91d6a9fb8612781345435a6ec1ecaf55b23c6e6294c2
Internal ip: 172.17.0.2
Initial network:
Links: -
Post create network:
Post start network:
Service root: /var/lib/dokku/services/mongo/mbd
Status: running
Version: mongo:6.0.4
ubuntu@arm1:~$
ubuntu@arm1:~$ dokku plugin:list
...
mongo 1.33.0 enabled dokku mongo service plugin
Can you run the create command with trace mode on and show the output?
This definitely seems like a weird result for arm64, so I'll need some time to get access to such a host for dokku and see if I can replicate/debug.
I can give you ssh keys of my arm server and Dokku container.
ubuntu@arm1:~$ dokku trace:on
-----> Enabling trace mode
ubuntu@arm1:~$ dokku mongo:create mbd
+ export DOKKU_HOST_ROOT=/home/ubuntu/traefik-proxy/apps/dokku/dokku-data/home/dokku
+ DOKKU_HOST_ROOT=/home/ubuntu/traefik-proxy/apps/dokku/dokku-data/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=/usr/local/bin/docker
+ DOCKER_BIN=/usr/local/bin/docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ 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_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ 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_PID=19134
+ DOKKU_PID=19134
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args mongo:create mbd
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ mongo:create == \-\-\a\p\p ]]
+ [[ mongo:create =~ ^--.* ]]
+ next_index=2
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ mbd == \-\-\a\p\p ]]
+ [[ mbd =~ ^--.* ]]
+ next_index=3
+ [[ -z '' ]]
++ echo -e ''
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ mongo:create =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
+ [[ '' == \t\r\u\e ]]
++ LC_ALL=C
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ unset TMP TMPDIR TEMP TEMPDIR
+ [[ ! mongo:create =~ plugin:* ]]
+ [[ mongo:create != \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ mongo:create != \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
++ id -un
+ export SSH_USER=root
+ SSH_USER=root
+ sudo -u dokku -E -H dokku mongo:create mbd
+ export DOKKU_HOST_ROOT=/home/ubuntu/traefik-proxy/apps/dokku/dokku-data/home/dokku
+ DOKKU_HOST_ROOT=/home/ubuntu/traefik-proxy/apps/dokku/dokku-data/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=/usr/local/bin/docker
+ DOCKER_BIN=/usr/local/bin/docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ 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_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ 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_PID=19149
+ DOKKU_PID=19149
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args mongo:create mbd
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ mongo:create == \-\-\a\p\p ]]
+ [[ mongo:create =~ ^--.* ]]
+ next_index=2
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ mbd == \-\-\a\p\p ]]
+ [[ mbd =~ ^--.* ]]
+ next_index=3
+ [[ -z '' ]]
++ echo -e ''
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ mongo:create =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
+ [[ '' == \t\r\u\e ]]
++ LC_ALL=C
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ mongo:create =~ ^plugin:.* ]]
+ [[ mongo:create == \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ mongo:create == \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
+ [[ -n '' ]]
+ dokku_auth mongo:create mbd
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ export DOKKU_COMMAND=mongo:create
+ DOKKU_COMMAND=mongo:create
++ wc -l
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth
+ local user_auth_count=1
+ [[ 1 == 0 ]]
+ [[ 1 == 1 ]]
+ [[ -f /var/lib/dokku/plugins/enabled/20_events/user-auth ]]
+ return 0
+ case "$1" in
+ execute_dokku_cmd mongo:create mbd
+ declare 'desc=executes dokku sub-commands'
+ local PLUGIN_NAME=mongo:create
+ local PLUGIN_CMD=mongo:create
+ local implemented=0
+ local script
+ argv=("$@")
+ local argv
+ case "$PLUGIN_NAME" in
++ readlink -f /var/lib/dokku/plugins/enabled/mongo
+ [[ /var/lib/dokku/plugins/available/mongo == *core-plugins* ]]
+ [[ -x /var/lib/dokku/plugins/enabled/mongo:create/subcommands/default ]]
+ [[ -x /var/lib/dokku/plugins/enabled/mongo:create/subcommands/mongo:create ]]
+ [[ -x /var/lib/dokku/plugins/enabled/mongo/subcommands/create ]]
+ [[ -n create ]]
+ /var/lib/dokku/plugins/enabled/mongo/subcommands/create mongo:create mbd
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++++ dirname /var/lib/dokku/plugins/enabled/mongo/subcommands/create
+++ cd /var/lib/dokku/plugins/enabled/mongo/subcommands
+++ pwd
++ dirname /var/lib/dokku/plugins/enabled/mongo/subcommands
+ source /var/lib/dokku/plugins/enabled/mongo/functions
++++ dirname /var/lib/dokku/plugins/enabled/mongo/functions
+++ cd /var/lib/dokku/plugins/enabled/mongo
+++ pwd
++ source /var/lib/dokku/plugins/enabled/mongo/config
+++++ dirname /var/lib/dokku/plugins/enabled/mongo/config
++++ cd /var/lib/dokku/plugins/enabled/mongo
++++ pwd
+++ _DIR=/var/lib/dokku/plugins/enabled/mongo
+++ export MONGO_IMAGE=mongo
+++ MONGO_IMAGE=mongo
+++ export MONGO_IMAGE_VERSION=6.0.4
+++ MONGO_IMAGE_VERSION=6.0.4
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo
+++ MONGO_ROOT=/var/lib/dokku/services/mongo
+++ export DOKKU_LIB_HOST_ROOT=/var/lib/dokku
+++ DOKKU_LIB_HOST_ROOT=/var/lib/dokku
+++ export MONGO_HOST_ROOT=/var/lib/dokku/services/mongo
+++ MONGO_HOST_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=()
+++ export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS
+++ export PLUGIN_COMMAND_PREFIX=mongo
+++ PLUGIN_COMMAND_PREFIX=mongo
+++ export PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mongo
+++ PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mongo
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
+++ export PLUGIN_DATA_HOST_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_DATA_HOST_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017)
+++ export PLUGIN_DATASTORE_PORTS
+++ export PLUGIN_DATASTORE_WAIT_PORT=27017
+++ PLUGIN_DATASTORE_WAIT_PORT=27017
+++ export PLUGIN_DEFAULT_ALIAS=MONGO
+++ PLUGIN_DEFAULT_ALIAS=MONGO
+++ export PLUGIN_DISABLE_PULL=
+++ PLUGIN_DISABLE_PULL=
+++ export PLUGIN_DISABLE_PULL_VARIABLE=MONGO_DISABLE_PULL
+++ PLUGIN_DISABLE_PULL_VARIABLE=MONGO_DISABLE_PULL
+++ export PLUGIN_ALT_ALIAS=DOKKU_MONGO
+++ PLUGIN_ALT_ALIAS=DOKKU_MONGO
+++ export PLUGIN_IMAGE=mongo
+++ PLUGIN_IMAGE=mongo
+++ export PLUGIN_IMAGE_VERSION=6.0.4
+++ PLUGIN_IMAGE_VERSION=6.0.4
+++ export PLUGIN_SCHEME=mongodb
+++ PLUGIN_SCHEME=mongodb
+++ export PLUGIN_SERVICE=MongoDB
+++ PLUGIN_SERVICE=MongoDB
+++ export PLUGIN_VARIABLE=MONGO
+++ PLUGIN_VARIABLE=MONGO
+++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+++ export PLUGIN_CONFIG_SUFFIX=config
+++ PLUGIN_CONFIG_SUFFIX=config
+++ [[ -n 1 ]]
+++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+++ export PLUGIN_BUSYBOX_IMAGE=busybox:1.34.1-uclibc
+++ PLUGIN_BUSYBOX_IMAGE=busybox:1.34.1-uclibc
+++ export PLUGIN_AMBASSADOR_IMAGE=dokku/ambassador:0.5.0
+++ PLUGIN_AMBASSADOR_IMAGE=dokku/ambassador:0.5.0
+++ export PLUGIN_S3BACKUP_IMAGE=dokku/s3backup:0.14.0
+++ PLUGIN_S3BACKUP_IMAGE=dokku/s3backup:0.14.0
+++ export PLUGIN_WAIT_IMAGE=dokku/wait:0.6.0
+++ PLUGIN_WAIT_IMAGE=dokku/wait:0.6.0
+++ export 'MONGO_CONFIG_OPTIONS= --storageEngine wiredTiger --auth '
+++ MONGO_CONFIG_OPTIONS=' --storageEngine wiredTiger --auth '
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++++ dirname /var/lib/dokku/plugins/enabled/mongo/functions
+++ cd /var/lib/dokku/plugins/enabled/mongo
+++ pwd
++ source /var/lib/dokku/plugins/enabled/mongo/common-functions
+++++ dirname /var/lib/dokku/plugins/enabled/mongo/common-functions
++++ cd /var/lib/dokku/plugins/enabled/mongo
++++ pwd
+++ source /var/lib/dokku/plugins/enabled/mongo/config
++++++ dirname /var/lib/dokku/plugins/enabled/mongo/config
+++++ cd /var/lib/dokku/plugins/enabled/mongo
+++++ pwd
++++ _DIR=/var/lib/dokku/plugins/enabled/mongo
++++ export MONGO_IMAGE=mongo
++++ MONGO_IMAGE=mongo
++++ export MONGO_IMAGE_VERSION=6.0.4
++++ MONGO_IMAGE_VERSION=6.0.4
++++ export MONGO_ROOT=/var/lib/dokku/services/mongo
++++ MONGO_ROOT=/var/lib/dokku/services/mongo
++++ export DOKKU_LIB_HOST_ROOT=/var/lib/dokku
++++ DOKKU_LIB_HOST_ROOT=/var/lib/dokku
++++ export MONGO_HOST_ROOT=/var/lib/dokku/services/mongo
++++ MONGO_HOST_ROOT=/var/lib/dokku/services/mongo
++++ PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=()
++++ export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS
++++ export PLUGIN_COMMAND_PREFIX=mongo
++++ PLUGIN_COMMAND_PREFIX=mongo
++++ export PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mongo
++++ PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mongo
++++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
++++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
++++ export PLUGIN_DATA_HOST_ROOT=/var/lib/dokku/services/mongo
++++ PLUGIN_DATA_HOST_ROOT=/var/lib/dokku/services/mongo
++++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017)
++++ export PLUGIN_DATASTORE_PORTS
++++ export PLUGIN_DATASTORE_WAIT_PORT=27017
++++ PLUGIN_DATASTORE_WAIT_PORT=27017
++++ export PLUGIN_DEFAULT_ALIAS=MONGO
++++ PLUGIN_DEFAULT_ALIAS=MONGO
++++ export PLUGIN_DISABLE_PULL=
++++ PLUGIN_DISABLE_PULL=
++++ export PLUGIN_DISABLE_PULL_VARIABLE=MONGO_DISABLE_PULL
++++ PLUGIN_DISABLE_PULL_VARIABLE=MONGO_DISABLE_PULL
++++ export PLUGIN_ALT_ALIAS=DOKKU_MONGO
++++ PLUGIN_ALT_ALIAS=DOKKU_MONGO
++++ export PLUGIN_IMAGE=mongo
++++ PLUGIN_IMAGE=mongo
++++ export PLUGIN_IMAGE_VERSION=6.0.4
++++ PLUGIN_IMAGE_VERSION=6.0.4
++++ export PLUGIN_SCHEME=mongodb
++++ PLUGIN_SCHEME=mongodb
++++ export PLUGIN_SERVICE=MongoDB
++++ PLUGIN_SERVICE=MongoDB
++++ export PLUGIN_VARIABLE=MONGO
++++ PLUGIN_VARIABLE=MONGO
++++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins
++++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
++++ export PLUGIN_CONFIG_SUFFIX=config
++++ PLUGIN_CONFIG_SUFFIX=config
++++ [[ -n 1 ]]
++++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
++++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
++++ export PLUGIN_BUSYBOX_IMAGE=busybox:1.34.1-uclibc
++++ PLUGIN_BUSYBOX_IMAGE=busybox:1.34.1-uclibc
++++ export PLUGIN_AMBASSADOR_IMAGE=dokku/ambassador:0.5.0
++++ PLUGIN_AMBASSADOR_IMAGE=dokku/ambassador:0.5.0
++++ export PLUGIN_S3BACKUP_IMAGE=dokku/s3backup:0.14.0
++++ PLUGIN_S3BACKUP_IMAGE=dokku/s3backup:0.14.0
++++ export PLUGIN_WAIT_IMAGE=dokku/wait:0.6.0
++++ PLUGIN_WAIT_IMAGE=dokku/wait:0.6.0
++++ export 'MONGO_CONFIG_OPTIONS= --storageEngine wiredTiger --auth '
++++ MONGO_CONFIG_OPTIONS=' --storageEngine wiredTiger --auth '
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/property-functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+++ source /var/lib/dokku/plugins/available/config/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++++ source /var/lib/dokku/core-plugins/available/common/functions
+++++ set -eo pipefail
+++++ [[ -n 1 ]]
+++++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/core-plugins/available/common/property-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-create-cmd mongo:create mbd
+ declare 'desc=create a MongoDB service'
+ argv=("$@")
+ local cmd=mongo:create argv
+ [[ mongo:create == \m\o\n\g\o\:\c\r\e\a\t\e ]]
+ shift 1
+ CREATE_FLAGS_LIST=("${@:2}")
+ declare SERVICE=mbd CREATE_FLAGS_LIST
+ service_create mbd
+ local SERVICE=mbd
+ is_valid_service_name mbd
+ declare 'desc=validate a service name'
+ declare SERVICE=mbd
+ [[ -z mbd ]]
+ [[ mbd =~ ^[A-Za-z0-9_-]+$ ]]
+ return 0
+ [[ -z mbd ]]
+ [[ ! -d /var/lib/dokku/services/mongo/mbd ]]
+ SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
+ LINKS_FILE=/var/lib/dokku/services/mongo/mbd/LINKS
+ service_parse_args
+ declare 'desc=cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ OPTIND=1
+ getopts na:c:C:d:i:I:m:n:N:p:P:q:R:r:s:S:u: opt
+ shift 0
+ service_image_exists mbd
+ declare 'desc=check if the current image exists'
+ declare SERVICE=mbd PLUGIN_IMAGE=mongo PLUGIN_IMAGE_VERSION=6.0.4
+ local plugin_image=mongo
+ local plugin_image_version=6.0.4
+ [[ -z mongo ]]
+ [[ -z 6.0.4 ]]
+ local IMAGE=mongo:6.0.4
++ /usr/local/bin/docker image ls -q mongo:6.0.4
+ [[ bd066eec4864 == '' ]]
+ return 0
+ plugn trigger service-action pre-create mongo mbd
+ mkdir -p /var/lib/dokku/services/mongo/mbd
+ mkdir -p /var/lib/dokku/services/mongo/mbd/data
+ mkdir -p /var/lib/dokku/services/mongo/mbd/config
+ touch /var/lib/dokku/services/mongo/mbd/LINKS
++ openssl rand -hex 16
+ ROOTPASSWORD=6d787d3bde975114d3cfdeebdac711a4
++ openssl rand -hex 16
+ PASSWORD=6df28897722299b2208e0fcb1cc6ae74
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 6d787d3bde975114d3cfdeebdac711a4
+ echo 6df28897722299b2208e0fcb1cc6ae74
+ chmod 640 /var/lib/dokku/services/mongo/mbd/ROOTPASSWORD /var/lib/dokku/services/mongo/mbd/PASSWORD
+ service_commit_config mbd
+ declare SERVICE=mbd
+ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
+ local CONFIG_VARIABLE=MONGO_CONFIG_OPTIONS
+ local ENV_VARIABLE=MONGO_CUSTOM_ENV
+ custom_env=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo ''
+ config_options=' --storageEngine wiredTiger --auth '
+ [[ -n '' ]]
+ [[ -n --storageEngine wiredTiger --auth ]]
+ echo ' --storageEngine wiredTiger --auth '
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n mongo ]]
+ echo mongo
+ [[ -n 6.0.4 ]]
+ echo 6.0.4
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ write_database_name mbd
+ declare 'desc=write a sanitized database name'
+ declare SERVICE=mbd
+ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
+ echo mbd
+ tr .- _
+ plugn trigger service-action post-create mongo mbd
+ service_create_container mbd
+ local SERVICE=mbd
+ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
+ local SERVICE_HOST_ROOT=/var/lib/dokku/services/mongo/mbd
++ get_service_name mbd
++ declare 'desc=retrieve a docker service label'
++ declare SERVICE=mbd
++ echo dokku.mongo.mbd
+ local SERVICE_NAME=dokku.mongo.mbd
++ service_root_password mbd
++ declare 'desc=fetch the root password for a service'
++ declare SERVICE=mbd
++ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
++ local PASSWORD_FILE=/var/lib/dokku/services/mongo/mbd/ROOTPASSWORD
++ [[ -f /var/lib/dokku/services/mongo/mbd/ROOTPASSWORD ]]
++ cat /var/lib/dokku/services/mongo/mbd/ROOTPASSWORD
+ local ROOTPASSWORD=6d787d3bde975114d3cfdeebdac711a4
++ service_password mbd
++ declare 'desc=fetch the password for a service'
++ declare SERVICE=mbd
++ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
++ local PASSWORD_FILE=/var/lib/dokku/services/mongo/mbd/PASSWORD
++ [[ -f /var/lib/dokku/services/mongo/mbd/PASSWORD ]]
++ cat /var/lib/dokku/services/mongo/mbd/PASSWORD
+ local PASSWORD=6df28897722299b2208e0fcb1cc6ae74
++ get_database_name mbd
++ declare 'desc=retrieve a sanitized database name'
++ declare SERVICE=mbd
++ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
++ [[ ! -f /var/lib/dokku/services/mongo/mbd/DATABASE_NAME ]]
++ cat /var/lib/dokku/services/mongo/mbd/DATABASE_NAME
+ local DATABASE_NAME=mbd
+ [[ -f /var/lib/dokku/services/mongo/mbd/CONFIG_OPTIONS ]]
++ cat /var/lib/dokku/services/mongo/mbd/CONFIG_OPTIONS
+ export 'CONFIG_OPTIONS= --storageEngine wiredTiger --auth '
+ CONFIG_OPTIONS=' --storageEngine wiredTiger --auth '
++ service_dns_hostname mbd
++ declare 'desc=retrieve the alias of a service'
++ declare SERVICE=mbd
+++ get_service_name mbd
+++ declare 'desc=retrieve a docker service label'
+++ declare SERVICE=mbd
+++ echo dokku.mongo.mbd
++ local SERVICE_NAME=dokku.mongo.mbd
++ echo dokku.mongo.mbd
++ tr ._ -
+ local network_alias=dokku-mongo-mbd
+ rm -f /var/lib/dokku/services/mongo/mbd/ID
+ declare -a DOCKER_ARGS
+ DOCKER_ARGS=()
+ DOCKER_ARGS+=("--cidfile=$SERVICE_ROOT/ID")
+ DOCKER_ARGS+=("--env-file=$SERVICE_ROOT/ENV")
+ DOCKER_ARGS+=("--env=MONGO_INITDB_DATABASE=$DATABASE_NAME")
+ DOCKER_ARGS+=("--env=MONGO_INITDB_ROOT_USERNAME=admin")
+ DOCKER_ARGS+=("--env=MONGO_INITDB_ROOT_PASSWORD=$ROOTPASSWORD")
+ DOCKER_ARGS+=("--hostname=$SERVICE_NAME")
+ DOCKER_ARGS+=("--label=dokku.service=$PLUGIN_COMMAND_PREFIX")
+ DOCKER_ARGS+=("--label=dokku=service")
+ DOCKER_ARGS+=("--name=$SERVICE_NAME")
+ DOCKER_ARGS+=("--restart=always")
+ DOCKER_ARGS+=("--volume=$SERVICE_HOST_ROOT/data:/data/db")
+ declare -a LINK_CONTAINER_DOCKER_ARGS
+ LINK_CONTAINER_DOCKER_ARGS=()
+ LINK_CONTAINER_DOCKER_ARGS+=("--rm")
+ LINK_CONTAINER_DOCKER_ARGS+=("--link")
+ LINK_CONTAINER_DOCKER_ARGS+=("$SERVICE_NAME:$network_alias")
+ [[ -f /var/lib/dokku/services/mongo/mbd/SERVICE_MEMORY ]]
+ [[ -n '' ]]
+ [[ -f /var/lib/dokku/services/mongo/mbd/SHM_SIZE ]]
+ [[ -n '' ]]
+ [[ -f /var/lib/dokku/services/mongo/mbd/IMAGE ]]
++ cat /var/lib/dokku/services/mongo/mbd/IMAGE
+ PLUGIN_IMAGE=mongo
+ [[ -f /var/lib/dokku/services/mongo/mbd/IMAGE_VERSION ]]
++ cat /var/lib/dokku/services/mongo/mbd/IMAGE_VERSION
+ PLUGIN_IMAGE_VERSION=6.0.4
++ fn-plugin-property-get mongo mbd initial-network
++ declare 'desc=returns the value for a given property'
++ declare PLUGIN=mongo APP=mbd KEY=initial-network DEFAULT=
++ fn-plugin-property-get-default mongo mbd initial-network ''
++ declare 'desc=returns the value for a given property with a specified default value'
++ declare PLUGIN=mongo APP=mbd KEY=initial-network DEFAULT=
++ /var/lib/dokku/core-plugins/available/common/prop get-with-default mongo mbd initial-network ''
+ local network=
+ [[ -n '' ]]
+ suppress_output /usr/local/bin/docker container create --cidfile=/var/lib/dokku/services/mongo/mbd/ID --env-file=/var/lib/dokku/services/mongo/mbd/ENV --env=MONGO_INITDB_DATABASE=mbd --env=MONGO_INITDB_ROOT_USERNAME=admin --env=MONGO_INITDB_ROOT_PASSWORD=6d787d3bde975114d3cfdeebdac711a4 --hostname=dokku.mongo.mbd --label=dokku.service=mongo --label=dokku=service --name=dokku.mongo.mbd --restart=always --volume=/var/lib/dokku/services/mongo/mbd/data:/data/db mongo:6.0.4 mongod --storageEngine wiredTiger --auth
+ declare 'desc=suppress all output from a given command unless there is an error'
+ local TMP_COMMAND_OUTPUT
++ mktemp /tmp/dokku-19149-suppress_output.XXXXXX
+ TMP_COMMAND_OUTPUT=/tmp/dokku-19149-suppress_output.LNzBzU
+ trap 'rm -rf '\''/tmp/dokku-19149-suppress_output.LNzBzU'\'' >/dev/null' RETURN
+ /usr/local/bin/docker container create --cidfile=/var/lib/dokku/services/mongo/mbd/ID --env-file=/var/lib/dokku/services/mongo/mbd/ENV --env=MONGO_INITDB_DATABASE=mbd --env=MONGO_INITDB_ROOT_USERNAME=admin --env=MONGO_INITDB_ROOT_PASSWORD=6d787d3bde975114d3cfdeebdac711a4 --hostname=dokku.mongo.mbd --label=dokku.service=mongo --label=dokku=service --name=dokku.mongo.mbd --restart=always --volume=/var/lib/dokku/services/mongo/mbd/data:/data/db mongo:6.0.4 mongod --storageEngine wiredTiger --auth
+ return 0
++ rm -rf /tmp/dokku-19149-suppress_output.LNzBzU
++ fn-plugin-property-get mongo mbd post-create-network
++ declare 'desc=returns the value for a given property'
++ declare PLUGIN=mongo APP=mbd KEY=post-create-network DEFAULT=
++ fn-plugin-property-get-default mongo mbd post-create-network ''
++ declare 'desc=returns the value for a given property with a specified default value'
++ declare PLUGIN=mongo APP=mbd KEY=post-create-network DEFAULT=
++ /var/lib/dokku/core-plugins/available/common/prop get-with-default mongo mbd post-create-network ''
+ [[ -n '' ]]
++ cat /var/lib/dokku/services/mongo/mbd/ID
+ suppress_output /usr/local/bin/docker container start 21c251fff0ee1cf5c52d1b61173c9278c401a8f4f7e7d0351650ebe1764aab69
+ declare 'desc=suppress all output from a given command unless there is an error'
+ local TMP_COMMAND_OUTPUT
++ mktemp /tmp/dokku-19149-suppress_output.XXXXXX
+ TMP_COMMAND_OUTPUT=/tmp/dokku-19149-suppress_output.5btLzA
+ trap 'rm -rf '\''/tmp/dokku-19149-suppress_output.5btLzA'\'' >/dev/null' RETURN
+ /usr/local/bin/docker container start 21c251fff0ee1cf5c52d1b61173c9278c401a8f4f7e7d0351650ebe1764aab69
+ return 0
++ rm -rf /tmp/dokku-19149-suppress_output.5btLzA
+ service_port_reconcile_status mbd
+ declare SERVICE=mbd
+ local SERVICE_ROOT=/var/lib/dokku/services/mongo/mbd
+ local PORT_FILE=/var/lib/dokku/services/mongo/mbd/PORT
++ get_service_name mbd
++ declare 'desc=retrieve a docker service label'
++ declare SERVICE=mbd
++ echo dokku.mongo.mbd
+ local SERVICE_NAME=dokku.mongo.mbd
+ local EXPOSED_NAME=dokku.mongo.mbd.ambassador
+ [[ ! -s /var/lib/dokku/services/mongo/mbd/PORT ]]
+ /usr/local/bin/docker container inspect dokku.mongo.mbd.ambassador
+ return
++ fn-plugin-property-get mongo mbd post-start-network
++ declare 'desc=returns the value for a given property'
++ declare PLUGIN=mongo APP=mbd KEY=post-start-network DEFAULT=
++ fn-plugin-property-get-default mongo mbd post-start-network ''
++ declare 'desc=returns the value for a given property with a specified default value'
++ declare PLUGIN=mongo APP=mbd KEY=post-start-network DEFAULT=
++ /var/lib/dokku/core-plugins/available/common/prop get-with-default mongo mbd post-start-network ''
+ [[ -n '' ]]
+ dokku_log_verbose_quiet 'Waiting for container to be ready'
+ declare 'desc=log verbose formatter (with quiet option)'
+ [[ -z '' ]]
+ echo ' Waiting for container to be ready'
Waiting for container to be ready
+ suppress_output /usr/local/bin/docker container run --rm --link dokku.mongo.mbd:dokku-mongo-mbd dokku/wait:0.6.0 -c dokku-mongo-mbd:27017
+ declare 'desc=suppress all output from a given command unless there is an error'
+ local TMP_COMMAND_OUTPUT
++ mktemp /tmp/dokku-19149-suppress_output.XXXXXX
+ TMP_COMMAND_OUTPUT=/tmp/dokku-19149-suppress_output.R8pQ8J
+ trap 'rm -rf '\''/tmp/dokku-19149-suppress_output.R8pQ8J'\'' >/dev/null' RETURN
+ /usr/local/bin/docker container run --rm --link dokku.mongo.mbd:dokku-mongo-mbd dokku/wait:0.6.0 -c dokku-mongo-mbd:27017
+ return 0
++ rm -rf /tmp/dokku-19149-suppress_output.R8pQ8J
+ /usr/local/bin/docker container exec -i dokku.mongo.mbd mongosh -u admin -p 6d787d3bde975114d3cfdeebdac711a4 --authenticationDatabase admin mbd --eval 'if (db.getUser('\''mbd'\'') == null) { db.createUser({user:'\''mbd'\'',pwd:'\''6df28897722299b2208e0fcb1cc6ae74'\'',roles:[{role:'\''readWrite'\'',db:'\''mbd'\''}]}) }'
MongoServerError: Authentication failed.
ubuntu@arm1:~$
Can you post the full logs of the mongodb container?
t={"$date":"2023-03-05T13:08:29.558+00:00"} s=I c=NETWORK id=4915701 ctx=- msg=Initialized wire specification attr={"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}
t={"$date":"2023-03-05T13:08:29.561+00:00"} s=I c=CONTROL id=23285 ctx=main msg=Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
t={"$date":"2023-03-05T13:08:29.561+00:00"} s=I c=NETWORK id=4648601 ctx=main msg=Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize.
t={"$date":"2023-03-05T13:08:29.562+00:00"} s=I c=REPL id=5123008 ctx=main msg=Successfully registered PrimaryOnlyService attr={"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=REPL id=5123008 ctx=main msg=Successfully registered PrimaryOnlyService attr={"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=REPL id=5123008 ctx=main msg=Successfully registered PrimaryOnlyService attr={"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=CONTROL id=5945603 ctx=main msg=Multi threading initialized
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=CONTROL id=4615611 ctx=initandlisten msg=MongoDB starting attr={"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"dokku.mongo.mbd"}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=CONTROL id=23403 ctx=initandlisten msg=Build Info attr={"buildInfo":{"version":"6.0.4","gitVersion":"44ff59461c1353638a71e710f385a566bcd2f547","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"aarch64","target_arch":"aarch64"}}}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=CONTROL id=51765 ctx=initandlisten msg=Operating System attr={"os":{"name":"Ubuntu","version":"22.04"}}
t={"$date":"2023-03-05T13:08:29.563+00:00"} s=I c=CONTROL id=21951 ctx=initandlisten msg=Options set by command line attr={"options":{"net":{"bindIp":"*"},"security":{"authorization":"enabled"},"storage":{"engine":"wiredTiger"}}}
t={"$date":"2023-03-05T13:08:29.564+00:00"} s=I c=STORAGE id=22297 ctx=initandlisten msg=Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem tags=["startupWarnings"]
t={"$date":"2023-03-05T13:08:29.565+00:00"} s=I c=STORAGE id=22315 ctx=initandlisten msg=Opening WiredTiger attr={"config":"create,cache_size=5458M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}
t={"$date":"2023-03-05T13:08:30.625+00:00"} s=I c=STORAGE id=4795906 ctx=initandlisten msg=WiredTiger opened attr={"durationMillis":1060}
t={"$date":"2023-03-05T13:08:30.625+00:00"} s=I c=RECOVERY id=23987 ctx=initandlisten msg=WiredTiger recoveryTimestamp attr={"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}
t={"$date":"2023-03-05T13:08:30.637+00:00"} s=W c=CONTROL id=5123300 ctx=initandlisten msg=vm.max_map_count is too low attr={"currentValue":65530,"recommendedMinimum":1677720,"maxConns":838860} tags=["startupWarnings"]
t={"$date":"2023-03-05T13:08:30.640+00:00"} s=I c=NETWORK id=4915702 ctx=initandlisten msg=Updated wire specification attr={"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":17},"outgoing":{"minWireVersion":13,"maxWireVersion":17},"isInternalClient":true}}
t={"$date":"2023-03-05T13:08:30.640+00:00"} s=I c=REPL id=5853300 ctx=initandlisten msg=current featureCompatibilityVersion value attr={"featureCompatibilityVersion":"5.0","context":"startup"}
t={"$date":"2023-03-05T13:08:30.640+00:00"} s=I c=STORAGE id=5071100 ctx=initandlisten msg=Clearing temp directory
t={"$date":"2023-03-05T13:08:30.641+00:00"} s=I c=CONTROL id=20536 ctx=initandlisten msg=Flow Control is enabled on this deployment
t={"$date":"2023-03-05T13:08:30.642+00:00"} s=I c=FTDC id=20625 ctx=initandlisten msg=Initializing full-time diagnostic data capture attr={"dataDirectory":"/data/db/diagnostic.data"}
t={"$date":"2023-03-05T13:08:30.646+00:00"} s=I c=REPL id=6015317 ctx=initandlisten msg=Setting new configuration state attr={"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}
t={"$date":"2023-03-05T13:08:30.646+00:00"} s=I c=STORAGE id=22262 ctx=initandlisten msg=Timestamp monitor starting
t={"$date":"2023-03-05T13:08:30.647+00:00"} s=I c=NETWORK id=23015 ctx=listener msg=Listening on attr={"address":"/tmp/mongodb-27017.sock"}
t={"$date":"2023-03-05T13:08:30.647+00:00"} s=I c=NETWORK id=23015 ctx=listener msg=Listening on attr={"address":"0.0.0.0"}
t={"$date":"2023-03-05T13:08:30.648+00:00"} s=I c=NETWORK id=23016 ctx=listener msg=Waiting for connections attr={"port":27017,"ssl":"off"}
t={"$date":"2023-03-05T13:08:31.004+00:00"} s=I c=NETWORK id=22943 ctx=listener msg=Connection accepted attr={"remote":"172.17.0.3:33862","uuid":"1d3cde55-45da-4023-a9a3-8ac7d944bb17","connectionId":1,"connectionCount":1}
t={"$date":"2023-03-05T13:08:31.007+00:00"} s=I c=NETWORK id=22944 ctx=conn1 msg=Connection ended attr={"remote":"172.17.0.3:33862","uuid":"1d3cde55-45da-4023-a9a3-8ac7d944bb17","connectionId":1,"connectionCount":0}
t={"$date":"2023-03-05T13:08:31.789+00:00"} s=I c=NETWORK id=22943 ctx=listener msg=Connection accepted attr={"remote":"127.0.0.1:51410","uuid":"004d7cad-e19e-4ecb-8d22-1d80ed3b29cd","connectionId":2,"connectionCount":1}
t={"$date":"2023-03-05T13:08:31.796+00:00"} s=I c=NETWORK id=51800 ctx=conn2 msg=client metadata attr={"remote":"127.0.0.1:51410","client":"conn2","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"arm64","version":"5.15.0-1029-oracle"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}
t={"$date":"2023-03-05T13:08:31.802+00:00"} s=I c=NETWORK id=22943 ctx=listener msg=Connection accepted attr={"remote":"127.0.0.1:51424","uuid":"cbecd187-8774-4dbd-a534-26774764a335","connectionId":3,"connectionCount":2}
t={"$date":"2023-03-05T13:08:31.805+00:00"} s=I c=NETWORK id=51800 ctx=conn3 msg=client metadata attr={"remote":"127.0.0.1:51424","client":"conn3","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"arm64","version":"5.15.0-1029-oracle"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}
t={"$date":"2023-03-05T13:08:31.813+00:00"} s=I c=ACCESS id=20249 ctx=conn3 msg=Authentication failed attr={"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"admin","authenticationDatabase":"admin","remote":"127.0.0.1:51424","extraInfo":{},"error":"AuthenticationFailed: SCRAM authentication failed, storedKey mismatch"}
t={"$date":"2023-03-05T13:08:31.817+00:00"} s=I c=NETWORK id=22944 ctx=conn2 msg=Connection ended attr={"remote":"127.0.0.1:51410","uuid":"004d7cad-e19e-4ecb-8d22-1d80ed3b29cd","connectionId":2,"connectionCount":1}
t={"$date":"2023-03-05T13:08:31.826+00:00"} s=I c=NETWORK id=22944 ctx=conn3 msg=Connection ended attr={"remote":"127.0.0.1:51424","uuid":"cbecd187-8774-4dbd-a534-26774764a335","connectionId":3,"connectionCount":0}
Okay interesting. This at least doesn't work on arm (not arm64), which is what I'm running on my raspberry pi. It doesn't work there because there is no linux/arm/v7
version of mongo 😂
I got access to oracle cloud, so I might have a bit of time later this week to test it out there.
Is there a chance for this to be resolved, it's blocking the project I intended to do?
There is, but since this is open source and not a paid request, I can only look at it when I have time/energy.
Of note, I haven't been able to provision an OCI Ampere instance, so last night I requested an upgrade to "pay as you go" and am still awaiting verification. I can't really do anything about not having access to a machine that emulates your issue.
I can give you ssh keys from my server and Dokku container. It's demo server with no private data.
@nemanjam run in the same problem today on a x8664 ubuntu machine. In my case the workaround was easy: i had to replace all -
to underscores `` in my mongodb name. So i had to use
dokku mongo:create mern_boilerplate_database
instead of dokku mongo:create mern-boilerplate-database
.
@lebalz useful, will try it, thanks.
@nemanjam run in the same problem today on a x8664 ubuntu machine. In my case the workaround was easy: i had to replace all
-
to underscores `` in my mongodb name. So i had to use
dokku mongo:create mern_boilerplate_database
instead ofdokku mongo:create mern-boilerplate-database
.
ubuntu@arm1:~/traefik-proxy/apps/dokku$ dokku mongo:create mern_boilerplate_database
Waiting for container to be ready
MongoServerError: Authentication failed.
ubuntu@arm1:~/traefik-proxy/apps/dokku$
@nemanjam run in the same problem today on a x8664 ubuntu machine. In my case the workaround was easy: i had to replace all
-
to underscores `in my mongodb name. So i had to use
dokku mongo:create mern_boilerplate_databaseinstead of
dokku mongo:create mern-boilerplate-database`.ubuntu@arm1:~/traefik-proxy/apps/dokku$ dokku mongo:create mern_boilerplate_database Waiting for container to be ready MongoServerError: Authentication failed. ubuntu@arm1:~/traefik-proxy/apps/dokku$
Is the old dokku instance with the old naming still running? Could you try another name for testing?
I don't plan to waste any more time on this.
Description of problem
Fresh Dokku install in Docker container. Just try to create new app and new service. It gives this:
Later I get exact same error when app tries to connect to mongo service.
How reproducible
Steps to Reproduce
Actual Results
Auth error.
Expected Results
Should connect to database. No error output on service creation.
Environment Information
dokku report APP_NAME
outputApp is not needed, it happens on service creation even without any apps.
How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Dokku in Docker container.
Additional information