root@www:/var/discourse# ./launcher start data
x86_64 arch detected.
+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -h www-data -e DOCKER_HOST_IP=172.17.0.1 --name data -t -v /var/discourse/shared/data:/shared -v /var/discourse/shared/data/log/var-log:/var/log --mac-address 02:e6:17:cc:a2:dc local_discourse/data /sbin/boot
Unable to find image 'local_discourse/data:latest' locally
docker: Error response from daemon: pull access denied for local_discourse/data, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Run 'docker run --help' for more information
root@www:/var/discourse#
יש הצעות? חיפוש הודעת השגיאה הזו מעלה רק את השרשור הזה.
That suggests that maybe you ran a ./launcher cleanup and deleted the data container (I don’t see another way that the container would be missing, but I could be wrong). If that’s the case, and, really, in any case, what I would do is spin up a new droplet, copy over your yml files and restore your latest backup.
If you’d like a fish rather than being taught, you can contact me or ask in Marketplace
הדבר שהחזיר את האתר לפעולה, לאחר שה-data container נעלם, היה עריכת data.yml ושינוי התבנית ל-postgres13 templet ואז בנייה מחדש של ה-data container, ואז היה אפשר להפעיל את ה-data container, להרוס ולהפעיל מחדש את ה-web_only container (הוא לא יתחבר ל-data container שונה מזה שהוא מצא כאשר הוא נוצר). אז האתר חזר לפעולה.
אני די בטוח שאם הייתי מנסה שוב את שדרוג מסד הנתונים זה היה עובד, אבל רק כדי להיות בטוח, עשיתי גיבוי טרי של מסד הנתונים, העברתי אותו ל-droplet חדש, שחזרתי את מסד הנתונים, והוא חזר לפעולה.
האם תוכל לומר כמה מילים על איך שהבעיה התעוררה, למשל כדי להרגיע אחרים שזה כנראה לא יחול עליהם?
Tk;dr: לא.
אני לא יכול לכתוב מה הייתה הבעיה המקורית. ידיעה על מעבר לתבנית pg13 הייתה הפתרון לבעיה לאחר שהקונטיינר נמחק. זה חלק ממה שנושא pg15 אומר לעשות. אולי הייתה בעיית שטח דיסק בשלב מסוים?
אה, אני חושב שאני מבין עכשיו… זו הייתה שדרוג של מערכת ישנה למדי המשתמשת ב-pg13? אז מצב די נדיר.
השדרוג נכשל מכיוון ששדרוג PostgreSQL דרש 14GB של שטח דיסק פנוי והטיפה לא הייתה עם מספיק מקום.
מדוע זה לא עבד לאחר שהרחבתי את שטח הדיסק, ייתכן ש כפי שהוצע על ידי @Jagster למעלה ביצעתי ./launcher cleanup שלא התאים להתקנה של שני קונטיינרים.
בשלב מסוים הייתי רוצה לעבור להתקנה של קונטיינר יחיד מכיוון שזה נראה פחות בעייתי עבור מישהו שלא באמת מכיר את ארכיטקטורת Discourse. הייתי מעדיף גם לא לארח בעצמי, אבל לאתר יש הרבה תמונות ואירוח Discourse קפץ מ-100$ ל-200$ לחודש כאשר נגמר לנו שטח הדיסק. האתר מביא רק כ-30-40$ לחודש מ-Google Ads.
I migrated to Digital Ocean only two years ago.
And yet I did it a week ago, when I was out of space.
@pfaffman הציע שזו אולי היתה הבעיה. אין לי מושג.
No. That would have caused the same problem for the single container setup.
The problem was that when you tried to gain disk space you destroyed your stopped data container. The crucial mistake, I think, was doing the cleanup while your data and web only containers were stopped.
The two container setup saved you some grief since it made it easier to delay the postgres upgrade. In this case, however, you got stuck because the upgrade added the ai plugin, and that forced you to do the postgres upgrade on the data container.
Maybe if a launcher cleanup had been run before you tried to upgrade or if you’d not run it at all and resized.
So there were a bunch of issues
- Maybe too many docker images filling the disk (maybe disk too small)
- PostgreSQL update required
- Ai plugin added to core, forcing database upgrade
- PostgreSQL upgrade failing for some reason and not knowing to start the data container (I think the message says to)
- Running launcher cleanup with the data container shut down, which deleted the container that needed to start up in order to do a clean shut down
The only thing I dd to gain disk space was to resize the droplet.
Everything else I did was to try to complete the failed upgrade, based on suggestions in command output, posts here, or in linked topics.
@pfaffman האתר שלי מוצף בספאם ברור. האם ייתכן שכלי כלשהו נגד ספאם אבד בשדרוג?
It’s not likely. I don’t know if Akismet was ever configured, but it’s no longer very effective. What’s recommended now is this: Discourse AI - Spam detection The AI plugin is now part of core and is installed.
If you’d like help you can email me.
EDIT: It’s possible, but not likely, that the change described here could explain your spam uptick.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.