Following install guide on DO droplet finishes but doesn't work

So following the instructions from the guide (https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) seems to work just fine - no errors I can see and it all comes to the end with:

  • /usr/bin/docker run -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=2 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e LETSENCRYPT_DIR=/shared/letsencrypt -e DISCOURSE_HOSTNAME=discourse.[testdomain] -e DISCOURSE_DEVELOPER_EMAILS=discourse@[testdomain] -e DISCOURSE_SMTP_ADDRESS=smtp.sendgrid.net -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=apikey -e DISCOURSE_SMTP_PASSWORD=[api] -e LETSENCRYPT_ACCOUNT_EMAIL=me@[testdomain] -h ubuntu-discourse-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 443:443 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:21:5e:00:74:46 local_discourse/app /sbin/boot

when I go to the IP address to access it I get the NGINX screen and then after a few moments I hit refresh and I get the “ERR_CONNECTION_REFUSED” screen in Chrome.

You should go to the domain, since you setup with SSL and for that to work you need a valid domain.

Hmm - interesting. I am waiting for my dns changes to update - we’ll see if that is the deal

If you tried to get a LE certificate before the DNS was ready that could have failed.

If this happens, wait a bit and try rebuilding again.

4 Likes

Ahh that makes sense - ok let me give it a go

Thanks @Falco - it works - I was just a bit too impatient.

3 Likes