Hi Roberto,

On 02.05.2011 12:36, Roberto De Ioris wrote:
> Il giorno 01/mag/2011, alle ore 19.47, Leonid Borisenko ha scritto:
>> Hi Roberto,
>> On 08.02.2011 17:25, Roberto De Ioris wrote:
>>> The old-threaded-ugly-runmeonlocalhostasiamunsecure embedded http server is 
>>> dead.
>>>
>>> A new one totally async/high-performance, based on the fastrouter plugin is 
>>> available.
>>>
>>> Currently it supports all the old features + the fastrouter ones (so you 
>>> can use it to route requests based on the hostname
>>> without external tools/webservers).
>>
>>  I've noticed one regression in http server behavior.
>>
>>  [...skip...]
>>
>>  Does it means that useful "development" mode (when started uWSGI was
>> HTTP and app server at the same time) has been ripped in transition from
>> 0.9.6.8 to 0.9.6.7?
>> __
> 
> 
> I have tried to reproduce your problem but without luck.
> 
> Can you check if after the spawn the /tmp/uwsgi.sock socket file is available 
> ?

% echo Firstly, common information > /dev/null

% whoami
leo

% uname -srvmo
Linux 2.6.38-2-686 #1 SMP Sat Apr 23 19:04:20 UTC 2011 i686 GNU/Linux

% cat /etc/debian_version
wheezy/sid

% echo TEST WITH buildconf option DEBUG = FALSE > /dev/null

% LANG=C ls -l /tmp/uwsgi.sock
ls: cannot access /tmp/uwsgi.sock: No such file or directory

% LANG=C ls -l /tmp/uwsgi.*
zsh: no matches found: /tmp/uwsgi.*

% ./uwsgi-python2.7 -s /tmp/uwsgi.sock --pp /tmp/py -w test --plugins
http --http 127.0.0.1:8080 --vacuum --pidfile /tmp/uwsgi.pid --daemonize
/tmp/uwsgi.log
unlink(): No such file or directory [uwsgi.c line 425]

% cat /tmp/uwsgi.log
*** Starting uWSGI 0.9.7.2 (32bit) on [Mon May  2 14:24:14 2011] ***
compiled with version: 4.6.1 20110428 (prerelease) on 02 May 2011 14:04:44
writing pidfile to /tmp/uwsgi.pid
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
spawned uWSGI http 1 (pid: 11474)
HTTP router/proxy bound on 127.0.0.1:8080
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 5

% LANG=C ls -l /tmp/uwsgi.sock
srwxrwxrwx 1 leo leo 0 May  2 14:24 /tmp/uwsgi.sock

% LANG=C ls -l /tmp/uwsgi.*
-rw-r----- 1 leo leo 423 May  2 14:24 /tmp/uwsgi.log
-rw-rw-rw- 1 leo leo   6 May  2 14:24 /tmp/uwsgi.pid
srwxrwxrwx 1 leo leo   0 May  2 14:24 /tmp/uwsgi.sock

% curl 127.0.0.1:8080
curl: (52) Empty reply from server

% cat /tmp/uwsgi.log
*** Starting uWSGI 0.9.7.2 (32bit) on [Mon May  2 14:24:14 2011] ***
compiled with version: 4.6.1 20110428 (prerelease) on 02 May 2011 14:04:44
writing pidfile to /tmp/uwsgi.pid
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
spawned uWSGI http 1 (pid: 11474)
HTTP router/proxy bound on 127.0.0.1:8080
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 5
connect(): No such file or directory [socket.c line 268]

% echo Some time passed, I've recompiled uWSGI > /dev/null
% echo TEST WITH buildconf option DEBUG = TRUE > /dev/null

% LANG=C ls -l /tmp/uwsgi.sock
ls: cannot access /tmp/uwsgi.sock: No such file or directory

% LANG=C ls -l /tmp/uwsgi.*
zsh: no matches found: /tmp/uwsgi.*

% ./uwsgi-python2.7 -s /tmp/uwsgi.sock --pp /tmp/py -w test --plugins
http --http 127.0.0.1:8080 --vacuum --pidfile /tmp/uwsgi.pid --daemonize
/tmp/uwsgi.log
SYSNAME: Linux
NODENAME: my.nodename
RELEASE: 2.6.38-2-686
VERSION: #1 SMP Sat Apr 23 19:04:20 UTC 2011
MACHINE: i686
[uWSGI DEBUG] loading plugin http
unlink(): No such file or directory [uwsgi.c line 425]

% cat /tmp/uwsgi.log
*** Starting uWSGI 0.9.7.2 (32bit) on [Mon May  2 14:48:29 2011] ***
***
*** You are running a DEBUG version of uWSGI, please disable debug in
your build profile and recompile it ***
***
compiled with version: 4.6.1 20110428 (prerelease) on 02 May 2011 14:38:31
writing pidfile to /tmp/uwsgi.pid
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
spawned uWSGI http 1 (pid: 20556)
HTTP router/proxy bound on 127.0.0.1:8080
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 5

% LANG=C ls -l /tmp/uwsgi.sock
srwxrwxrwx 1 leo leo 0 May  2 14:48 /tmp/uwsgi.sock

% LANG=C ls -l /tmp/uwsgi.*
-rw-r----- 1 leo leo 541 May  2 14:48 /tmp/uwsgi.log
-rw-rw-rw- 1 leo leo   6 May  2 14:48 /tmp/uwsgi.pid
srwxrwxrwx 1 leo leo   0 May  2 14:48 /tmp/uwsgi.sock

% curl 127.0.0.1:8080
curl: (52) Empty reply from server

% cat /tmp/uwsgi.log
*** Starting uWSGI 0.9.7.2 (32bit) on [Mon May  2 14:48:29 2011] ***
***
*** You are running a DEBUG version of uWSGI, please disable debug in
your build profile and recompile it ***
***
compiled with version: 4.6.1 20110428 (prerelease) on 02 May 2011 14:38:31
writing pidfile to /tmp/uwsgi.pid
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
spawned uWSGI http 1 (pid: 20556)
HTTP router/proxy bound on 127.0.0.1:8080
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 5
vec size: 56 pkt size: 377 load 1
connect(): No such file or directory [socket.c line 268]
uwsgi backend: 1304336909_20556.sock
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to