Permission denied when deleting database
Closed this issue · 3 comments
ubuntu@domU-12-31-39-0A-3A-57:~$ sudo dokku mariadb:delete piwik
rm: cannot remove ‘/var/lib/docker/vfs/dir/23f991bcddde4db2af45a0377a89e0caf4a8d81c44377531754b5aa3a5cc81c1’: Permission denied
when recreating
ubuntu@domU-12-31-39-0A-3A-57:~$ dokku mariadb:create piwik
-----> Reusing mariadb/piwik database
2014/01/19 01:12:50 Error: start: Invalid bind mount '/var/lib/docker/vfs/dir/23f991bcddde4db2af45a0377a89e0caf4a8d81c44377531754b5aa3a5cc81c1:/opt/mysql' : source doesn't exist
I tried logging in as root and exploring the /var/lib/docker/vfs/ directory
root@domU-12-31-39-0A-3A-57:/var/lib/docker/vfs/dir# dokku mariadb:delete piwik
rm: cannot remove ‘/var/lib/docker/vfs/dir/23f991bcddde4db2af45a0377a89e0caf4a8d81c44377531754b5aa3a5cc81c1’: Permission denied
root@domU-12-31-39-0A-3A-57:/var/lib/docker/vfs/dir# ls -1a
.
..
22b99ca6bd55c6e2f55c3dcbbe7653df7a9418411dcfbf0c24ca8e32a84ded8c
31449d1b148f3126936aff0df7148dae7163dad94e820ce827fb6f58813e06ec
4a2df6d46d2d1700b48f4fe31fa0e77e737ead534deb0488dec6f8612de0e629
90a00d3840f530fbf4fd712a9ccc4bc26b6e9a33e7bc66029333ab4f1a3f40a9
bc332be488aa9c08e082086d14873238e4a795d627741f250999a39e1d98f8e2
So it seems the file its looking for doesn't exist?
sudo rm /home/dokku/.mariadb/volume_piwik
I can now recreate it successfully!