<div dir="ltr">Hi All,<div>I'm getting following error when reading traces using babeltrace. I have enabled lttng using relayd and created live session.</div><div><br></div><div>I get this error till the time app is running. After app exits, babeltrace is able to read the traces.</div><div><br></div><div>Is there any error in my config? or am i doing anything wrong here?<br><div><br></div><div>
<p class="">$>babeltrace /var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325/</p>
<p class="">[warning] Ill-shapen or missing "/* CTF x.y" header for text-only metadata.</p>
<p class="">[warning] Unsupported CTF specification version 552137642.32558. Trying anyway.</p><p class="">[error] at line 1: token "": syntax error, unexpected $end</p>
<p class="">[error] Error creating AST<br></p>
<p class="">[warning] Unable to open trace metadata for path "/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325".</p>
<p class="">[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.</p>
<p class="">[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.</p><p class="">[error] Cannot open any trace for reading.</p>
<p class="">[error] opening trace "/var/tmp/lttng-traces/node/mysession-20141107-051543/ust/pid/logtrace-5797-20141107-061325/" for reading.<br></p>
<p class="">[error] none of the specified trace paths could be opened.<br></p><p class=""><br></p><p class=""><br></p><p class="">The way i'm enabling lttng:</p><p class=""><br></p><p class="">sudo -H /usr/bin/lttng-relayd -o /var/tmp/lttng-traces -d </p><p class="">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</p><p class="">sudo -H /usr/bin/lttng create mysession --live 1000000 -U net://$ipaddr</p><p class="">sudo -H /usr/bin/lttng enable-channel mychannel --userspace --buffers-pid -s mysession --tracefile-size 8388608 --tracefile-count 8 </p><p class="">sudo -H /usr/bin/lttng enable-event --channel mychannel --userspace --all --exclude 'ust_libc:*' -s mysession </p><p class="">sudo -H /usr/bin/lttng start<br></p><p class=""><br></p><p class="">Thanks,</p><p class="">Anand Neeli</p></div></div></div>