From 4cd4a2664b8785241207a849d6670f72da09b636 Mon Sep 17 00:00:00 2001 From: chr Date: Sat, 2 Nov 2019 02:13:19 -0700 Subject: [PATCH] Make BackupService resilient to read timeouts If an attachment read times out, assume that the resources is inaccessible and continue the backup without it. This fixes #12280. --- app/services/backup_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb index 12e4fa8b4..735a142d1 100644 --- a/app/services/backup_service.rb +++ b/app/services/backup_service.rb @@ -143,6 +143,7 @@ class BackupService < BaseService end end rescue Errno::ENOENT + rescue Seahorse::Client::NetworkingError Rails.logger.warn "Could not backup file #{filename}: file not found" end end