----- Oryginalna wiadomość ----- > Od: "Roberto De Ioris" <[email protected]> > Do: "uWSGI developers and users list" <[email protected]> > Wysłane: czwartek, 3 marzec 2011 12:07:58 > Temat: Re: [uWSGI] uWSGI 0.9.7-beta1 - emperor > > Emperor does not find the uwsgi binary (it chdir to /home/test after > startup). > > If you do not have uwsgi in system path you can specify it with > --binary-path > > ./uwsgi --emperor /home/test --binary-path /opt/uwsgi/uwsgi > > I would like to add a way to specify a different uwsgi binary for > every vassal app >
:] after starting Emperor mode, I found the problem: - I start uWSGI with one vassal - invokes a request - send kill HUP to vassal master pid - got: *** Starting uWSGI 0.9.7-dev (32bit) on [Thu Mar 3 12:19:22 2011] *** compiled with version: 4.4.5 uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** WARNING: you are running uWSGI without its master process manager *** your memory page size is 4096 bytes *** starting uWSGI Emperor *** c_ui->ui_next = 0x9d73050 Python version: 3.1.2 (release31-maint, Sep 17 2010, 20:54:03) [GCC 4.4.5] *** has_emperor mode detected (fd: 6) *** [uWSGI] getting INI configuration from cos.ini 2011-03-03 12:19:22 - *** Starting uWSGI 0.9.7-dev (32bit) on [Thu Mar 3 12:19:22 2011] *** 2011-03-03 12:19:22 - compiled with version: 4.4.5 2011-03-03 12:19:22 - uWSGI running as root, you can use --uid/--gid/--chroot options 2011-03-03 12:19:22 - setgid() to 33 2011-03-03 12:19:22 - setuid() to 33 2011-03-03 12:19:22 - your memory page size is 4096 bytes 2011-03-03 12:19:22 - *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers *** 2011-03-03 12:19:22 - uwsgi socket 0 bound to UNIX address /tmp/uwsgi/t3.sock fd 3 2011-03-03 12:19:22 - Python version: 3.1.2 (release31-maint, Sep 17 2010, 20:54:03) [GCC 4.4.5] Python main interpreter initialized at 0x9d6c9a0 The -s/--socket option is missing and stdin is not a socket. 2011-03-03 12:19:22 - Python main interpreter initialized at 0x99c98d8 2011-03-03 12:19:22 - your server socket listen backlog is limited to 100 connections 2011-03-03 12:19:22 - *** Operational MODE: preforking *** 2011-03-03 12:19:22 - WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x99c98d8 (default app) 2011-03-03 12:19:22 - gracefully (RE)spawned uWSGI master process (pid: 5623) 2011-03-03 12:19:22 - spawned uWSGI worker 1 (pid: 5624, cores: 1) 2011-03-03 12:19:22 - spawned uWSGI worker 2 (pid: 5625, cores: 1) 2011-03-03 12:19:22 - spawned uWSGI worker 3 (pid: 5626, cores: 1) 2011-03-03 12:23:16 - ...gracefully killing workers... 2011-03-03 12:23:16 - Gracefully killing worker 2 (pid: 5625)... 2011-03-03 12:23:16 - Gracefully killing worker 1 (pid: 5624)... 2011-03-03 12:23:16 - Gracefully killing worker 3 (pid: 5626)... 2011-03-03 12:23:17 - binary reloading uWSGI... 2011-03-03 12:23:17 - closing all non-uwsgi socket fds > 2 (_SC_OPEN_MAX = 1024)... 2011-03-03 12:23:17 - found fd 3 2011-03-03 12:23:17 - running /home/ddarko/Pulpit/uwsgi/uwsgi *** has_emperor mode detected (fd: 6) *** [uWSGI] getting INI configuration from cos.ini 2011-03-03 12:23:17 - *** Starting uWSGI 0.9.7-dev (32bit) on [Thu Mar 3 12:23:17 2011] *** 2011-03-03 12:23:17 - compiled with version: 4.4.5 2011-03-03 12:23:17 - your memory page size is 4096 bytes 2011-03-03 12:23:17 - *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers *** 2011-03-03 12:23:17 - uwsgi socket 0 inherited UNIX address /tmp/uwsgi/t3.sock fd 3 2011-03-03 12:23:17 - uwsgi socket 0 inherited UNIX address /tmp/uwsgi/t3.sock fd 6 2011-03-03 12:23:17 - Python version: 3.1.2 (release31-maint, Sep 17 2010, 20:54:03) [GCC 4.4.5] 2011-03-03 12:23:17 - Python main interpreter initialized at 0x86f9c08 2011-03-03 12:23:17 - your server socket listen backlog is limited to 100 connections 2011-03-03 12:23:17 - *** Operational MODE: preforking *** 2011-03-03 12:23:17 - WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x86f9c08 (default app) 2011-03-03 12:23:17 - gracefully (RE)spawned uWSGI master process (pid: 5623) 2011-03-03 12:23:17 - spawned uWSGI worker 1 (pid: 5657, cores: 1) 2011-03-03 12:23:17 - spawned uWSGI worker 2 (pid: 5658, cores: 1) 2011-03-03 12:23:17 - spawned uWSGI worker 3 (pid: 5659, cores: 1) this is odd: 2011-03-03 12:23:17 - uwsgi socket 0 inherited UNIX address /tmp/uwsgi/t3.sock fd 3 2011-03-03 12:23:17 - uwsgi socket 0 inherited UNIX address /tmp/uwsgi/t3.sock fd 6 - invokes a request - and receives: 502 Bad Gateway after the next reboot begins to operate, and so every second reboot working. -- Łukasz Wróblewski http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe http://www.hostowisko.pl/ - Profesjonalny i tani hosting http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
