Maybe wrong here, but my first impression is that you cannot setuid to root, 
particularly if launched from a process that does not have root privileges.

My suggestion is test running supervisord as root and remove the user=root 
directive.

Cheers,
Juan

On Thursday, June 30, 2011 at 21:24 , S. Alexandre Lemaire wrote:

> Hello.
> 
> First, appreciate your time in advance.
> 
> I am getting this error:
> 
> 2011-07-01 00:22:20,955 INFO spawned: 'Gearman' with pid 53302
> 2011-07-01 00:22:21,048 DEBG 'Gearman' stdout output:
> supervisor: error trying to setuid to 0 (Could not set groups of 
> effective user)
> 
> 
> My program block for Gearman looks like so:
> [program:gearmand]
> command=/usr/local/sbin/gearmand -u root -l /var/log/gearmand.log
> process_name=Gearman
> numprocs=1
> stdout_logfile=/var/log/LDPE/supervisord.log
> redirect_stderr=true
> autostart=true
> autorestart=true
> user=root
> 
> OS stats:
> sh-3.2# uname -a
> Darwin Aegis.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 
> 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
> 
> 
> Any ideas on how to solve?
> Thanks again.
> Alex
> _______________________________________________
> Supervisor-users mailing list
> [email protected] 
> (mailto:[email protected])
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
> 
> Attachments: 
> - smime.p7s
> 


_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to