[lttng-dev] babeltrace error when reading traces

Anand Neeli anand.neeli at gmail.com
Fri Nov 7 09:26:16 EST 2014


Hi All,
I'm getting following error when reading traces using babeltrace. I have
enabled lttng using relayd and created live session.

I get this error till the time app is running. After app exits, babeltrace
is able to read the traces.

Is there any error in my config? or am i doing anything wrong here?

$>babeltrace
/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325/

[warning] Ill-shapen or missing "/* CTF x.y" header for text-only metadata.

[warning] Unsupported CTF specification version 552137642.32558. Trying
anyway.

[error] at line 1: token "": syntax error, unexpected $end

[error] Error creating AST

[warning] Unable to open trace metadata for path
"/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325".

[warning] [Context] Cannot open_trace of format ctf at path
/var/tmp/lttng-traces/vevo_re_node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325.

[warning] [Context] cannot open trace
"/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325"
from
/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325/
for reading.

[error] Cannot open any trace for reading.

[error] opening trace
"/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325/"
for reading.

[error] none of the specified trace paths could be opened.



The way i'm enabling lttng:


sudo -H /usr/bin/lttng-relayd -o /var/tmp/lttng-traces -d

sudo -H /usr/bin/lttng-sessiond --consumerd32-path
/usr/lib/lttng/libexec/lttng-consumerd --consumerd32-libdir /usr/lib/
--consumerd64-path /usr/lib64/lttng/libexec/lttng-consumerd
--consumerd64-libdir /usr/lib64/ -b --no-kernel

sudo -H /usr/bin/lttng create mysession --live 1000000 -U net://$ipaddr

sudo -H /usr/bin/lttng enable-channel mychannel --userspace --buffers-pid
-s mysession --tracefile-size 8388608 --tracefile-count 8

sudo -H /usr/bin/lttng enable-event --channel mychannel --userspace --all
--exclude 'ust_libc:*' -s mysession

sudo -H /usr/bin/lttng start


Thanks,

Anand Neeli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20141107/af9b9905/attachment.html>


More information about the lttng-dev mailing list