How to solve Upstream Timed Out

I am using erpnext VM exported to AWS (on a t2.medium)

when I submit invoice I am getting timed out message… Kindly some one help on this issue…

upstream timed out (110: Connection timed out) while reading response header from upstream, client: 217.165.xx.xx, server: _staging.example.ae, request: “POST / HTTP/1.1”, upstream: "http://127.0.0.$

sudo netstat -tulpn | grep LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 796/sshd
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 1475/redis-server 1
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1423/master
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 2989/python
tcp 0 0 127.0.0.1:12000 0.0.0.0:* LISTEN 1480/redis-server 1
tcp 0 0 127.0.0.1:13000 0.0.0.0:* LISTEN 1479/redis-server 1
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1197/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1441/redis-server 1
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1326/nginx
tcp6 0 0 :::22 :::* LISTEN 796/sshd
tcp6 0 0 :::25 :::* LISTEN 1423/master
tcp6 0 0 :::9000 :::* LISTEN 3000/node

Got any solution for this ?

Facing the same issue… Any solution for this.