dokku / dokku-mariadb

a mariadb plugin for dokku
MIT License
75 stars 26 forks source link

list function doesn't work #23

Closed danielepolencic closed 9 years ago

danielepolencic commented 9 years ago

When I use the list command, I see the following errors:

alfred@vps206308:~$ dokku mariadb:list
[sudo] password for alfred:
-----> MariaDB services:
Error: No such image or container: dokku.mariadb.bootstrap.sh
cat: /var/lib/dokku/services/mariadb/bootstrap.sh/ID: No such file or directory
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
       bootstrap.sh,  (stopped)
Error: No such image or container: dokku.mariadb.cron.sh
cat: /var/lib/dokku/services/mariadb/cron.sh/ID: No such file or directory
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
       cron.sh,  (stopped)
Error: No such image or container: dokku.mariadb.provision.sh
cat: /var/lib/dokku/services/mariadb/provision.sh/ID: No such file or directory
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
json: cannot unmarshal array into Go value of type types.ContainerJSON
       provision.sh,  (stopped)
       sendy, mariadb:10.0.21 (running)

I have 1 mariadb container running:

alfred@vps206308:~$ sudo docker ps
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS               NAMES
4ab5b615900b        dokku/sendy:latest         "/start web"             43 hours ago        Up 43 hours                             grave_mccarthy
d2acd3a277de        mariadb:10.0.21            "/docker-entrypoint.s"   44 hours ago        Up 44 hours         3306/tcp            dokku.mariadb.sendy
17f09423309b        dokku/placeholder:latest   "/start web"             2 days ago          Up 2 days                               evil_bartik

latest version of dokku (0.4.1) and latest version of the plugin too.

EDIT: I just noticed that bootstrap.sh, provision.sh and cron.sh are files in the current directory.

alfred@vps206308:~$ ls -l
total 12
-rw-r--r-- 1 root   root   3094 Sep 30 23:40 bootstrap.sh
-rwxr-xr-x 1 alfred alfred  353 Oct  1 17:16 cron.sh
-rwxr-xr-x 1 alfred alfred 1737 Sep 30 23:40 provision.sh
Flink commented 9 years ago

Well it seems that for an unknown reason you have bootstrap.sh, cron.sh and provision.sh files in your /var/lib/dokku/services/mariadb/ directory. This directory should only contain one directory per service created by the mariadb plugin.

danielepolencic commented 9 years ago

that directory doesn't contain any of those files.

alfred@vps206308:~$ ls /var/lib/dokku/services/mariadb/
*  gorizianuoto  sendy

it's my home directory ~ - where I run the dokku command - that contains those files.

Flink commented 9 years ago

Really weird indeed. Do you have other services plugins installed? If that’s the case, are they up to date?

josegonzalez commented 9 years ago

Can you run:

dokku trace on
dokku mariadb:list
dokku trace off

That will show us what the list command is doing.

