You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Georges Roux <ge...@pacageek.org> on 2005/04/17 10:33:56 UTC

jsvc.exec error: syscall failed in set_caps

Hi,

I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default 
configuration)
nothing is running on this port
and have only thi error in logs/catalina.err

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4

Georges


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Georges Roux <ge...@pacageek.org>.
Bill Barker a écrit :

>Yeah, well, check out 
>http://issues.apache.org/bugzilla/show_bug.cgi?id=33154.
>  
>

Well done Bill,

I use last stable 2.6.11 from kernel.org compiled as the debian way 
(initrd and all as module)
and nowI add  the line

modprobe capability

before launching jsvc, in my tomcat init script
and  wait now for the patch to drop the line

It's ok

Thanks a lot Bill

Georges

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Bill Barker <wb...@wilshire.com>.
"Georges Roux" <ge...@pacageek.org> wrote in message 
news:4262F811.1090806@pacageek.org...
>
>>Thanks much for sharing your solution with the group -- this will help
>>people when they search the archives.
>>
>>-QM
>>
> Well hm, bad news, the probleme is already here and I don't have the 
> solution.
>

Yeah, well, check out 
http://issues.apache.org/bugzilla/show_bug.cgi?id=33154.

> Sorry
>
> Georges 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Georges Roux <ge...@pacageek.org>.
>Thanks much for sharing your solution with the group -- this will help
>people when they search the archives.
>
>-QM
>  
>
Well hm, bad news, the probleme is already here and I don't have the 
solution.

Sorry

Georges

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by QM <qm...@brandxdev.net>.
On Sun, Apr 17, 2005 at 07:34:49PM +0200, Georges Roux wrote:
: and after as root with only
: -Djava.io.tmpdir=/tmp
: the problem was the write permissions on the sessions files in /tmp


Thanks much for sharing your solution with the group -- this will help
people when they search the archives.

-QM


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Georges Roux <ge...@pacageek.org>.
And the problem was...
first I try to start tomcat with

-user www-data
-Djava.io.tmpdir=/tmp

and after as root with only

-Djava.io.tmpdir=/tmp

the problem was the write permissions on the sessions files in /tmp

Georges


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Georges Roux <ge...@pacageek.org>.
QM a écrit :

>Do you call jsvc as root?
>
>A long time ago, there was a bug that would cause jsvc to fail unless
>called as root.  IIRC "set_caps()" is the function that calls
>setuid()/setgid().  Those calls require root privs, so they would fail;
>and in turn, the whole program bailed out.
>
>(The other option would have been for jsvc to see whether the requested
>and calling user were the same.)
>
>-QM
>
>  
>
Yes as root and jsvc crash

Georges

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by QM <qm...@brandxdev.net>.
On Sun, Apr 17, 2005 at 10:33:56AM +0200, Georges Roux wrote:
: I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default 
: configuration)
: nothing is running on this port
: and have only thi error in logs/catalina.err
: 
: jsvc.exec error: syscall failed in set_caps
: jsvc.exec error: Service exit with a return value of 4


Do you call jsvc as root?

A long time ago, there was a bug that would cause jsvc to fail unless
called as root.  IIRC "set_caps()" is the function that calls
setuid()/setgid().  Those calls require root privs, so they would fail;
and in turn, the whole program bailed out.

(The other option would have been for jsvc to see whether the requested
and calling user were the same.)

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsvc.exec error: syscall failed in set_caps

Posted by Wolfgang Hackl <wo...@gmx.at>.
Georges Roux wrote:
> I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default 
> configuration)
> nothing is running on this port
> and have only thi error in logs/catalina.err
> 
> jsvc.exec error: syscall failed in set_caps
> jsvc.exec error: Service exit with a return value of 4

Try "modprobe capability". I think there is also a bug filed concerning 
this problem.

Kind regards,
Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org