Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

502 Bad Gateway Send File failed (32: broken pipe)

1,232 views
Skip to first unread message

abdelrahm...@gmail.com

unread,
Aug 22, 2016, 11:54:46 AM8/22/16
to
I followed all the instructions found in the Production install documentation,
however when I try to do the basic collection test with curl I get a 502 Bad Gateway error.

When I check the nginx error log I get

2016/08/22 15:16:44 [error] 4874#0: *7 sendfile() failed (32: Broken pipe) while sending request to upstream, client: 194.171.252.103, server: crash-reports, request: "POST /submit HTTP/1.1", upstream: "uwsgi://unix:/var/run/uwsgi/socorro/socorro-collector.sock:", host: "crash-reports"

This is my nginx.conf file

# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

events {
worker_connections 1024;
}

http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';


access_log /var/log/nginx/access.log main;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;



# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;

}

and the socorro-collector.conf


server {
listen 80;
server_name crash-reports;

# crash-reports needs to accept potentially large minidumps
client_max_body_size 20m;

location / {
uwsgi_pass unix:/var/run/uwsgi/socorro/socorro-collector.sock;
include uwsgi_params;
}
}

Does anyone have any idea what I'm doing wrong?
0 new messages