גיבוי מודיע על כשל בהפעלה מחדש של sidekiq, אך הגיבוי מצליח

סיכום מבוסס בינה מלאכותית

A user reports that their Discourse site is notifying an admin of backup failure, but the backup actually succeeds. The logs show that Sidekiq is restarting during the backup process, causing an exception. However, the exception is caught, and the backup completes successfully. The user speculates that this is an improvement over previous behavior where backups would be left on local storage, potentially filling up the disk. They plan to increase Sidekiq’s memory allocation during the next container rebuild.

יש לי אתר שמודיע למנהל על כישלון גיבוי, אבל הגיבוי מצליח. הנה הלוגים:

[2025-09-23 09:40:31] Removing tmp '/var/www/discourse/tmp/backups/default/2025-09-23-093005' directory...
[2025-09-23 09:40:31] Uploading archive...
[2025-09-23 09:41:37] EXCEPTION: Sidekiq::Shutdown
[2025-09-23 09:41:37] /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/aws-sdk-s3-1.182.0/lib/aws-sdk-s3/multipart_file_uploader.rb:199:in `value'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/aws-sdk-s3-1.182.0/lib/aws-sdk-s3/multipart_file_uploader.rb:199:in `map'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/aws-sdk-s3-1.182.0/lib/aws-sdk-s3/multipart_file_uploader.rb:199:in

אז נראה ש-sidekiq מופעל מחדש, ולכן הוא מייצר את השגיאה, אבל היא נתפסת, ולכן הגיבוי מצליח בפועל. אני מניח (בלי להסתכל על קומיטים) שזה שיפור לעומת ההתנהגות הקודמת כאשר הגיבויים הללו היו נשארים באחסון מקומי וממלאים בסופו של דבר את הדיסק.

אני אגדיל את הזיכרון עבור sidekiq בפעם הבאה שהקונטיינר ייבנה מחדש.

לייק 1