danielepolencic commented 9 years ago
dokku mariadb:list
+ parse_args mariadb:list
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ mariadb:list =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ alfred != \d\o\k\k\u ]]
+ [[ mariadb:list != plugin:*install* ]]
+ [[ mariadb:list != \p\l\u\g\i\n\:\u\p\d\a\t\e ]]
+ [[ mariadb:list != nginx:*-logs ]]
+ sudo -u dokku -E -H /usr/local/bin/dokku mariadb:list
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args mariadb:list
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ mariadb:list =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n '' ]]
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands mariadb:list
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands mariadb:list
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ source /var/lib/dokku/plugins/available/nginx-vhosts/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/certs/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/domains/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/mariadb/commands mariadb:list
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+ [[ -n 1 ]]
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+ source /var/lib/dokku/plugins/enabled/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/enabled/mariadb/commands
+ source /var/lib/dokku/plugins/enabled/mariadb/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+++ dirname /var/lib/dokku/plugins/enabled/mariadb/commands
++ source /var/lib/dokku/plugins/enabled/mariadb/config
+++ export MARIADB_IMAGE=mariadb
+++ MARIADB_IMAGE=mariadb
+++ export MARIADB_IMAGE_VERSION=10.0.21
+++ MARIADB_IMAGE_VERSION=10.0.21
+++ export MARIADB_ROOT=/var/lib/dokku/services/mariadb
+++ MARIADB_ROOT=/var/lib/dokku/services/mariadb
+++ export PLUGIN_COMMAND_PREFIX=mariadb
+++ PLUGIN_COMMAND_PREFIX=mariadb
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mariadb
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mariadb
+++ PLUGIN_DATASTORE_PORTS=(3306)
+++ export PLUGIN_DATASTORE_PORTS
+++ export PLUGIN_DEFAULT_ALIAS=DATABASE
+++ PLUGIN_DEFAULT_ALIAS=DATABASE
+++ export PLUGIN_ALT_ALIAS=DOKKU_MARIADB
+++ PLUGIN_ALT_ALIAS=DOKKU_MARIADB
+++ export PLUGIN_IMAGE=mariadb
+++ PLUGIN_IMAGE=mariadb
+++ export PLUGIN_IMAGE_VERSION=10.0.21
+++ PLUGIN_IMAGE_VERSION=10.0.21
+++ export PLUGIN_SCHEME=mysql
+++ PLUGIN_SCHEME=mysql
+++ export PLUGIN_SERVICE=MariaDB
+++ PLUGIN_SERVICE=MariaDB
++ dirname /var/lib/dokku/plugins/enabled/mariadb/commands
+ source /var/lib/dokku/plugins/enabled/mariadb/config
++ export MARIADB_IMAGE=mariadb
++ MARIADB_IMAGE=mariadb
++ export MARIADB_IMAGE_VERSION=10.0.21
++ MARIADB_IMAGE_VERSION=10.0.21
++ export MARIADB_ROOT=/var/lib/dokku/services/mariadb
++ MARIADB_ROOT=/var/lib/dokku/services/mariadb
++ export PLUGIN_COMMAND_PREFIX=mariadb
++ PLUGIN_COMMAND_PREFIX=mariadb
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mariadb
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mariadb
++ PLUGIN_DATASTORE_PORTS=(3306)
++ export PLUGIN_DATASTORE_PORTS
++ export PLUGIN_DEFAULT_ALIAS=DATABASE
++ PLUGIN_DEFAULT_ALIAS=DATABASE
++ export PLUGIN_ALT_ALIAS=DOKKU_MARIADB
++ PLUGIN_ALT_ALIAS=DOKKU_MARIADB
++ export PLUGIN_IMAGE=mariadb
++ PLUGIN_IMAGE=mariadb
++ export PLUGIN_IMAGE_VERSION=10.0.21
++ PLUGIN_IMAGE_VERSION=10.0.21
++ export PLUGIN_SCHEME=mysql
++ PLUGIN_SCHEME=mysql
++ export PLUGIN_SERVICE=MariaDB
++ PLUGIN_SERVICE=MariaDB
+ [[ mariadb:list == mariadb:* ]]
+ [[ ! -d /var/lib/dokku/services/mariadb ]]
+ case "$1" in
+ service_list
++ ls /var/lib/dokku/services/mariadb
+ local 'SERVICES=*
gorizianuoto
sendy'
+ [[ -z *
gorizianuoto
sendy ]]
+ dokku_log_info1_quiet 'MariaDB services:'
+ [[ -z '' ]]
+ echo '-----> MariaDB services:'
+ for SERVICE in '$SERVICES'
++ service_version bootstrap.sh
++ local SERVICE=bootstrap.sh
+++ get_service_name bootstrap.sh
+++ local SERVICE=bootstrap.sh
+++ echo dokku.mariadb.bootstrap.sh
++ local SERVICE_NAME=dokku.mariadb.bootstrap.sh
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.bootstrap.sh
Error: No such image or container: dokku.mariadb.bootstrap.sh
++ service_status bootstrap.sh
++ local SERVICE=bootstrap.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/bootstrap.sh
+++ cat /var/lib/dokku/services/mariadb/bootstrap.sh/ID
cat: /var/lib/dokku/services/mariadb/bootstrap.sh/ID: No such file or directory
++ local ID=
++ is_container_status '' Dead
++ local CID=
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' OOMKilled
++ local CID=
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Paused
++ local CID=
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Restarting
++ local CID=
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Running
++ local CID=
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ echo '(stopped)'
++ return 0
++ service_exposed_ports bootstrap.sh
++ local SERVICE=bootstrap.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/bootstrap.sh
++ local PORT_FILE=/var/lib/dokku/services/mariadb/bootstrap.sh/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/bootstrap.sh/PORT ]]
++ return 0
+ dokku_log_verbose 'bootstrap.sh,  (stopped)'
+ echo '       bootstrap.sh,  (stopped)'
+ for SERVICE in '$SERVICES'
++ service_version cron.sh
++ local SERVICE=cron.sh
+++ get_service_name cron.sh
+++ local SERVICE=cron.sh
+++ echo dokku.mariadb.cron.sh
++ local SERVICE_NAME=dokku.mariadb.cron.sh
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.cron.sh
Error: No such image or container: dokku.mariadb.cron.sh
++ service_status cron.sh
++ local SERVICE=cron.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/cron.sh
+++ cat /var/lib/dokku/services/mariadb/cron.sh/ID
cat: /var/lib/dokku/services/mariadb/cron.sh/ID: No such file or directory
++ local ID=
++ is_container_status '' Dead
++ local CID=
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' OOMKilled
++ local CID=
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Paused
++ local CID=
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Restarting
++ local CID=
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Running
++ local CID=
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ echo '(stopped)'
++ return 0
++ service_exposed_ports cron.sh
++ local SERVICE=cron.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/cron.sh
++ local PORT_FILE=/var/lib/dokku/services/mariadb/cron.sh/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/cron.sh/PORT ]]
++ return 0
+ dokku_log_verbose 'cron.sh,  (stopped)'
+ echo '       cron.sh,  (stopped)'
+ for SERVICE in '$SERVICES'
++ service_version list
++ local SERVICE=list
+++ get_service_name list
+++ local SERVICE=list
+++ echo dokku.mariadb.list
++ local SERVICE_NAME=dokku.mariadb.list
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.list
Error: No such image or container: dokku.mariadb.list
++ service_status list
++ local SERVICE=list
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/list
+++ cat /var/lib/dokku/services/mariadb/list/ID
cat: /var/lib/dokku/services/mariadb/list/ID: No such file or directory
++ local ID=
++ is_container_status '' Dead
++ local CID=
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' OOMKilled
++ local CID=
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Paused
++ local CID=
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Restarting
++ local CID=
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Running
++ local CID=
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ echo '(stopped)'
++ return 0
++ service_exposed_ports list
++ local SERVICE=list
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/list
++ local PORT_FILE=/var/lib/dokku/services/mariadb/list/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/list/PORT ]]
++ return 0
+ dokku_log_verbose 'list,  (stopped)'
+ echo '       list,  (stopped)'
+ for SERVICE in '$SERVICES'
++ service_version provision.sh
++ local SERVICE=provision.sh
+++ get_service_name provision.sh
+++ local SERVICE=provision.sh
+++ echo dokku.mariadb.provision.sh
++ local SERVICE_NAME=dokku.mariadb.provision.sh
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.provision.sh
Error: No such image or container: dokku.mariadb.provision.sh
++ service_status provision.sh
++ local SERVICE=provision.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/provision.sh
+++ cat /var/lib/dokku/services/mariadb/provision.sh/ID
cat: /var/lib/dokku/services/mariadb/provision.sh/ID: No such file or directory
++ local ID=
++ is_container_status '' Dead
++ local CID=
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' OOMKilled
++ local CID=
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Paused
++ local CID=
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Restarting
++ local CID=
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ is_container_status '' Running
++ local CID=
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' ''
json: cannot unmarshal array into Go value of type types.ContainerJSON
+++ true
++ local CONTAINER_STATUS=
++ [[ '' == \t\r\u\e ]]
++ return 1
++ echo '(stopped)'
++ return 0
++ service_exposed_ports provision.sh
++ local SERVICE=provision.sh
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/provision.sh
++ local PORT_FILE=/var/lib/dokku/services/mariadb/provision.sh/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/provision.sh/PORT ]]
++ return 0
+ dokku_log_verbose 'provision.sh,  (stopped)'
+ echo '       provision.sh,  (stopped)'
+ for SERVICE in '$SERVICES'
++ service_version gorizianuoto
++ local SERVICE=gorizianuoto
+++ get_service_name gorizianuoto
+++ local SERVICE=gorizianuoto
+++ echo dokku.mariadb.gorizianuoto
++ local SERVICE_NAME=dokku.mariadb.gorizianuoto
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.gorizianuoto
++ service_status gorizianuoto
++ local SERVICE=gorizianuoto
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/gorizianuoto
+++ cat /var/lib/dokku/services/mariadb/gorizianuoto/ID
++ local ID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ is_container_status e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168 Dead
++ local CID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168 OOMKilled
++ local CID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168 Paused
++ local CID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168 Restarting
++ local CID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168 Running
++ local CID=e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' e692a85f3d2dce87699400af8ed3266da6125c51854a8e36577eef6bdcdc0168
++ local CONTAINER_STATUS=true
++ [[ true == \t\r\u\e ]]
++ return 0
++ echo '(running)'
++ return 0
++ service_exposed_ports gorizianuoto
++ local SERVICE=gorizianuoto
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/gorizianuoto
++ local PORT_FILE=/var/lib/dokku/services/mariadb/gorizianuoto/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/gorizianuoto/PORT ]]
++ return 0
+ dokku_log_verbose 'gorizianuoto, mariadb:10.0.21 (running)'
+ echo '       gorizianuoto, mariadb:10.0.21 (running)'
+ for SERVICE in '$SERVICES'
++ service_version sendy
++ local SERVICE=sendy
+++ get_service_name sendy
+++ local SERVICE=sendy
+++ echo dokku.mariadb.sendy
++ local SERVICE_NAME=dokku.mariadb.sendy
++ docker inspect -f '{{.Config.Image}}' dokku.mariadb.sendy
++ service_status sendy
++ local SERVICE=sendy
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/sendy
+++ cat /var/lib/dokku/services/mariadb/sendy/ID
++ local ID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ is_container_status d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783 Dead
++ local CID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local 'TEMPLATE={{.State.Dead}}'
+++ docker inspect -f '{{.State.Dead}}' d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783 OOMKilled
++ local CID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local 'TEMPLATE={{.State.OOMKilled}}'
+++ docker inspect -f '{{.State.OOMKilled}}' d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783 Paused
++ local CID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local 'TEMPLATE={{.State.Paused}}'
+++ docker inspect -f '{{.State.Paused}}' d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783 Restarting
++ local CID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local 'TEMPLATE={{.State.Restarting}}'
+++ docker inspect -f '{{.State.Restarting}}' d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local CONTAINER_STATUS=false
++ [[ false == \t\r\u\e ]]
++ return 1
++ is_container_status d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783 Running
++ local CID=d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local 'TEMPLATE={{.State.Running}}'
+++ docker inspect -f '{{.State.Running}}' d2acd3a277de8eb4385ba127e8bab693293eaa432bf78cb11b8debb147a38783
++ local CONTAINER_STATUS=true
++ [[ true == \t\r\u\e ]]
++ return 0
++ echo '(running)'
++ return 0
++ service_exposed_ports sendy
++ local SERVICE=sendy
++ local SERVICE_ROOT=/var/lib/dokku/services/mariadb/sendy
++ local PORT_FILE=/var/lib/dokku/services/mariadb/sendy/PORT
++ [[ ! -f /var/lib/dokku/services/mariadb/sendy/PORT ]]
++ return 0
+ dokku_log_verbose 'sendy, mariadb:10.0.21 (running)'
+ echo '       sendy, mariadb:10.0.21 (running)'
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/mongo/commands mariadb:list
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+ [[ -n 1 ]]
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+ source /var/lib/dokku/plugins/enabled/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/enabled/mongo/commands
+ source /var/lib/dokku/plugins/enabled/mongo/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+++ dirname /var/lib/dokku/plugins/enabled/mongo/commands
++ source /var/lib/dokku/plugins/enabled/mongo/config
+++ export MONGO_IMAGE=mongo
+++ MONGO_IMAGE=mongo
+++ export MONGO_IMAGE_VERSION=3.0.6
+++ MONGO_IMAGE_VERSION=3.0.6
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo
+++ MONGO_ROOT=/var/lib/dokku/services/mongo
+++ export PLUGIN_COMMAND_PREFIX=mongo
+++ PLUGIN_COMMAND_PREFIX=mongo
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017)
+++ export PLUGIN_DATASTORE_PORTS
+++ export PLUGIN_DEFAULT_ALIAS=MONGO
+++ PLUGIN_DEFAULT_ALIAS=MONGO
+++ export PLUGIN_IMAGE=mongo
+++ PLUGIN_IMAGE=mongo
+++ export PLUGIN_IMAGE_VERSION=3.0.6
+++ PLUGIN_IMAGE_VERSION=3.0.6
+++ export PLUGIN_SCHEME=mongodb
+++ PLUGIN_SCHEME=mongodb
+++ export PLUGIN_SERVICE=MongoDB
+++ PLUGIN_SERVICE=MongoDB
++ dirname /var/lib/dokku/plugins/enabled/mongo/commands
+ source /var/lib/dokku/plugins/enabled/mongo/config
++ export MONGO_IMAGE=mongo
++ MONGO_IMAGE=mongo
++ export MONGO_IMAGE_VERSION=3.0.6
++ MONGO_IMAGE_VERSION=3.0.6
++ export MONGO_ROOT=/var/lib/dokku/services/mongo
++ MONGO_ROOT=/var/lib/dokku/services/mongo
++ export PLUGIN_COMMAND_PREFIX=mongo
++ PLUGIN_COMMAND_PREFIX=mongo
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017)
++ export PLUGIN_DATASTORE_PORTS
++ export PLUGIN_DEFAULT_ALIAS=MONGO
++ PLUGIN_DEFAULT_ALIAS=MONGO
++ export PLUGIN_IMAGE=mongo
++ PLUGIN_IMAGE=mongo
++ export PLUGIN_IMAGE_VERSION=3.0.6
++ PLUGIN_IMAGE_VERSION=3.0.6
++ export PLUGIN_SCHEME=mongodb
++ PLUGIN_SCHEME=mongodb
++ export PLUGIN_SERVICE=MongoDB
++ PLUGIN_SERVICE=MongoDB
+ [[ mariadb:list == mongo:* ]]
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/rabbitmq/commands mariadb:list
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+ [[ -n 1 ]]
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+ source /var/lib/dokku/plugins/enabled/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/enabled/rabbitmq/commands
+ source /var/lib/dokku/plugins/enabled/rabbitmq/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+++ dirname /var/lib/dokku/plugins/enabled/rabbitmq/commands
++ source /var/lib/dokku/plugins/enabled/rabbitmq/config
+++ export RABBITMQ_IMAGE=rabbitmq
+++ RABBITMQ_IMAGE=rabbitmq
+++ export RABBITMQ_IMAGE_VERSION=3.5.4-management
+++ RABBITMQ_IMAGE_VERSION=3.5.4-management
+++ export RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq
+++ RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq
+++ export PLUGIN_COMMAND_PREFIX=rabbitmq
+++ PLUGIN_COMMAND_PREFIX=rabbitmq
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq
+++ PLUGIN_DATASTORE_PORTS=(5672 4369 35197 15672)
+++ export PLUGIN_DATASTORE_PORTS
+++ export PLUGIN_DEFAULT_ALIAS=RABBITMQ
+++ PLUGIN_DEFAULT_ALIAS=RABBITMQ
+++ export PLUGIN_IMAGE=rabbitmq
+++ PLUGIN_IMAGE=rabbitmq
+++ export PLUGIN_IMAGE_VERSION=3.5.4-management
+++ PLUGIN_IMAGE_VERSION=3.5.4-management
+++ export PLUGIN_SCHEME=rabbitmq
+++ PLUGIN_SCHEME=rabbitmq
+++ export PLUGIN_SERVICE=RabbitMQ
+++ PLUGIN_SERVICE=RabbitMQ
++ dirname /var/lib/dokku/plugins/enabled/rabbitmq/commands
+ source /var/lib/dokku/plugins/enabled/rabbitmq/config
++ export RABBITMQ_IMAGE=rabbitmq
++ RABBITMQ_IMAGE=rabbitmq
++ export RABBITMQ_IMAGE_VERSION=3.5.4-management
++ RABBITMQ_IMAGE_VERSION=3.5.4-management
++ export RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq
++ RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq
++ export PLUGIN_COMMAND_PREFIX=rabbitmq
++ PLUGIN_COMMAND_PREFIX=rabbitmq
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq
++ PLUGIN_DATASTORE_PORTS=(5672 4369 35197 15672)
++ export PLUGIN_DATASTORE_PORTS
++ export PLUGIN_DEFAULT_ALIAS=RABBITMQ
++ PLUGIN_DEFAULT_ALIAS=RABBITMQ
++ export PLUGIN_IMAGE=rabbitmq
++ PLUGIN_IMAGE=rabbitmq
++ export PLUGIN_IMAGE_VERSION=3.5.4-management
++ PLUGIN_IMAGE_VERSION=3.5.4-management
++ export PLUGIN_SCHEME=rabbitmq
++ PLUGIN_SCHEME=rabbitmq
++ export PLUGIN_SERVICE=RabbitMQ
++ PLUGIN_SERVICE=RabbitMQ
+ [[ mariadb:list == rabbitmq:* ]]
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/redis/commands mariadb:list
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
+ [[ -n 1 ]]
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
+ source /var/lib/dokku/plugins/enabled/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ dirname /var/lib/dokku/plugins/enabled/redis/commands
+ source /var/lib/dokku/plugins/enabled/redis/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+++ dirname /var/lib/dokku/plugins/enabled/redis/commands
++ source /var/lib/dokku/plugins/enabled/redis/config
+++ export REDIS_IMAGE=redis
+++ REDIS_IMAGE=redis
+++ export REDIS_IMAGE_VERSION=3.0.4
+++ REDIS_IMAGE_VERSION=3.0.4
+++ export REDIS_ROOT=/var/lib/dokku/services/redis
+++ REDIS_ROOT=/var/lib/dokku/services/redis
+++ export PLUGIN_COMMAND_PREFIX=redis
+++ PLUGIN_COMMAND_PREFIX=redis
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/redis
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/redis
+++ PLUGIN_DATASTORE_PORTS=(6379)
+++ export PLUGIN_DATASTORE_PORTS
+++ export PLUGIN_DEFAULT_ALIAS=REDIS
+++ PLUGIN_DEFAULT_ALIAS=REDIS
+++ export PLUGIN_IMAGE=redis
+++ PLUGIN_IMAGE=redis
+++ export PLUGIN_IMAGE_VERSION=3.0.4
+++ PLUGIN_IMAGE_VERSION=3.0.4
+++ export PLUGIN_SCHEME=redis
+++ PLUGIN_SCHEME=redis
+++ export PLUGIN_SERVICE=Redis
+++ PLUGIN_SERVICE=Redis
++ dirname /var/lib/dokku/plugins/enabled/redis/commands
+ source /var/lib/dokku/plugins/enabled/redis/config
++ export REDIS_IMAGE=redis
++ REDIS_IMAGE=redis
++ export REDIS_IMAGE_VERSION=3.0.4
++ REDIS_IMAGE_VERSION=3.0.4
++ export REDIS_ROOT=/var/lib/dokku/services/redis
++ REDIS_ROOT=/var/lib/dokku/services/redis
++ export PLUGIN_COMMAND_PREFIX=redis
++ PLUGIN_COMMAND_PREFIX=redis
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/redis
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/redis
++ PLUGIN_DATASTORE_PORTS=(6379)
++ export PLUGIN_DATASTORE_PORTS
++ export PLUGIN_DEFAULT_ALIAS=REDIS
++ PLUGIN_DEFAULT_ALIAS=REDIS
++ export PLUGIN_IMAGE=redis
++ PLUGIN_IMAGE=redis
++ export PLUGIN_IMAGE_VERSION=3.0.4
++ PLUGIN_IMAGE_VERSION=3.0.4
++ export PLUGIN_SCHEME=redis
++ PLUGIN_SCHEME=redis
++ export PLUGIN_SERVICE=Redis
++ PLUGIN_SERVICE=Redis
+ [[ mariadb:list == redis:* ]]
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/registry/commands mariadb:list
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands mariadb:list
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ exit
josegonzalez commented 9 years ago

