Skip to content

Commit 3a4be87

Browse files
authored
UI: discourse-setup tweak dns problem message (discourse#460)
Make the "your domain doesn't resolve" message more clear.
1 parent 8f20ca5 commit 3a4be87

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

discourse-setup

+16-9
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,31 @@ check_IP_match() {
5252
echo "Connection to $HOST succeeded."
5353
;;
5454
1)
55-
echo "WARNING:: This server does not appear to be accessible at $HOST:443."
56-
echo
55+
echo "WARNING: Port 443 of computer does not appear to be accessible using hostname: $HOST."
5756
if connect_to_port $HOST 80; then
58-
echo A connection to port 80 succeeds, however.
57+
echo
58+
echo SUCCESS: A connection to port 80 succeeds!
5959
echo This suggests that your DNS settings are correct,
6060
echo but something is keeping traffic to port 443 from getting to your server.
6161
echo Check your networking configuration to see that connections to port 443 are allowed.
6262
else
63-
echo "A connection to http://$HOST (port 80) also fails."
63+
echo "WARNING: Connection to http://$HOST (port 80) also fails."
6464
echo
65-
echo "This suggests that $HOST resolves to the wrong IP address"
66-
echo or that traffic is not being routed to your server.
65+
echo "This suggests that $HOST resolves to some IP address that does not reach this "
66+
echo machine where you are installing discourse.
6767
fi
6868
echo
69-
echo Google: \"open ports YOUR CLOUD SERVICE\" for information for resolving this problem.
69+
echo "The first thing to do is confirm that $HOST resolves to the IP address of this server."
70+
echo You usually do this at the same place you purchased the domain.
71+
echo
72+
echo If you are sure that the IP address resolves correctly, it could be a firewall issue.
73+
echo A web search for \"open ports YOUR CLOUD SERVICE\" might help.
74+
echo
75+
echo This tool is designed only for the most standard installations. If you cannot resolve
76+
echo the issue above, you will need to edit containers/app.yml yourself and then type
77+
echo
78+
echo ./launcher rebuild app
7079
echo
71-
echo If you want to proceed anyway, you will need to
72-
echo edit the containers/app.yml file manually.
7380
exit 1
7481
;;
7582
2)

0 commit comments

Comments
 (0)