> /home/uwsgi$ ./uwsgi --ini /home/test/cos.ini > [uWSGI] getting INI configuration from /home/test/cos.ini > 2011-03-03 09:03:01 - *** Starting uWSGI 0.9.7-dev (32bit) on [Thu Mar 3 > 09:03:01 2011] *** > 2011-03-03 09:03:01 - compiled with version: 4.4.5 > 2011-03-03 09:03:01 - *** WARNING: you are running uWSGI without its > master process manager *** > 2011-03-03 09:03:01 - your memory page size is 4096 bytes > 2011-03-03 09:03:01 - *** WARNING: you have enabled harakiri without post > buffering. Slow upload could be rejected on post-unbuffered webservers *** > 2011-03-03 09:03:01 - spawned uWSGI http 1 (pid: 3223) > 2011-03-03 09:03:01 - uwsgi socket 0 bound to UNIX address tmp.sock fd 4 > 2011-03-03 09:03:01 - Python version: 3.1.2 (release31-maint, Sep 17 2010, > 20:54:03) [GCC 4.4.5] > 2011-03-03 09:03:01 - Python main interpreter initialized at 0x8f3abe0 > 2011-03-03 09:03:01 - your server socket listen backlog is limited to 100 > connections > 2011-03-03 09:03:01 - *** Operational MODE: single process *** > 2011-03-03 09:03:01 - WSGI application 0 (SCRIPT_NAME=) ready on > interpreter 0x8f3abe0 (default app) > 2011-03-03 09:03:01 - spawned uWSGI worker 1 (and the only) (pid: 3224, > cores: 1) > ^C2011-03-03 09:03:39 - unlink(): No such file or directory [uwsgi.c line > 372] > > /home/test/cos.ini : > [uwsgi] > socket=tmp.sock > chdir=/home/proj > single-interpreter=1 > module=start > logdate=%%Y-%%d-%%m %%H:%%M:%%S > vacuum=1 > harakiri=3 > > in their current configuration option "vacuum" is not working properly. > current tip. > >
Before unlinking, vacuum chdir() to the initial directory where uWSGI was started. But sockets are created after the user specified chdir. Pidfile is created before user chdir. Damn, that is a mess :) I have rewritten the vacuum functions in a way that i can mimic the startup behaviour: - chdir to initial directory - unlink pidfile if used - chdir to user defined "chdir" option if specified - unlink unix sockets This should fix the problem. Let me know if it works. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
