502 Bad Gateway

Hi

I’m installing Sentry on a new EC2 instance and all I’m getting is a 502 Bad Gateway Nginx error. This is my Nginx config:

server {
listen 80 default_server;
server_name sentry-new-vpn.*;

    access_log /var/log/nginx/sentry_access.log;
    error_log /var/log/nginx/sentry_error.log notice;
    location / {
            proxy_pass         http://127.0.0.1:9000;
            proxy_redirect     off;
            proxy_set_header   Host              $host;
            proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Proto $scheme;
    }

}

I have all the services running using Supervisor. I’ve left most of the sentry config as default apart from the database settings

I installed Sentry into /srv/sentry/

Any help would be great

I just did a little test. I added the following to the Nginx config:

location /favicon.ico {
root /srv/sentry/;
}

The favicon displayed successfully

this can be closed. i rebuilt the server and it worked