הייתה כשל בעדכון Discourse על ה-Digital Ocean droplet שלי. ניסיתי לשחזר גיבוי של ה-droplet וזה לא נראה כמו ש-Discourse נמצא ב-droplet החדש מתוך הגיבוי. יצרתי droplet חדש, התקנתי Discourse נקי והוא מזהה את גיבויי ה-Amazon S3 שלי. לחצתי על שחזור והאתר מכיל את כל הפוסטים וכו’, אבל פתאום השחזור נכשל ומחזיר אחורה. אני לא בטוח למה זה קורה ומה לעשות הלאה כדי להריץ את ה-Discourse שלי. צרפתי את קובץ הלוג כמדריך.
log 3.txt|קובץ מצורף (93.8 KB)
סיכום מבוסס בינה מלאכותית
garret1 experienced a failed Discourse update on a Digital Ocean droplet and attempted to restore from a backup, but encountered issues where the site briefly loads all posts before failing and rolling back. The error log indicates 569 posts failed to remap to a new S3 upload URL, suggesting a misconfigured S3 setup. RGJ advised ensuring the app.yml settings match the original installation. garret1 tried using the old app.yml but still faced the same issue and asked if skipping those 569 posts is possible. RGJ suggested temporarily disabling S3 uploads by setting DISCOURSE_ENABLE_S3_UPLOADS: false in app.yml, restoring, then rebuilding after removing the line. As an alternative, RGJ proposed editing the dump.sql file in the backup to disable S3 uploads directly. The goal is to restore the full forum despite the S3-related errors.
569 פוסטים אינם מוגדרים מחדש לכתובת ה-URL החדשה של ההעלאה ב-S3. ההעברה של S3 נכשלה עבור מסד הנתונים ‘ברירת מחדל’.
העובדה שהודיע שיש כתובת URL חדשה להעלאת קבצים ב-S3 מצביעה שסידרת את זה בצורה שונה מהמצב הקודם. העובדה שזה נכשל מצביעה שגם ההגדרה החדשה אינה נכונה.
פתרון: ודא שהמשתנים שהוגדרו ב-app.yml שלך זהים לאלה שהיו בהתקנה הקודמת.
I grabbed the app.yml file from the failed discourse update droplet and moved to the new droplet I’m trying to restore the backup to. Still fails the 569 posts. Is there a way to skip those or another way to get past that? I’d rather have the whole forum back up vs 569 posts.
הטריק הרגיל שלי הוא להשבית את ההעלאות S3 לפני ביצוע ההעברה, אבל אני מניח שאין לך את הבחירה הזאת מכיוון שזהו הפורום המקורי שלך למטה.
אני לא בטוח ב-100% אם זה יעבוד - אתה יכול לנסות את זה
- הגדר
DISCOURSE_ENABLE_S3_UPLOADS: falseב-app.yml שלך - שחזר
- הסר את השורה הזו
- בניטוב מחדש
אם זה לא עובד, תוכל לנסות לערוך את הקובץ dump.sql בגיבוי ולהגדיר את ההגדרה ל-false שם.