Skip to content
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

Backup of postgres fails, but mysql works #368

Closed
tsawler opened this issue Feb 4, 2017 · 1 comment
Closed

Backup of postgres fails, but mysql works #368

tsawler opened this issue Feb 4, 2017 · 1 comment

Comments

@tsawler
Copy link

tsawler commented Feb 4, 2017

I'm using laravel-backup 4.4.5. Running php artisan backup:run fails on Laravel 5.3.30 when postgres is backend db, but works when mysql is backend db. Here is a partial stack trace:

Backup failed because The dump process failed with exitcode 1 : General error : pg_dump: [archiver] could not open output file "/home/httpd/nbtap.ca/storage/laravel-backup-temporary/db-dumps/nbtap.sql": No such file or directory
.
#0 /home/httpd/nbtap.ca/vendor/spatie/db-dumper/src/DbDumper.php(222): Spatie\DbDumper\Exceptions\DumpFailed::processDidNotEndSuccessfully(Object(Symfony\Component\Process\Process))
#1 /home/httpd/nbtap.ca/vendor/spatie/db-dumper/src/Databases/PostgreSql.php(55): Spatie\DbDumper\DbDumper->checkIfDumpWasSuccessFul(Object(Symfony\Component\Process\Process), '/home/httpd/nbt...')
#2 /home/httpd/nbtap.ca/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(203): Spatie\DbDumper\Databases\PostgreSql->dumpToFile('/home/httpd/nbt...')
#3 [internal function]: Spatie\Backup\Tasks\Backup\BackupJob->Spatie\Backup\Tasks\Backup{closure}(Object(Spatie\DbDumper\Databases\PostgreSql), 0)
#4 /home/httpd/nbtap.ca/bootstrap/cache/compiled.php(12999): array_map(Object(Closure), Array, Array)
#5 /home/httpd/nbtap.ca/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(206): Illuminate\Support\Collection->map(Object(Closure))
#6 /home/httpd/nbtap.ca/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(136): Spatie\Backup\Tasks\Backup\BackupJob->dumpDatabases('/home/httpd/nbt...')

@freekmurze
Copy link
Member

Could you try upgrading to v4.4.7.

Reopen this issue if the problem persist.

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

2 participants