404 Not Found during initial installation via console

AI-generated summary

User danvanmoll encountered a 404 Not Found error while attempting to install Discourse on a Hetzner Ubuntu system. After sharing their command and a screenshot, NateDhaliwal pointed out that the URL in the original post contained a hyphen (discourse-docker) instead of an underscore (discourse_docker), which was the root cause. Once corrected, the installation script ran without errors. However, danvanmoll questioned why the post-installation wizard did not appear immediately. Further discussion revealed that the initial command was missing the -qO- flags, which pipe the script output directly to sudo bash. After updating the command to match the official documentation exactly, the installation proceeded successfully. danvanmoll concluded that the issue was entirely due to copy-paste errors and typos on their end.

Good morning!

I am trying to setup Discourse on a fresh Hetzner Ubuntu system. When I initiate the installation via

wget https://raw.githubusercontent.com/discourse/discourse_docker/main/install-discourse

I basically receive a 404 Not Found.

Any ideas? Thank you in advance!!

Best,
Dan

That doesn’t look like the install command.

From the docs:

wget -qO- https://raw.githubusercontent.com/discourse/discourse_docker/main/install-discourse | sudo bash

It is. -qO- only mutes all status-feedback in the console, so I removed it in order to get the actual error message. Otherwise the command would simply do nothing w/o any feedback.

Edit: But since the URL resolves just fine in a browser I think it is an issue on my end.. simply can’t figure out what it is.

I see. Do you have any firewall in place?

No, nothing yet. I wanted to finish the install to make sure nothing is interfering.

From your screenshot, you seem to have written discourse-docker instead of discourse_docker.

You are a genius!! For some reason copy resulted in various errors (e.g. ; instead of : in the url) and I have missed that one!

It worked. At least I did not receive any error messages. But isn`t there a wizard supposed to start afterwards?

All I get is this:

Or am I supposed to continue web based once my subdomain DNS is active?

I’m no wget expert, but is it because -qO- is absent?

Hmmm.. from my understanding all It does is suppressing any console-status feedback. But I will try the command exactly as mentioned in the guide, too.

Update: I stand corrected. It indeed works with -q0- added. I learn something new every day :slight_smile:

@danvanmoll I will need to check, but I think there’s more stuff shown after this?

The installation seems to run as intended with the complete command line. Still baffled but it was a me-issue all the time :slight_smile: