I’m trying to migrate an instance of Discourse form Digital Ocean over to an AWS EC2. The installation of the new instance seems to work without a hitch, however the EC2 discourse instance seems to be unreachable from my browser.
Any idea what this could be causing this and what a fix might be?
Do you mean that you cannot view the EC2 instance? Can you SSH in? Is your instance behind an Elastic Load Balancer? Verify your security group rules on the EC2 instance, then try telnet <ip> 443 from your PC.
I can help if you provide more info. AWS is my bread and butter.
It seems like it could be an issue with the instance itself. If you haven’t done so already, verify that Nginx is running on your EC2 (or in the container) and that the port is accepting traffic.
ps aux | grep -i nginx
telnet localhost 443
Are you running Amazon Linux? I use CentOS on AWS, but you can try these commands to disable the firewall, if one is running:
It seems like it could be an issue with the instance itself. If you haven’t done so already, verify that Nginx is running on your EC2 (or in the container) and that the port is accepting traffic.
root@*****:/var/discourse# ps aux | grep -i nginx
root 3337 0.0 0.0 12944 876 pts/1 S+ 21:33 0:00 grep --color=auto -i nginx
root 31019 0.0 0.1 4244 1196 ? Ss 21:04 0:01 runsv nginx
root@*****:/var/discourse# telnet localhost 443
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
root@*****:/var/discourse#
Are you running Amazon Linux? I use CentOS on AWS, but you can try these commands to disable the firewall, if one is running:
Alright, so I just went through the install process on a fresh CentOS 7 EC2. Everything seems to have gone smoothly, although I do notice a something weird:
$ ./launcher start app
which: no docker.io in (/sbin:/bin:/usr/sbin:/usr/bin)
6dd44a3a02af
Nothing to do, your container has already started!
Anyway, this instance seems to be suffering the same problem. So I’m guessing this means it must be something to do with my security group settings. Although as far as I can tell, they are all as they should be.
I get this error, too. It’s not a problem because the launcher locates the Docker binary elsewhere.
Was the screenshot you posted of incoming or outgoing rules? Can you screenshot both for me? And just confirm that the EC2 instance is actually using that security group.
Bizarre. And you can still SSH in, but not connect on any port besides 22? If you want, you can PM me the credentials for a temporary account and I can log in to have a quick look around. I don’t mind if you can do it before I leave for a New Year’s party.
Otherwise, you can open a ticket with Amazon and they should be able to fix it in a day or so.