Trouble with Chatwoot Installation and Connection on AWS EC2

TLDR soyjavier experienced issues installing Chatwoot in AWS EC2 and received a connection timeout error. v_shnu suggested inspecting security group settings and running some commands to troubleshoot network connectivity, but the issue persists.

Photo of soyjavier
soyjavier
Wed, 19 Oct 2022 15:14:44 UTC

Hi..! It's my first time installing Chatwoot, and everything seems to be fine, but I can't connect, i got a "ERR_CONNECTION_TIMED_OUT" I'm in a AWS EC2 t2.medium (Don't know if its the recommended size) and in the security group I had opened the ports 80, 443 and 22. I Don't know if a I need to open any other port, or if is anything else that I need to check out.. 🤔

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 06:27:50 UTC

If you have the domain setup as you have shared, you only need to have port 80 and 443 open.

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 06:28:36 UTC

This looks like a security group issue as request is getting timed out. Could you double check the security group settings?

Photo of soyjavier
soyjavier
Thu, 20 Oct 2022 07:49:30 UTC

Hi, Thanks for answering, yes, I have the security groups open, and even tried opening another ports, but nothing seems to fix the problem.. 🤔

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 10:04:36 UTC

Please don't open 5432. It's exposes your database to Internet.

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 10:05:04 UTC

Could you share the output of following commands ?

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 10:06:11 UTC

``` sudo netstat -ntlp | grep 3000 ```

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 16:23:17 UTC

So chatwoot is up

Photo of v_shnu
v_shnu
Thu, 20 Oct 2022 16:23:56 UTC

could you try ``` curl http://localhost:3000/api curl localhost ```

Photo of v_shnu
v_shnu
Fri, 21 Oct 2022 06:49:11 UTC

As you can see Chatwoot is running and responding to the `/api` request.

Photo of v_shnu
v_shnu
Fri, 21 Oct 2022 06:49:49 UTC

Not sure what is going on here, to debug can you open all trafffic on all ports on the security group and see if there is any change?

Photo of v_shnu
v_shnu
Fri, 21 Oct 2022 06:50:19 UTC

Also, could you test deploying via this marketplace listing

Photo of v_shnu
v_shnu
Fri, 21 Oct 2022 06:50:34 UTC

https://aws.amazon.com/marketplace/pp/prodview-tolblk4kmdqd4