question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot backup!!! ': No such file or directory

See original GitHub issue
docker exec -it postgres backups

': No such file or directory

docker exec -it postgres backup

': No such file or directory

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bigEvilBananacommented, Mar 22, 2019

Try to change the header of all bash scripts in compose/production/postgres/maintenance to #!/bin/bash. That fixes my problems with backups.

1reaction
demestavcommented, Mar 18, 2019

I think the problem is that you use docker directly instead through docker-compose. You call the exec command on postgres but there is no such container as @foarsitter commented. You should try running it as described in the documentation i.e.

docker-compose -f local.yml exec postgres backup

to create a backup, and

docker-compose -f local.yml exec postgres backups

to view the backups.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"[Errno 2] No such file or directory" when trying to backup a ...
I solved the problem through the command line. If we use a previous format, it has the same response as you had:
Read more >
Cannot Backup - No such file or directory, etc
Hello. It's my client's problem. They are using the 11.7 advanced version. And before, I backed up normally. By the way, from the...
Read more >
Unable to backup GitLab Omnibus - No such file or directory ...
Summary. Performing a backup ( gitlab-backup create ) from an Omnibus installation (Ubuntu Server 20.04) after upgrading to 14.8. 0 fails due ...
Read more >
Postgresql Backup Fail No such file or directory
We try backup PostgreSQL files but while we backup job started after a scan phase some temp files were being deleted by the...
Read more >
Backup failed. Error: No such file or directory (#134) · Issues
Backup fails with error message "Giving up after 1 attempts. Error: No such file or directory". The details box disappears when this message ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found