<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I have attached the logs from the lttng daemon. I could see errors like below.</p>
<p><br>
</p>
<p></p>
<div><span style="background-color: rgb(255, 255, 0);">Error: Error creating UST channel "channel0" on the consumer daemon</span><br>
</div>
<p></p>
<p><br>
</p>
<p>My commands to create a session are:</p>
<p></p>
<div>lttng create test<br>
lttng enable-channel --session test --userspace --tracefile-size 8388608 --subbuf-size 8388608 channel0<br>
lttng enable-event --channel channel0 --userspace "service:*"<br>
lttng add-context -u -t vtid<br>
lttng add-context -u -t vpid<br>
lttng start<br>
<br>
Installed:<br>
<span>apt-get -y install lttng-tools lttng-modules-dkms liblttng-ust0 <span>liblttng-ust-dev</span></span>
<br>
</div>
<br>
<p></p>
Thanks.<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> jeremie.galarneau@gmail.com <jeremie.galarneau@gmail.com> on behalf of Jérémie Galarneau <jeremie.galarneau@efficios.com><br>
<b>Sent:</b> Sunday, April 9, 2017 2:06 PM<br>
<b>To:</b> Jeffrey Chen<br>
<b>Cc:</b> lttng-dev@lists.lttng.org<br>
<b>Subject:</b> Re: [lttng-dev] LTTng on Docker</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 7 April 2017 at 18:35, Jeffrey Chen <cpthk@live.com> wrote:<br>
> Hi:<br>
><br>
><br>
> I am trying to have LTTng UST tracing inside a docker container. I wasn't<br>
> able to get the UST tracing working. LTTng would not write any UST trace<br>
> files in the directory, even though it printed it would. Has it been tested<br>
> before? Is there any known problem?<br>
<br>
Tracing inside a container (not Docker), where the LTTng daemons and<br>
the applications are running in the same container, is known to work<br>
as this is how most of the LTTng CI works.<br>
<br>
As far as Docker is concerned, I tested it a number of times and it<br>
worked. Can you provide the versions of LTTng and Docker you're using<br>
and the session daemon's logs (launching it with the -vvv option)?<br>
<br>
Thanks,<br>
Jérémie<br>
<br>
><br>
><br>
> $ lttng enable-channel --session test --userspace channel0<br>
><br>
> Error: Channel channel0: UST create channel failed (session ServiceFabric_0)<br>
> Error: Command error<br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> lttng-dev@lists.lttng.org<br>
> <a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" id="LPlnk632716" previewremoved="true">
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a>
<div id="LPBorder_GT_14918472778530.7749348336754354" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14918472778450.52263434094437" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14918472778480.4117515003584903" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14918472778480.343333967527086"></div>
<div id="LPTitle_14918472778480.8766887868350135" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14918472778490.7079886027354777" style="text-decoration: none;" href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">lttng-dev Info Page</a></div>
<div id="LPMetadata_14918472778500.47112231589813147" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; font-size: 14px; line-height: 14px;">
lists.lttng.org</div>
<div id="LPDescription_14918472778520.6602582148353134" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the lttng-dev Archives. Using lttng-dev: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
><br>
<br>
<br>
<br>
-- <br>
Jérémie Galarneau<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" id="LPlnk440294" previewremoved="true">http://www.efficios.com</a>
<div id="LPBorder_GT_14918473357550.248963055382728" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14918473357460.414424549224911" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14918473357480.9923752452490312" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14918473357480.48768909434730534"></div>
<div id="LPTitle_14918473357490.5288885228874352" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14918473357500.7067378978625205" style="text-decoration: none;" href="http://www.efficios.com/" target="_blank">EfficiOS</a></div>
<div id="LPMetadata_14918473357520.6810205760820718" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; font-size: 14px; line-height: 14px;">
www.efficios.com</div>
<div id="LPDescription_14918473357530.6577156845495322" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
At EfficiOS, our main goal is diminishing the amount of time our clients spend identifying faults. We also enable our clients' applications to scale on massive multi ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</span></font></div>
</div>
</body>
</html>