From 3a4be87a789a486dddc9177e1a0f55eb4a8b4ba7 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Mon, 11 May 2020 15:10:24 -0700 Subject: [PATCH] UI: discourse-setup tweak dns problem message (#460) Make the "your domain doesn't resolve" message more clear. --- discourse-setup | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/discourse-setup b/discourse-setup index 2b86fca..ec1adaf 100755 --- a/discourse-setup +++ b/discourse-setup @@ -52,24 +52,31 @@ check_IP_match() { echo "Connection to $HOST succeeded." ;; 1) - echo "WARNING:: This server does not appear to be accessible at $HOST:443." - echo + echo "WARNING: Port 443 of computer does not appear to be accessible using hostname: $HOST." if connect_to_port $HOST 80; then - echo A connection to port 80 succeeds, however. + echo + echo SUCCESS: A connection to port 80 succeeds! echo This suggests that your DNS settings are correct, echo but something is keeping traffic to port 443 from getting to your server. echo Check your networking configuration to see that connections to port 443 are allowed. else - echo "A connection to http://$HOST (port 80) also fails." + echo "WARNING: Connection to http://$HOST (port 80) also fails." echo - echo "This suggests that $HOST resolves to the wrong IP address" - echo or that traffic is not being routed to your server. + echo "This suggests that $HOST resolves to some IP address that does not reach this " + echo machine where you are installing discourse. fi echo - echo Google: \"open ports YOUR CLOUD SERVICE\" for information for resolving this problem. + echo "The first thing to do is confirm that $HOST resolves to the IP address of this server." + echo You usually do this at the same place you purchased the domain. + echo + echo If you are sure that the IP address resolves correctly, it could be a firewall issue. + echo A web search for \"open ports YOUR CLOUD SERVICE\" might help. + echo + echo This tool is designed only for the most standard installations. If you cannot resolve + echo the issue above, you will need to edit containers/app.yml yourself and then type + echo + echo ./launcher rebuild app echo - echo If you want to proceed anyway, you will need to - echo edit the containers/app.yml file manually. exit 1 ;; 2) -- 2.25.1