[uWSGI] can't reload using setgid/setuid

Roberto De Ioris roberto at unbit.it
Sat Jul 3 20:13:05 CEST 2010


(sorry for the top post)

this issue has been fixed starting
from 0.9.5.2 release


--
Roberto De Ioris
http://unbit.it



>
> $ sudo ./uwsgi -s /tmp/kpf.sock -M -p 2 -L --uid 33 --gid 33 -w start
> *** Starting uWSGI 0.9.5.1 (64bit) on [Sat Jul  3 16:46:07 2010] ***
> compiled with version: 4.4.1
> Python version: 2.6.4 (r264:75706, Dec  7 2009, 18:59:58)
> [GCC 4.4.1]
> uWSGI running as root, you can use --uid/--gid/--chroot options
> setgid() to 33
> setuid() to 33
> your memory page size is 4096 bytes
> allocated 560 bytes (0 KB) for 1 request's buffer.
> binding on UNIX socket: /tmp/kpf.sock
> your server socket listen backlog is limited to 64 connections
> initializing hooks...done.
> ...getting the applications list from the 'start' module...
> uwsgi.applications dictionary is not defined, trying with the
> "applications" one...
> applications dictionary is not defined, trying with the "application"
> callable.
> initializing [/] app...
> application 0 (/) ready
> setting default application to 0
> spawned uWSGI master process (pid: 9597)
> spawned uWSGI worker 1 (pid: 9598)
> spawned uWSGI worker 2 (pid: 9599)
>
>
> # here i send SIGHUP to reload uWSGI
> # sudo kill -HUP 9597
>
>
> ...gracefully killing workers...
> Gracefully killing worker 9599...
> Gracefully killing worker 9598...
> binary reloading uWSGI...
> closing all fds > 2 (_SC_OPEN_MAX = 1024)...
> running ./uwsgi
> ...fd 3 is a socket, i suppose this is a graceful reload of uWSGI, i will
> try to do my best...
> *** Starting uWSGI 0.9.5.1 (64bit) on [Sat Jul  3 16:46:25 2010] ***
> compiled with version: 4.4.1
> Python version: 2.6.4 (r264:75706, Dec  7 2009, 18:59:58)
> [GCC 4.4.1]
> cannot setgid() as non-root user
>
>
> # and uWSGI die
>
>
>
> --
> Łukasz Wróblewski
> DDarko.org
> Hostowisko.pl
> NRI.pl
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>


-- 



More information about the uWSGI mailing list