A file does not exist error occurred during database backup

AI-generated summary

jlcoo reports an error during manual database backup via the admin interface: ‘EXCEPTION: No such file or directory @ rb_io_flush_raw - ’, with logs showing the backup process starts but fails during schema dump. pfaffman asks if it’s a standard install, if disk space is available, and suggests testing via command line. jlcoo confirms that running discourse backup from the command line succeeds, raising the question of why the web-based admin backup fails despite the same underlying system working in CLI mode. The issue appears isolated to the web interface’s execution context, possibly related to environment, permissions, or I/O handling in the Ruby backup script.

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?

[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!

Is this a standard install? Is your disk full? What happens if you back up from the command line?

thank you very much! I try discourse backup command line which is success, But I don’t know why it’s error on admin’s backup website?