Discourse סירב חיבור בפורטים 443 ו-80 לאחר התקנה ותיקון ב-Digital Ocean

חשבתי לתת למישהו פתרון אפשרי לאחר שנתקלתי בבעיה זו של חיבור נדחה ביציאות 443 ו-80 לאחר התקנת Discourse ב-Digital Ocean.

טעות הילדות שלי הייתה סגירת הקונסולה כאשר Redis אומר “ביי ביי” אשר משתהה למשך דקה או שתיים, מה שגרם לי לסגור את הקונסולה מתוך מחשבה שהיא הסתיימה.

אתה צריך לחכות. נסה לבצע בנייה מחדש של האפליקציה ולחכות עם

cd /var/discourse
./launcher rebuild app

מקווה שזה יעזור למישהו מכיוון שקראתי את כל הפוסטים שאמרו שגיאות DNS וכו’ ואז הבנתי את הטעות שלי.

2 לייקים

Another thing you can do is use tmux so that those processes keep running if you close the connection. (And tmux attach to reconnect the next time you log in)

2 לייקים

Beyond my paygrade :rofl:

3 לייקים

I reckon you are using Ubuntu or similar

apt update && apt install tmux

Then you give command tmux

In that screen you upgrade your Discourse normally.

If you now close that windows, or leave it behind, it still runs there. If you open your shell, you find it using tmux attach -t 0 (because you propably hasn’t severeral sessions open).

And if you do something like I do with iPad, where I start upgraiding and change to watch a movie or doomscroll social media because working is a boring option, I can return to shell finding finished upgraiding and close that tmux window using exit and that’s it.

3 לייקים

I understand that.

I never used tmux, but screen does the same. The basics are fairly simple, especially if your only goal is running a process for a while and nothing fancier.
It doesn’t require more than a command and one or two keyboard shortcuts.

לייק 1

Very much an edge case, but because I mostly work on iPad, I have two reasons to use tmux instead of screen

  • with screen I’m totally lost very fast where I am
  • I’ve never find way to scroll; now I got an un-familiar message when upgraiding, and because I used screen, all my scrolling is doing is browsing bash history
2 לייקים

I also recommend tmux. It takes minutes to learn the basics and is a life saver for long running tasks.

In a previous role I had export processes that would run for over 24 hours and an disruption to internet access or the macbook going to sleep would mean a restart. tmux saved the day many times. :smiley:

4 לייקים