On Wed, Sep 16, 2015 at 3:53 PM, Roberto De Ioris <[email protected]> wrote:
> It is not clear to me, if the REQUEST_URI you are reporting is from
> MakeIdea::FW::System::Logger or from uWSGI request logs.
>
> What uWSGI request logs are reporting ?
>
Ok I was able to strip down my setup down to one very simple app enabled
and still reproduce the problem:
log:
Wed Sep 16 16:32:48 2015 - *** Starting uWSGI 2.0.11.1-debian (64bit) on
[Wed Sep 16 16:32:48 2015] ***
Wed Sep 16 16:32:48 2015 - compiled with version: 4.6.3 on 16 September
2015 11:04:37
Wed Sep 16 16:32:48 2015 - os: Linux-3.2.0-31-generic #50-Ubuntu SMP Fri
Sep 7 16:16:45 UTC 2012
Wed Sep 16 16:32:48 2015 - nodename: d-ruz
Wed Sep 16 16:32:48 2015 - machine: x86_64
Wed Sep 16 16:32:48 2015 - clock source: unix
Wed Sep 16 16:32:48 2015 - pcre jit disabled
Wed Sep 16 16:32:48 2015 - detected number of CPU cores: 24
Wed Sep 16 16:32:48 2015 - current working directory: /
Wed Sep 16 16:32:48 2015 - writing pidfile to /run/uwsgi/app/site-perl/pid
Wed Sep 16 16:32:48 2015 - detected binary path: /usr/bin/uwsgi-core
Wed Sep 16 16:32:48 2015 - setgid() to 1001
Wed Sep 16 16:32:48 2015 - set additional group 27 (sudo)
Wed Sep 16 16:32:48 2015 - setuid() to 1001
Wed Sep 16 16:32:48 2015 - chdir() to /home/sports/Site/
Wed Sep 16 16:32:48 2015 - your processes number limit is 15540
Wed Sep 16 16:32:48 2015 - your memory page size is 4096 bytes
Wed Sep 16 16:32:48 2015 - detected max file descriptor number: 1048576
Wed Sep 16 16:32:48 2015 - lock engine: pthread robust mutexes
Wed Sep 16 16:32:48 2015 - thunder lock: disabled (you can enable it with
--thunder-lock)
Wed Sep 16 16:32:48 2015 - uwsgi socket 0 bound to UNIX address
/run/uwsgi/app/site-perl/socket fd 9
Wed Sep 16 16:32:48 2015 - uwsgi socket 1 bound to TCP address 0.0.0.0:9000
fd 10
Wed Sep 16 16:32:48 2015 - initialized Perl 5.14.2 main interpreter at
0x9923e0
Wed Sep 16 16:32:48 2015 - your server socket listen backlog is limited to
100 connections
Wed Sep 16 16:32:48 2015 - your mercy for graceful operations on workers is
60 seconds
Wed Sep 16 16:32:48 2015 - mapped 186496 bytes (182 KB) for 1 cores
Wed Sep 16 16:32:48 2015 - *** Operational MODE: single process ***
Wed Sep 16 16:32:48 2015 - PSGI app 0 (/home/sports/Site/bin/test.psgi)
loaded in 0 seconds at 0xc50500 (interpreter 0x9923e0)
Wed Sep 16 16:32:48 2015 - *** uWSGI is running in multiple interpreter
mode ***
Wed Sep 16 16:32:48 2015 - spawned uWSGI master process (pid: 16630)
Wed Sep 16 16:32:48 2015 - spawned uWSGI worker 1 (pid: 16636, cores: 1)
/
Wed Sep 16 16:33:26 2015 - *** HARAKIRI ON WORKER 1 (pid: 16636, try: 1) ***
Wed Sep 16 16:33:26 2015 - HARAKIRI: -- wchan> hrtimer_nanosleep
Wed Sep 16 16:33:26 2015 - HARAKIRI !!! worker 1 status !!!
Wed Sep 16 16:33:26 2015 - HARAKIRI [core 0] 127.0.0.1 - GET / since
1442410402
Wed Sep 16 16:33:26 2015 - HARAKIRI !!! end of worker 1 status !!!
Wed Sep 16 16:33:27 2015 - DAMN ! worker 1 (pid: 16636) died, killed by
signal 9 :( trying respawn ...
Wed Sep 16 16:33:27 2015 - Respawned uWSGI worker 1 (new pid: 16646)
/, /test/
App:
#!/usr/bin/env perl
use strict;
use warnings;
my $app = sub {
my $env = shift;
print STDERR $env->{REQUEST_URI}, "\n";
sleep 5 if $env->{REQUEST_URI} eq '/';
return [
'200',
[ 'Content-Type' => 'text/plain' ],
[ "Hello World\n" ],
];
};
config:
[uwsgi]
http-socket = 0.0.0.0:9000
psgi = /home/sports/Site/bin/test.psgi
processes = 1
master = true
uid = sports
gid = sports
plugin = http, logfile, psgi
env = PERL5LIB=/srv/sports/site-perl/deps/lib/perl5:/usr/lib/perl5/lib/perl5
harakiri = 3
harakiri-verbose = true
reload-mercy = 4
req-logger = file:/var/log/uwsgi/app/site-perl.access.log
post-buffering = 1
requests:
curl -v 'http://127.0.0.1:9000/'; curl -v 'http://127.0.0.1:9000/test/'
--
Руслан Закиров
Руководитель отдела разработки веб-сервисов
+7(916) 597-92-69, ruz @ <http://www.sports.ru/>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi