Discourse weigert verbinding op poort 443 en 80 na installatie fix op Digital Ocean

Gaf iedereen een mogelijke oplossing nadat ik dit probleem van geweigerde verbinding op poorten 443 en 80 tegenkwam na een Discourse-installatie op Digital Ocean.

Mijn schooljongensfout was het sluiten van de console wanneer redis zegt “bye bye”, wat een minuut of 2 duurt, waardoor ik de console sloot in de veronderstelling dat het klaar was.

Je moet wachten. Probeer een app-rebuild te doen en te wachten met

cd /var/discourse
./launcher rebuild app

Ik hoop dat dit iemand helpt, want ik las alle berichten die zeiden dat er DNS-fouten waren, enz., en realiseerde me toen mijn fout.

2 likes

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 likes

Beyond my paygrade :rofl:

3 likes

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 likes

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 like

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 likes

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 likes