All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: problem running/installing lttng on ubuntu 16.04
       [not found] <CAKH_oXJ+20uS1d1S71JLbYkPO9+Cx=3v4-+Ss_jbj7rnUzp8_w@mail.gmail.com>
@ 2016-08-22 18:25 ` Jonathan Rajotte Julien
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte Julien @ 2016-08-22 18:25 UTC (permalink / raw)
  To: lttng-dev

Hi Noam,

On 2016-08-17 06:25 AM, Noam Cohen wrote:
> Hello
> I installed lttng on my ubuntu, and tried the "getting Started".
>
> I ran the helloWorld, and then
> $ lttng list --userspace
> Error: Unable to list UST events: No session daemon is available
> Error: Command error
This looks like a normal error based on the absence of a session daemon.

> Waited a minute and retried, and now the output was as expected.

Is it possible you created a session in the mean time ?

The only command that should spawn a session daemon is "lttng create ... ".

Just to make sure this  is not simply because sessiond is not ready you 
can pass the "-b" option to lttng-sessiond to make sure that the command 
line return only when sessiond is ready.

> $ lttng list --userspace
> UST events:
> -------------
>
> PID: 17386 - Name: ./hello
>        lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
> tracepoint)
>        < SNIP >
>        hello_world:my_first_tracepoint (loglevel: TRACE_DEBUG_LINE (13))
> (type: tracepoint)
>
> **Is it normal behavior?*
>
> Then,
> $ lttng create
> Session auto-20160817-132123 created.
> Traces will be written in /home/noam/lttng-traces/auto-20160817-132123
> noam@noam-nuc:~/tmp/lttng$ lttng enable-event --userspace
> hello_world:my_first_tracepoint
> Error: Event hello_world:my_first_tracepoint: UST create channel failed
> (channel channel0, session auto-20160817-132123)
This is clearly unexpected, logs should provide more information.
>
> How do I solve it?
> ---------------------
> system properties:
>
> noam@noam-nuc:~$ ps -ef | grep lttng
> noam     17410 17398  0 13:18 pts/3    00:00:00 lttng-sessiond -vvv

Since you passed the -vvv option could we see the log ?

> noam     17411 17410  0 13:18 pts/3    00:00:00 lttng-runas    -vvv
> noam     17442 17410  0 13:21 pts/3    00:00:00 lttng-consumerd  -u
> --consumerd-cmd-sock /home/noam/.lttng/ustconsumerd64/command
> --consumerd-err-sock /home/noam/.lttng/ustconsumerd64/error --group tracing
> noam     17444 17442  0 13:21 pts/3    00:00:00 lttng-runas      -u
> --consumerd-cmd-sock /home/noam/.lttng/ustconsumerd64/command
> --consumerd-err-sock /home/noam/.lttng/ustconsumerd64/error --group tracing
> noam     17480 17467  0 13:22 pts/7    00:00:00 grep --color=auto lttng
> noam@noam-nuc:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.1 LTS
> Release: 16.04
> Codename: xenial
>
>
> Installed lttng using:
> sudo apt-get install lttng-tools lttng-modules-dkms liblttng-ust-dev
>
>
> $ lttng --version
> lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Jonathan R. Julien
Efficios

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* problem running/installing lttng on ubuntu 16.04
@ 2016-08-17 10:25 Noam Cohen
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Cohen @ 2016-08-17 10:25 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2019 bytes --]

Hello
I installed lttng on my ubuntu, and tried the "getting Started".


I ran the helloWorld, and then
$ lttng list --userspace
Error: Unable to list UST events: No session daemon is available
Error: Command error

Waited a minute and retried, and now the output was as expected.
$ lttng list --userspace
UST events:
-------------

PID: 17386 - Name: ./hello
      lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
tracepoint)
      < SNIP >
      hello_world:my_first_tracepoint (loglevel: TRACE_DEBUG_LINE (13))
(type: tracepoint)

**Is it normal behavior?*


Then,
$ lttng create
Session auto-20160817-132123 created.
Traces will be written in /home/noam/lttng-traces/auto-20160817-132123
noam@noam-nuc:~/tmp/lttng$ lttng enable-event --userspace
hello_world:my_first_tracepoint
Error: Event hello_world:my_first_tracepoint: UST create channel failed
(channel channel0, session auto-20160817-132123)

How do I solve it?
---------------------
system properties:

noam@noam-nuc:~$ ps -ef | grep lttng
noam     17410 17398  0 13:18 pts/3    00:00:00 lttng-sessiond -vvv
noam     17411 17410  0 13:18 pts/3    00:00:00 lttng-runas    -vvv
noam     17442 17410  0 13:21 pts/3    00:00:00 lttng-consumerd  -u
--consumerd-cmd-sock /home/noam/.lttng/ustconsumerd64/command
--consumerd-err-sock /home/noam/.lttng/ustconsumerd64/error --group tracing
noam     17444 17442  0 13:21 pts/3    00:00:00 lttng-runas      -u
--consumerd-cmd-sock /home/noam/.lttng/ustconsumerd64/command
--consumerd-err-sock /home/noam/.lttng/ustconsumerd64/error --group tracing
noam     17480 17467  0 13:22 pts/7    00:00:00 grep --color=auto lttng
noam@noam-nuc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial


Installed lttng using:
sudo apt-get install lttng-tools lttng-modules-dkms liblttng-ust-dev


$ lttng --version
lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne

[-- Attachment #1.2: Type: text/html, Size: 2888 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-22 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAKH_oXJ+20uS1d1S71JLbYkPO9+Cx=3v4-+Ss_jbj7rnUzp8_w@mail.gmail.com>
2016-08-22 18:25 ` problem running/installing lttng on ubuntu 16.04 Jonathan Rajotte Julien
2016-08-17 10:25 Noam Cohen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.