* [lttng-dev] running lttng 2.10 on Docker 1.13.1
[not found] <97612750.1097694.1556328978552.ref@mail.yahoo.com>
@ 2019-04-27 1:36 ` whalajam
2019-04-27 1:44 ` whalajam
0 siblings, 1 reply; 3+ messages in thread
From: whalajam @ 2019-04-27 1:36 UTC (permalink / raw)
Hi,I have one docker container on which I installed LTTng version 2.10.I use the same Docker container to build and run the application.?The problem I have is that there are no traces in the path specified when doing "lttng create". "lttng view"fails complaining about files not found, the trace directories are sometimes added to the path but the /root/lttng../../../channel0_* files are empty.=C2=A0I've followed the installation instructions from=C2=A0http://frederic-wou.net/lttng/and docs on=C2=A0https://lttng.org/docs/v2.10/=C2=A0These are the commands: "lttng enable -u a:b", "lttng start", <excercise-the-tracepoints>,"lttng stop" and "lttng view". lttng-consumerd is running. Running 'lttng-sessiond --vvv' returns DEBUG info and an error about server already runningWhat could be the reason for the failure, how can I debug it?John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190427/2b8df734/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] running lttng 2.10 on Docker 1.13.1
2019-04-27 1:36 ` [lttng-dev] running lttng 2.10 on Docker 1.13.1 whalajam
@ 2019-04-27 1:44 ` whalajam
2019-04-29 15:11 ` Jonathan Rajotte-Julien
0 siblings, 1 reply; 3+ messages in thread
From: whalajam @ 2019-04-27 1:44 UTC (permalink / raw)
I attach the lttng-sessiond -vvv output,John
On Friday, April 26, 2019, 9:38:36 p.m. EDT, whalajam--- via lttng-dev <lttng-dev at lists.lttng.org> wrote:
Hi,I have one docker container on which I installed LTTng version 2.10.I use the same Docker container to build and run the application.?The problem I have is that there are no traces in the path specified when doing "lttng create". "lttng view"fails complaining about files not found, the trace directories are sometimes added to the path but the /root/lttng../../../channel0_* files are empty.=C2=A0I've followed the installation instructions from=C2=A0http://frederic-wou.net/lttng/and docs on=C2=A0https://lttng.org/docs/v2.10/=C2=A0These are the commands: "lttng enable -u a:b", "lttng start", <excercise-the-tracepoints>,"lttng stop" and "lttng view". lttng-consumerd is running. Running 'lttng-sessiond --vvv' returns DEBUG info and an error about server already runningWhat could be the reason for the failure, how can I debug it?John
_______________________________________________
lttng-dev mailing list
lttng-dev at lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190427/ba637299/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lttng.txt
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190427/ba637299/attachment.txt>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] running lttng 2.10 on Docker 1.13.1
2019-04-27 1:44 ` whalajam
@ 2019-04-29 15:11 ` Jonathan Rajotte-Julien
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Rajotte-Julien @ 2019-04-29 15:11 UTC (permalink / raw)
Hi John,
On Sat, Apr 27, 2019 at 01:44:47AM +0000, whalajam--- via lttng-dev wrote:
> I attach the lttng-sessiond -vvv output,John
> On Friday, April 26, 2019, 9:38:36 p.m. EDT, whalajam--- via lttng-dev <lttng-dev at lists.lttng.org> wrote:
>
> Hi,I have one docker container on which I installed LTTng version 2.10.I use
> the same Docker container to build and run the application.?The problem I
> have is that there are no traces in the path specified when doing "lttng
> create". "lttng view"fails complaining about files not found, the trace
> directories are sometimes added to the path but the
> /root/lttng../../../channel0_* files are empty.=C2=A0I've followed the
> installation instructions from=C2=A0http://frederic-wou.net/lttng/and docs
> on=C2=A0https://lttng.org/docs/v2.10/=C2=A0These are the commands: "lttng
> enable -u a:b", "lttng start", <excercise-the-tracepoints>,"lttng stop" and
> "lttng view". lttng-consumerd is running. Running 'lttng-sessiond --vvv'
> returns DEBUG info and an error about server already runningWhat could be the
> reason for the failure, how can I debug it?John
Multiple things going on here.
First, I gather from your explanation and log from sessiond that you most
probably installed lttng using a PPA or an equivalent. Note that some packages
will install a service and launch a root lttng-sessiond on start.
To get a verbose lttng-sessiond, you can disable this service, and then run
lttng-sessiond manually with the verbose option (-vvv --verbose-consumer).
systemctl stop lttng-sessiond.serive
systemctl disable lttng-sessiond.service
lttng-sessiond -vvv --verbose-consumer
Or you can modify the service file. You will have to add the necessary options
and systemd output redirection.
If this is not the case, make sure to kill the other instance of lttng-sessiond.
> DEBUG3 - 22:36:39.908815000 [23511/23511]: Creating LTTng run directory: /var/run/lttng (in create_lttng_rundir() at main.c:5301)
> Error: A session daemon is already running.
As for your actual "problem", the likely culprit is that either no instrumented
application is tracing and no file are generated or you forgot to issue a "lttng
stop" or "lttng destroy" (on destroy an implicit stop is done since 2.9 if I
recall correctly) command.
When launching an app that you know is instrumented you can launch it with
LTTNG_UST_DEBUG=y env variable defined to get more information e.g if the app is
able to actually register to a lttng-sessiond instances.
Could you give us more information on the Docker image used
and if an open-source version of it is available so we can try and recreate the
problem? I guess, most probably, a Centos image on the tutorial link you
provided. We would still need the version and as much information you can
provide.
Cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-29 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <97612750.1097694.1556328978552.ref@mail.yahoo.com>
2019-04-27 1:36 ` [lttng-dev] running lttng 2.10 on Docker 1.13.1 whalajam
2019-04-27 1:44 ` whalajam
2019-04-29 15:11 ` Jonathan Rajotte-Julien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox