I’ve just made two attempts to install Discourse on Digital Ocean.
Try 1:
The first try, I used the official Github instructions using a DO Ubuntu 22.04 LTS image, 1GB droplet.
I used a subdomain of an existing domain and credentials from an existing Mailjet account that’s been working fine for years.
I didn’t know I needed to install Docker, so when I typed
discourse-setup
the installer said
Failed to find docker or docker.io on your PATH.
and I pressed Enter to go ahead and install Docker.
After that, the install SEEMED to run fine.
It ended with
117:M 25 May 2023 01:14:46.500 * DB saved on disk
117:M 25 May 2023 01:14:46.501 # Redis is now ready to exit, bye bye...
and a few additional lines.
I wasn’t sure how quickly DNS would propagate, so I entered the DO IP in my /etc/hosts file .
I tried pointing my browser at my subdomain URL ; I got “Can’t connect to the server”.
I tried pointing my browser at the IP address; I got “Can’t connect to the server”.
So I tried another attempt.
Try 2:
I followed the instructions at linuxhandbook to use a DO one-click install from the Marketplace tab, which gave me a 2GB Droplet.
After logging in via ssh, the installer ran automatically, and seemed to run with no problems. At the end, it said
Discourse is now installed. Log into your admin account in a browser to continue configuring Discourse.
But again, when I tried pointing my browser to my subdomain URL or to the (new for this second droplet) DO IP address, my browsers can’t connect (I’ve tried Firefox and Safari).
running
./launcher start app
shows
x86_64 arch detected.
cadd91ccd0cd
Nothing to do, your container has already started!
discourse-doctor shows (among other things)
Discourse container app is running
and gives the correct
DISCOURSE_HOSTNAME
What can I try to get this install (either or both of them) to respond to my browser?
(The second IP address is still in my hosts file, but it has ALSO propagated according to DNS checkers, so it seems like it should work from either the subdomain URL or just the IP address.)
Thanks for any help.