I believe I've followed all the instructions in
http://socorro.readthedocs.org/en/latest/configuring-socorro.html but at step 2.4 Test collection and processing I keep getting nginx's 404 page. I've tried with the local hostname matching or not matching the server_name in socorro-collector.conf but neither seems to make a difference. I've also made sure that the socorro-collector.sock that uwsgi_pass points to exists.
Contents of /etc/nginx/conf.d/socorro-collector.conf:
server {
listen 80;
server_name test-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;
}
}
output from submitting via curl:
$ curl -H 'Host: test-crash-reports' -F 'ProductName=Test' -F 'Version=1.0' -F upload_file_minidump=@7d381dc5-51e2-4887-956b-1ae9c2130109.dump
http://localhost/submit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>The page is not found</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
/*<![CDATA[*/
body {
background-color: #fff;
color: #000;
font-size: 0.9em;
font-family: sans-serif,helvetica;
margin: 0;
padding: 0;
}
:link {
color: #c00;
}
:visited {
color: #c00;
}
a:hover {
color: #f50;
}
h1 {
text-align: center;
margin: 0;
padding: 0.6em 2em 0.4em;
background-color: #294172;
color: #fff;
font-weight: normal;
font-size: 1.75em;
border-bottom: 2px solid #000;
}
h1 strong {
font-weight: bold;
font-size: 1.5em;
}
h2 {
text-align: center;
background-color: #3C6EB4;
font-size: 1.1em;
font-weight: bold;
color: #fff;
margin: 0;
padding: 0.5em;
border-bottom: 2px solid #294172;
}
h3 {
text-align: center;
background-color: #ff0000;
padding: 0.5em;
color: #fff;
}
hr {
display: none;
}
.content {
padding: 1em 5em;
}
.alert {
border: 2px solid #000;
}
img {
border: 2px solid #fff;
padding: 2px;
margin: 2px;
}
a:hover img {
border: 2px solid #294172;
}
.logos {
margin: 1em;
text-align: center;
}
/*]]>*/
</style>
</head>
<body>
<h1><strong>nginx error!</strong></h1>
<div class="content">
<h3>The page you are looking for is not found.</h3>
<div class="alert">
<h2>Website Administrator</h2>
<div class="content">
<p>Something has triggered missing webpage on your
website. This is the default 404 error page for
<strong>nginx</strong> that is distributed with
Fedora. It is located
<tt>/usr/share/nginx/html/404.html</tt></p>
<p>You should customize this error page for your own
site or edit the <tt>error_page</tt> directive in
the <strong>nginx</strong> configuration file
<tt>/etc/nginx/nginx.conf</tt>.</p>
</div>
</div>
<div class="logos">
<a href="
http://nginx.net/"><img
src="/nginx-logo.png"
alt="[ Powered by nginx ]"
width="121" height="32" /></a>
<a href="
http://fedoraproject.org/"><img
src="/poweredby.png"
alt="[ Powered by Fedora ]"
width="88" height="31" /></a>
</div>
</div>
</body>
</html>
and from nginx's error.log:
2015/11/12 18:36:01 [error] 3396#0: *1 open() "/usr/share/nginx/html/submit" failed (2: No such file or directory), client: ::1, server: _, request: "POST /submit HTTP/1.1", host: "test-crash-reports"
the various socorro processes (from ps -xa | grep socorro):
746 ? Ssl 0:01 envconsul -once -upcase=false -prefix socorro/common -prefix socorro/collector /data/socorro/socorro-virtualenv/bin/uwsgi -H /data/socorro/socorro-virtualenv -M --need-app -w wsgi.collector -s /var/run/uwsgi/socorro/socorro-collector.sock --chmod-socket=664 --uid=socorro --gid=nginx
747 ? Ssl 0:01 envconsul -upcase=false -prefix socorro/common -prefix socorro/processor /data/socorro/socorro-virtualenv/bin/socorro processor
3672 ? S 0:00 /data/socorro/socorro-virtualenv/bin/uwsgi -H /data/socorro/socorro-virtualenv -M --need-app -w wsgi.collector -s /var/run/uwsgi/socorro/socorro-collector.sock --chmod-socket=664 --uid=socorro --gid=nginx
3673 ? Sl 0:03 /data/socorro/socorro-virtualenv/bin/python /data/socorro/socorro-virtualenv/bin/socorro processor
3682 ? S 0:00 /data/socorro/socorro-virtualenv/bin/uwsgi -H /data/socorro/socorro-virtualenv -M --need-app -w wsgi.collector -s /var/run/uwsgi/socorro/socorro-collector.sock --chmod-socket=664 --uid=socorro --gid=nginx