# A file does not exist error occurred during database backup

**URL:** https://meta.discourse.org/t/a-file-does-not-exist-error-occurred-during-database-backup/373471
**Category:** Support
**Tags:** backups
**Created:** [July 9, 2025, 2:08am UTC](https://meta.discourse.org/t/a-file-does-not-exist-error-occurred-during-database-backup/373471 "2025-07-09T02:08:32Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![jlcoo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlcoo/32/386427_2.png) [@jlcoo](https://meta.discourse.org/u/jlcoo)
#### Post date: [July 9, 2025, 2:08am UTC](https://meta.discourse.org/t/a-file-does-not-exist-error-occurred-during-database-backup/373471/1 "2025-07-09T02:08:32Z")

</div>

When the administrator manually backs up, the error “EXCEPTION: No such file or directory @ rb\_io\_flush\_raw - ” appears, but I don’t know why this exception occurs. Can experts from Discourse help me?

```plaintext
[2025-07-09 01:37:48] 'jl-brother1' has started the backup!
[2025-07-09 01:37:48] Marking backup as running...
[2025-07-09 01:37:48] Making sure '/var/www/discourse/tmp/backups/default/2025-07-09-013748' exists...
[2025-07-09 01:37:48] Making sure '/var/www/discourse/public/backups/default' exists...
[2025-07-09 01:37:48] Updating metadata...
[2025-07-09 01:37:48] Dumping the public schema of the database...
[2025-07-09 01:37:48] EXCEPTION: No such file or directory @ rb_io_flush_raw - <STDOUT>
[2025-07-09 01:37:48] /var/www/discourse/lib/backup_restore/backuper.rb:160:in `popen'
/var/www/discourse/lib/backup_restore/backuper.rb:160:in `dump_public_schema'
/var/www/discourse/lib/backup_restore/backuper.rb:36:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:9:in `backup'
/var/www/discourse/script/spawn_backup_restore.rb:31:in `block in <main>'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
[2025-07-09 01:37:48] Deleting old backups...
[2025-07-09 01:37:48] Cleaning stuff up...
[2025-07-09 01:37:48] Removing '.tar' leftovers...
[2025-07-09 01:37:48] Marking backup as finished...
[2025-07-09 01:37:48] Notifying 'jl-brother1' of the end of the backup...
[2025-07-09 01:37:53] Finished!

```

---

_[View the full topic](https://meta.discourse.org/t/a-file-does-not-exist-error-occurred-during-database-backup/373471)._
