Package: systemtap-server
Version: 1.6-1
Severity: normal

stap-server start, as documented in the stap-server(8), does not seem
to work at all.

First, the -u option fails due to missing runuser (which comes in
coreutils, but not in Debian's coreutils for some reason):

------------------------------------------------------------
# stap-server start -u stap-server
Starting stap-server -a "x86_64" -r "3.1.0-1-amd64" -u "stap-server"
/usr/bin/stap-server: line 654: runuser: command not found
FAILED
------------------------------------------------------------

Trying to run without -u results in a rather uninformative error
message:

------------------------------------------------------------
# stap-server start
Starting stap-server -a "x86_64" -r "3.1.0-1-amd64" -u "root"
Unable to start a systemtap server: /usr/lib/systemtap/stap-serverd did not 
start
FAILED
------------------------------------------------------------

I suspect this is because of this:

------------------------------------------------------------
# /usr/lib/systemtap/stap-serverd 
For security reasons, invocation of stap-serverd as root is not supported.
------------------------------------------------------------

Trying to run as user stap-server in a group named stap-server fails
because of permission problems:

------------------------------------------------------------
$ stap-server start
Starting stap-server -a "x86_64" -r "3.1.0-1-amd64" -u "stap-server"
/usr/bin/stap-server: line 138: /var/log/stap-server/log: Permission denied
/usr/lib/systemtap/stap-start-server: line 51:  2620 Aborted                 
${stap_pkglibexecdir}stap-serverd "$@" < /dev/null > /dev/null 2> /dev/null
Unable to start a systemtap server: /usr/lib/systemtap/stap-serverd did not 
start
/usr/bin/stap-server: line 138: /var/log/stap-server/log: Permission denied
FAILED
------------------------------------------------------------

After doing 'chgrp -R stap-server /var/log/stap-server; chmod -R g+rw
/var/log/stap-server', there's still something wrong:

------------------------------------------------------------
$ stap-server start
Starting stap-server -a "x86_64" -r "3.1.0-1-amd64" -u "stap-server"
/usr/lib/systemtap/stap-start-server: line 51:  2689 Aborted                 
${stap_pkglibexecdir}stap-serverd "$@" < /dev/null > /dev/null 2> /dev/null
Unable to start a systemtap server: /usr/lib/systemtap/stap-serverd did not 
start
FAILED
------------------------------------------------------------

Stand-alone 'stap -e ...' invocations work on this same computer, so
all the required debug symbol packages etc. are installed. The machine
I'm trying to run this on is a fresh install of testing in a KVM
virtual machine.

        Sami

Attachment: signature.asc
Description: Digital signature

Reply via email to