What is that * directory in the output of ls /var/lib/dokku/services/mariadb/? It looks like it's being interpreted as a literal path.

danielepolencic commented 9 years ago
alfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/
total 12
drwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 *
drwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 gorizianuoto
drwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 sendy
alfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/\*/
total 0
-rw-r--r-- 1 dokku dokku 0 Oct  4 19:02 LINKS
alfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/\*/LINKS
-rw-r--r-- 1 dokku dokku 0 Oct  4 19:02 /var/lib/dokku/services/mariadb/*/LINKS
josegonzalez commented 9 years ago

I think you created a mariadb service called * and now the service_list internals are like "chawesome, thats a glob". We can definitely tighten the plugin code, but for now I think you should just delete that directory.

Whats in that LINKS file?

danielepolencic commented 9 years ago

empty file. Shall I just delete that * folder?

josegonzalez commented 9 years ago

Yep.

danielepolencic commented 9 years ago
alfred@vps206308:~$ dokku mariadb:list
-----> MariaDB services:
       gorizianuoto, mariadb:10.0.21 (running)
       sendy, mariadb:10.0.21 (running)

not sure how I got in that state. Thanks for helping me out.

shemerey commented 8 years ago

same issue but for postgresl moved here https://github.com/dokku/dokku-postgres/issues/74

josegonzalez commented 8 years ago

Please file a new issue in the other plugins repository.