dokku/dokku-mysql

Cannot upgrade mysql service

ZeCarlosCoutinho opened this issue · 5 comments

When I try to run dokku mysql:upgrade mysql-service, I get a Permission denied on the following line:

echo "$PLUGIN_IMAGE" >"$SERVICE_ROOT/IMAGE"

Running this command as sudo had the same results.
Why would the script not be able to echo to that file?

I'm running version 1.19.0 of the dokku mysql plugin.

Please upgrade the plugin via dokku plugin:update mysql. This was fixed in 1.19.3.

I just updated the plugin and I'm still getting the same error when I try to upgrade the MySQL service.

These are the current file permissions

-rw-r--r-- 1 root root 6 Jan 19 09:54  /service/root/IMAGE

If I run the mysql:upgrade command as sudo, I'd assume it would have permissions to change this file, but it seems that it is not enough.

Maybe I have to stop the service before I upgrade it?

Ah I see what happened. I'll fix it on my end. One moment.

Mind trying another update? It should change the permissions this time.

Thank you very much! It's working now 😄