<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I keep getting the following error from
lttng enable-channel:</font>
<br>
<br><tt><font size=2>libust[2984/2986]: Error: Timed out waiting for lttng-sessiond
(in lttng_ust_init() at lttng-ust-comm.c:1444)</font></tt>
<br>
<br><font size=2 face="sans-serif">The scenario is quite simple - during
boot of the system, we create a session, enable a channel, etc., like this:</font>
<br>
<br><tt><font size=2># /usr/bin/lttng-sessiond --no-kernel -b</font></tt>
<br><tt><font size=2>Warning: No tracing group detected</font></tt>
<br><tt><font size=2># /usr/bin/lttng create nextra -o /local/traces/lttng/20140402123725</font></tt>
<br><tt><font size=2>Session nextra created.</font></tt>
<br><tt><font size=2>Traces will be written in /local/traces/lttng/20140402123725</font></tt>
<br><tt><font size=2># /usr/bin/lttng enable-channel channel0 -u --tracefile-size
67108864 --tracefile-count 40 --buffers-uid --switch-timer 1000000 --num-subbuf
16 --subbuf-size 262144</font></tt>
<br><tt><font size=2>libust[2984/2986]: Error: Timed out waiting for lttng-sessiond
(in lttng_ust_init() at lttng-ust-comm.c:1444)</font></tt>
<br><tt><font size=2>Warning: No tracing group detected</font></tt>
<br>
<br><font size=2 face="sans-serif">The PID </font><tt><font size=2>2984</font></tt><font size=2 face="sans-serif">
belongs to the lttng-consumerd. At that point in time I see the following
in syslog:</font>
<br>
<br><font size=2 face="sans-serif">2014/04/02 12:38:03.370576 kernel
error nextra-6663235-module-1 [ 56.376155] proc
lttng-sessiond with pid 632 goes to delayed retry in epoll_wait(): start
jiffies 4294904844, stop jiffies=4294906390 (+1546), expected final stop
jiffies=9223372041149680651 (+9223372036854775807), next stop jiffies=9223372041149682197
(+9223372036854775807)</font>
<br><font size=2 face="sans-serif">2014/04/02 12:38:03.399245 kernel
error nextra-6663235-module-1 [ 56.405166] proc
lttng-sessiond with pid 632 goes to delayed retry in epoll_wait(): start
jiffies 4294904844, stop jiffies=4294906397 (+1553), expected final stop
jiffies=9223372041149680651 (+9223372036854775807), next stop jiffies=9223372041149682204
(+9223372036854775807)</font>
<br><font size=2 face="sans-serif">2014/04/02 12:38:03.405700 kernel
error nextra-6663235-module-1 [ 56.411791] proc
lttng-sessiond with pid 632 goes to delayed retry in epoll_wait(): start
jiffies 4294904844, stop jiffies=4294906398 (+1554), expected final stop
jiffies=9223372041149680651 (+9223372036854775807), next stop jiffies=9223372041149682205
(+9223372036854775807)</font>
<br>
<br><font size=2 face="sans-serif">And finally, the command succeeds:</font>
<br>
<br><tt><font size=2>UST channel channel0 enabled for session nextra</font></tt>
<br>
<br><font size=2 face="sans-serif">My guess is that the boot sequence is
loading some traced application before the channel is enabled, and the
consumerd is started, which under heavy system load (exists during initial
boot time) times out waiting for the sessiond. If that was the case, I
could try to increase the timeout time, but that also delays my booting,
which I cannot afford to do.</font>
<br>
<br><font size=2 face="sans-serif">Suggestions?</font>
<br>
<br>
<br><font size=2 color=#000080 face="sans-serif">Amit Margalit</font>
<br><font size=2 color=#808000 face="sans-serif">IBM XIV </font><font size=2 face="sans-serif">-
<i>Storage Reinvented</i></font>
<br><font size=2 face="sans-serif">XIV-NAS Development Team</font>
<br><font size=2 face="sans-serif">Tel. 03</font><font size=2 face="Arial">-689-7774</font>
<br><font size=2 face="Arial">Fax. 03-689-7230</font>