Skip to content

Backup with native phabricator command #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexkorotysh opened this issue Feb 10, 2021 · 1 comment
Open

Backup with native phabricator command #39

alexkorotysh opened this issue Feb 10, 2021 · 1 comment

Comments

@alexkorotysh
Copy link

When I try to create a backup with ./bin/storage dump I'd had an error with mysqldump.

docker exec -ti phabricator_phabricator_1 bash -c './phabricator/bin/storage dump --compress --output /tmp/backup.sql.gz'
sh: 1: mysqldump: not found

[2021-02-10 19:37:55] EXCEPTION: (CommandException) Command failed with error #127!
COMMAND
mysqldump -p'********' --hex-blob --single-transaction --default-character-set utf8mb4 -u root -h phabricator_database_1 --max-allowed-packet 1G -- phabricator_almanac almanac_binding

STDOUT
(empty)

STDERR
sh: 1: mysqldump: not found
at [/src/future/exec/ExecFuture.php:421]
arcanist(), phabricator()
#0 ExecFuture::raiseResultError(array) called at [/src/future/exec/ExecFuture.php:325]
#1 ExecFuture::resolvex() called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php:320]
#2 PhabricatorStorageManagementDumpWorkflow::didExecute(PhutilArgumentParser) called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:107]
#3 PhabricatorStorageManagementWorkflow::execute(PhutilArgumentParser) called at [/src/parser/argument/PhutilArgumentParser.php:492]
#4 PhutilArgumentParser::parseWorkflowsFull(array) called at [/src/parser/argument/PhutilArgumentParser.php:377]
#5 PhutilArgumentParser::parseWorkflows(array) called at [/scripts/sql/manage_storage.php:249]

Could you please add to Dockerfile mysql-client?

@alexkorotysh
Copy link
Author

mariadb-client is available in docker image
apt install mariadb-client -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant