<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Michael Steppe" <msteppe91@gmail.com><br><b>To: </b>lttng-dev@lists.lttng.org<br><b>Sent: </b>Tuesday, November 19, 2013 8:38:53 AM<br><b>Subject: </b>[lttng-dev] Having trouble with LTTng folders<br><div><br></div><div dir="ltr"><div><div><div><div><div><div><div><div>Hello!<br><div><br></div></div>I am currently running lttng-tools 2.0.4 on CentOS 6.3 (unfortunately I cannot upgrade either at this time).<br><div><br></div>I have created a plugin in Eclipse (called LTTng Control) that allows
users to trace without the command line. It is just a simple GUI with
buttons that essentially relate to the system calls in the terminal. One of the options I have allows users to manually connect, via the IP address, to another VM to trace remotely on that VM. So far I support RHEL 6.1, 6.3, 6.4, and CentOS 6.3 remote VMs. I
have made all the system calls as seen below, creating each trace in /tmp and
calling all lttng calls on that specific trace:<br><br>
lttng create TRACE_<date>_<time> -o /tmp/TRACE_<date>_<time><br>
lttng enable-event -a -k TRACE_<date>_<time><br>
lttng start TRACE_<date>_<time><br>
lttng stop TRACE_<date>_<time><br>
lttng destroy TRACE_<date>_<time><br><div><br></div></div><div>I then change ownership of each trace folder (and all subfolders) after the destroy command so that the user who signed in when connecting to the remote VM now has ownership of the trace and can view and open the trace files in the LTTng Eclipse Viewer plugin.<br></div><div><br></div><div>This ALL works PERFECTLY on a remote VM where I had the root account "adduser user". Unfortunately, I need to set up users a little differently for work...<br></div><div><br>I have set up another VM that only has a root account. Using Active Directory, I set up user accounts from my work's development network (giving everyone here at work the ability to sign in with their usernames and passwords), meaning root does not have permissions to edit files owned by these users. Here lies my problem:<br><br></div><div>Let's say I sign in to the remote VM as user = "Scott". When I try and attempt to perform the "create" command through my plugin, I get:<br><div><br></div>An error was encountered on 10.176.15.180 (10.176.15.180)<br>
Host: 10.176.15.180<br>Command: /usr/bin/lttng create TRACE_111913_082211 -o /tmp/TRACE_111913_082211<br>Exit Code: 1<br>No output stream captured<br>Error Output:<br> Error: Unable to create config file<br> Error: Command error<br><br></div><div>I am assuming it is unable to create the config file because the all the tracing folders and files are created and owned by root and root does not have access to write to Scott's home directory, where the config file should go. The trace is actually created, but not .lttngrc file is created. If I perform an 'lttng list" in the remote VM (signed in as Scott), I can see the TRACE_<date>_<time> and that its status is [inactive] (because we haven't started the trace yet).<br><br></div><div>My question is this. Is there a way, in this version of LTT, to have the .lttng and .lttngrc folder/file to be located somewhere else? That way, all the tracing is done by root and the trace files are stored in /tmp and when the tracing is finished, root can give Scott ownership of the trace files?<br><br></div><div>I know that was long and possibly confusing so let me know if you have any questions. Love your tracing tool by the way!</div></div></div></div></div></div></div></div></blockquote><div><br></div><div>I don't think this old version (2.0.4) allowed that. You will probably need to play with your HOME env. var.<br></div><div>to put the .lttngrc file elsewhere. We introduced LTTNG_HOME env. var. later, but I don't think it was<br></div><div>present in 2.0.4.<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Mathieu<br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><div><div><div><div><div><div><br></div><div><br>Thanks!<br></div><div>Michael Steppe<br></div><div><br></div><br></div><br></div></div></div></div></div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com<span name="x"></span><br></div></div></body></html>