Page MenuHomePhabricator

[Stable] bin/storage dump fails if there's a password set
Closed, ResolvedPublic

Event Timeline

avivey renamed this task from bin/storage dump fails if there's a password set to [Stable] bin/storage dump fails if there's a password set.Oct 7 2017, 9:20 AM

Thanks for the quick response. I'll try the workaround in the morning.

Thanks for the fix on that. I have my nightly backups running again, however I had to switch from

./bin/storage dump | gzip > file.sql.gz


phab/bin/storage dump --output file.sql.gz --compress

if the output file is not specified, the script errors out on line 241 as it is looking for a file but it is set to $null.

Not breaking my flow as I can use the other syntax but figured I'd let you know.

root@vps:~$ phab/bin/storage dump
[2017-10-07 12:49:04] EXCEPTION: (Exception) Failed to open file "" for writing. at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php:241]
arcanist(head=stable, ref.master=8762e3f36715, ref.stable=282b83bcbed4), phabricator(head=stable, ref.master=85011a46d0aa, ref.stable=0361591da0d9, custom=1), phutil(head=stable, ref.master=230c3e161c9a, ref.stable=b395c100c20b), sprint(head=master, ref.master=7a7368cd2162)
  #0 PhabricatorStorageManagementDumpWorkflow::didExecute(PhutilArgumentParser) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:107]
  #1 PhabricatorStorageManagementWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441]
  #2 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333]
  #3 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:249]

We should probably update the documentation to recommend --output and --compress, since the error behavior (e.g., in the event of a full disk) is better.