I’ve tried following other (closed) threads on here re: updating Docker, but every approach I’ve tried fails for one reason or another.
Like many others here, I’m running Discourse on a DigitalOcean Droplet. But I am unable to update to 20.10.0 (or, ideally, 24.0.7).
Just hoping to find some direction so I can update Docker from the command prompt. Thank you!
More context: When I try Jay’s solution , I receive the following errors:
E: Malformed entry 58 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
Curiously, this error repeats 3 times. (Perhaps because I’ve tried to do this too many times and have installed multiple flawed versions of the same thing? If so, I’ve no idea how to clean that up…)
זה נראה יותר ויותר שאני צריך לעדכן את אובונטו, אבל אני מתקשה בזה גם.
אם אני מקיש apt update, אני עדיין מקבל את השגיאה הזנה פגומה 58 .
pfaffman
(Jay Pfaffman)
10 בפברואר, 2025, 7:35pm
4
You can search for that error and get some ideas.
Your OS is out of date. Your sources.list is out of date. You need to upgrade your server. I would recommend that you move to a new one.
It’s possible that you have a new OS (but that’s unlikely since that’s a very old Docker, circa 2021) and that somehow something messed up that file.
If you don’t want to upgrade your OS, you don’t want to upgrade Discourse.
[ציטוט=“ג’יי פאףמן, פוסט:4, נושא:351522, משתמש:pfaffman”]
אתה יכול לחפש את הטעות הזו ולקבל רעיונות.
[/ציטוט]
זה מה שעשיתי, גם בפורום הזה וגם מחוצה לו.
[ציטוט=“ג’יי פאףמן, פוסט:4, נושא:351522, משתמש:pfaffman”]
אם אתה לא רוצה לעדכן את מערכת ההפעלה שלך, אתה לא רוצה לעדכן את דיסקורס.
[/ציטוט]
אני שמח לעשות זאת, אבל אני נתקל בבעיה עם שגיאת הרשומה הפגומה 58. האם יתכן שהבעיה היא שהשרת שלי לא מפעיל https והקובץ sources.list מכיל רק הפניות http?
אם אפשר לעבור על שלב זה, אוכל לעדכן את מערכת ההפעלה. הבעיה היא שאני לא יודע איך להתקדם מהמקום שאני נמצא בו כרגע.
pfaffman
(Jay Pfaffman)
10 בפברואר, 2025, 7:41pm
6
Sorry. My recommendation is that you spin up a new server that works and is already upgraded. It’s foolproof, faster, and safer. See Move a Discourse site to another VPS with rsync
לייק 1
Jagster
(Jakke Lehtonen)
10 בפברואר, 2025, 7:42pm
7
pearsonified:
/etc/apt/sources.list
nano /etc/apt/sources.list and remove that line. You, or some script has added bad line there.
יכול להיות שאסיים לעשות את זה—אפילו שזה נשמע כמו זה ייקח כמה ימים—אבל אני מתקשה להאמין שזה יותר פשוט מלעדכן את אובונטו על ה-Droplet הזה.
עם כל האנשים כאן שרצים Discourse על Droplets, אין דרך ידועה לעבור את המכשול הזה?
pfaffman
(Jay Pfaffman)
10 בפברואר, 2025, 7:43pm
9
זה יקטין פחות ימים מנסיון להריץ dist upgrade
האם אני יכול להשתמש בפונקציה “צור ממצב מצב” של DO? או שזה פשוט יכניס את אותו מערכת ההפעלה הישנה והמשומשת ל-Droplet החדש שלי?
Here are the last few lines of that file. Readout says “Read 59 lines,” so is line 58 the last one or the one before it?
Neither line looks messed up to me, so I’m not sure what to delete…
Jagster
(Jakke Lehtonen)
10 בפברואר, 2025, 7:51pm
12
Don’t struggle I’ve done both. Timewise starting new one is faster, but you must add ssh keys to get rsync working. It takes few minutes, if you’ e never done it before — but it is easy.
Upgrading Ubuntu takes longer, because you must take snapshot before. After that there is plenty of questions, mostly about configurations, and those takes some times too to make your mind (use old ones is my advise if you take that road). But you can’t totally sure if something old is left behind.
2 לייקים
Jagster
(Jakke Lehtonen)
10 בפברואר, 2025, 7:55pm
13
הייתי תוהה מה הן אותם חבילות ה-backports האלה. הערה את השורות האחרונות ונסה. כיוון שעשית snapshots, מה שאתה מאבד זה זמן.
הזמן היחיד בו שדרוג של אובונטו לא הצליח לי היה ב-DO, אבל.
עריכה
בדקתי את ה-VPS שלי ב-DO, והוא גם מכיל את ה-backports האלו. אז כנראה שהן מותאמות אישית מ-DO.
Jagster
(Jakke Lehtonen)
10 בפברואר, 2025, 7:56pm
14
לא, אתה לא יכול. זה יוצרת עותק תואם 1:1.
2 לייקים
בסדר, זה לא היה סוף הקובץ, ואני הסרתי את השורה שנוספה תוך כדי שהתעסקתי בהתקנה. אנסה שוב חלק מהיומנים האלה.
Upgraded Ubuntu and Docker, but now my site says “The site can’t be reached.”
Not sure what the next step in the troubleshooting process ought to be; attempting to check out docker logs now.
This means nothing to me, but maybe it means something to one of you:
Aaaand now it’s a 502 error.
Ran the launcher rebuild again, and the forums are back up
pfaffman
(Jay Pfaffman)
10 בפברואר, 2025, 9:37pm
18
That’s awesome! Congrats! Glad you got it fixed!
I marked your “upgraded” post as the solution. That was the real fix, even though you needed to do one more rebuild.
3 לייקים
system
(system)
נסגר ב־
12 במרץ, 2025, 9:37pm
19
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.