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

nginx error! from Test collection and processing

304 views
Skip to first unread message

guohai...@gmail.com

unread,
Jul 25, 2016, 3:32:59 AM7/25/16
to
I followed all the instructions in http://socorro.readthedocs.io/en/latest/configuring-socorro.html but at step 2.4 Test collection and processing I keep getting nginx's 404 page.I have repeatedly check /etc/nginx/conf.d/socorro-collector.conf, /etc/nginx/nginx.conf, /etc/sysconfig/selinux, and found no problems. Several attempts problems still. I copy the link http://localhost/submit to web browsers display is always error.I confirm the existence of /var/run/uwsgi/socorro/socorro-collector.sock

curl -H 'Host: butel-crash-reports' -F 'ProductName=butel_test' -F 'Version=1.0' -F upload_file_minidump=@/home/butel/crash.dmp 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>


cd /etc/nginx/conf.d
vi socorro-collector.conf

server {
listen 80;
server_name butel-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;
}
}

cd /etc/nginx
vi nginx.conf

# 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;

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

location / {
}

error_page 404 /404.html;
location = /40x.html {
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}


cd /etc/sysconfig
vi selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted










guohai...@gmail.com

unread,
Jul 26, 2016, 5:29:19 AM7/26/16
to

hello:
I continue to follow the question.

# ls -l /var/run/uwsgi/socorro/
total 0
srw-rw-r--. 1 socorro nginx 0 7month 26 13:51 socorro-collector.sock
srw-rw-r--. 1 socorro nginx 0 7month 26 13:51 socorro-middleware.sock
srw-rw-r--. 1 socorro nginx 0 7month 26 13:51 socorro-webapp.sock

Here is what I get in nginx error log.
[error] 26136#0: *9 upstream prematurely closed connection while reading response header from upstream, client: ::1, server: butel-crash-reports, request: "POST /submit HTTP/1.1", upstream: "uwsgi://unix:/var/run/uwsgi/socorro/socorro-collector.sock:", host: "butel-crash-reports"

I don't know how to solve. Where did I go wrong?




在 2016年7月25日星期一 UTC+8下午3:32:59,guohai...@gmail.com写道:

An Nguyen

unread,
Aug 18, 2016, 7:43:09 PM8/18/16
to
fixed it adding this line
listen [::]:80;

to /etc/nginx/conf.d/socorro-collector.conf

guohai...@gmail.com

unread,
Aug 26, 2016, 3:04:56 AM8/26/16
to
在 2016年8月19日星期五 UTC+8上午7:43:09,An Nguyen写道:
> fixed it adding this line
> listen [::]:80;
>
> to /etc/nginx/conf.d/socorro-collector.conf

Well, thank you
0 new messages