{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/23","labels_url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/23/comments","events_url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/23/events","html_url":"https://github.com/dokku/dokku-mariadb/issues/23","id":109616911,"number":23,"title":"list function doesn't work","user":{"login":"danielepolencic","id":1130499,"avatar_url":"https://avatars.githubusercontent.com/u/1130499?v=3","gravatar_id":"","url":"https://api.github.com/users/danielepolencic","html_url":"https://github.com/danielepolencic","followers_url":"https://api.github.com/users/danielepolencic/followers","following_url":"https://api.github.com/users/danielepolencic/following{/other_user}","gists_url":"https://api.github.com/users/danielepolencic/gists{/gist_id}","starred_url":"https://api.github.com/users/danielepolencic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielepolencic/subscriptions","organizations_url":"https://api.github.com/users/danielepolencic/orgs","repos_url":"https://api.github.com/users/danielepolencic/repos","events_url":"https://api.github.com/users/danielepolencic/events{/privacy}","received_events_url":"https://api.github.com/users/danielepolencic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dokku/dokku-mariadb/labels/needs%20more%20info","name":"needs more info","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-03T10:46:56Z","updated_at":"2015-10-05T19:49:00Z","closed_at":null,"body":"When I use the `list` command, I see the following errors:\r\n\r\n```shell\r\nalfred@vps206308:~$ dokku mariadb:list\r\n[sudo] password for alfred:\r\n-----> MariaDB services:\r\nError: No such image or container: dokku.mariadb.bootstrap.sh\r\ncat: /var/lib/dokku/services/mariadb/bootstrap.sh/ID: No such file or directory\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\n       bootstrap.sh,  (stopped)\r\nError: No such image or container: dokku.mariadb.cron.sh\r\ncat: /var/lib/dokku/services/mariadb/cron.sh/ID: No such file or directory\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\n       cron.sh,  (stopped)\r\nError: No such image or container: dokku.mariadb.provision.sh\r\ncat: /var/lib/dokku/services/mariadb/provision.sh/ID: No such file or directory\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\njson: cannot unmarshal array into Go value of type types.ContainerJSON\r\n       provision.sh,  (stopped)\r\n       sendy, mariadb:10.0.21 (running)\r\n```\r\n\r\nI have 1 mariadb container running:\r\n\r\n```\r\nalfred@vps206308:~$ sudo docker ps\r\nCONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS               NAMES\r\n4ab5b615900b        dokku/sendy:latest         \"/start web\"             43 hours ago        Up 43 hours                             grave_mccarthy\r\nd2acd3a277de        mariadb:10.0.21            \"/docker-entrypoint.s\"   44 hours ago        Up 44 hours         3306/tcp            dokku.mariadb.sendy\r\n17f09423309b        dokku/placeholder:latest   \"/start web\"             2 days ago          Up 2 days                               evil_bartik\r\n```\r\n\r\nlatest version of dokku (0.4.1) and latest version of the plugin too.\r\n\r\nEDIT: I just noticed that `bootstrap.sh`, `provision.sh` and `cron.sh` are files in the current directory.\r\n\r\n```shell\r\nalfred@vps206308:~$ ls -l\r\ntotal 12\r\n-rw-r--r-- 1 root   root   3094 Sep 30 23:40 bootstrap.sh\r\n-rwxr-xr-x 1 alfred alfred  353 Oct  1 17:16 cron.sh\r\n-rwxr-xr-x 1 alfred alfred 1737 Sep 30 23:40 provision.sh\r\n```"},"comment":{"url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/comments/145647780","html_url":"https://github.com/dokku/dokku-mariadb/issues/23#issuecomment-145647780","issue_url":"https://api.github.com/repos/dokku/dokku-mariadb/issues/23","id":145647780,"user":{"login":"danielepolencic","id":1130499,"avatar_url":"https://avatars.githubusercontent.com/u/1130499?v=3","gravatar_id":"","url":"https://api.github.com/users/danielepolencic","html_url":"https://github.com/danielepolencic","followers_url":"https://api.github.com/users/danielepolencic/followers","following_url":"https://api.github.com/users/danielepolencic/following{/other_user}","gists_url":"https://api.github.com/users/danielepolencic/gists{/gist_id}","starred_url":"https://api.github.com/users/danielepolencic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielepolencic/subscriptions","organizations_url":"https://api.github.com/users/danielepolencic/orgs","repos_url":"https://api.github.com/users/danielepolencic/repos","events_url":"https://api.github.com/users/danielepolencic/events{/privacy}","received_events_url":"https://api.github.com/users/danielepolencic/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T19:49:00Z","updated_at":"2015-10-05T19:49:00Z","body":"```shell\r\nalfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/\r\ntotal 12\r\ndrwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 *\r\ndrwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 gorizianuoto\r\ndrwxr-xr-x 2 dokku dokku 4096 Oct  4 19:02 sendy\r\nalfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/\\*/\r\ntotal 0\r\n-rw-r--r-- 1 dokku dokku 0 Oct  4 19:02 LINKS\r\nalfred@vps206308:~$ ls -l /var/lib/dokku/services/mariadb/\\*/LINKS\r\n-rw-r--r-- 1 dokku dokku 0 Oct  4 19:02 /var/lib/dokku/services/mariadb/*/LINKS\r\n```"}}