You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot run mariadb:connect and mariadb:export commands, it says command not found for mysql and mysqldump, respectively.
I checked and both mysql and mysqldump commands are available in the host machine but not in the container - in the service container the names are mariadb and mariadb-dump.
How reproducible
The problem occurs when I execute the following commands:
# dokku mariadb:export myservice
OCI runtime exec failed: exec failed: unable to start container process: exec: "mysqldump": executable file not found in$PATH: unknown
# dokku mariadb:connect myservice
env: ‘mysql’: No such file or directory
Environment Information
00_dokku-standard 0.30.9 enabled dokku core standard plugin
mariadb 1.34.0 enabled dokku mariadb service plugin
How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
dokku#129 was resolved with a pull request which change mysql and mysqldump to the mariadb equivalents. However older versions of the mariadb containers don't have mariadb-dump.
This update addresses this by trying both.
In my older containers `10.1` mariadb-dump doesn't exist, by mariadb and mysqldump do.
This is probably not a common problem as 10.1 is very old. However its probably better to have an non-breaking / backward compatable change.
Description of problem
Cannot run
mariadb:connect
andmariadb:export
commands, it sayscommand not found
formysql
andmysqldump
, respectively.I checked and both
mysql
andmysqldump
commands are available in the host machine but not in the container - in the service container the names aremariadb
andmariadb-dump
.How reproducible
The problem occurs when I execute the following commands:
Environment Information
How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Using Debian repository.
Temporary fix
I've symlinked the executables and it worked:
After this, running
dokku mariadb:export
works but warns:The text was updated successfully, but these errors were encountered: