adding EVENT_NOEPOLL environment variable to transmission start script

276 views
Skip to first unread message

Mike Lepard

unread,
Dec 18, 2014, 9:33:02 PM12/18/14
to al...@googlegroups.com
I'm having a recent issue with transmission on my DNS-323.  I recently switched to Alt-F because I was having crashing issues with Transmission...it would run for a random amount of time and the crash...with no indications in the transmission log file or system log files of why.

I ran transmission in strace and got the following log file: http://pastebin.com/Nn2TKKUi

The issues seems to be with the lib_epoll:
clock_gettime(CLOCK_MONOTONIC, {1417987408, 488684000}) = 0
gettimeofday({1418005408, 467347}, NULL) = 0
gettimeofday({1418005408, 467945}, NULL) = 0
epoll_wait(0x6, 0x9c4f8, 0x20, 0x3e5)   = -1 EINTR (Interrupted system call)
+++ killed by SIGKILL +++

Continuing my google search, I found this post on transmission about a lib_epoll issue:  https://forum.transmissionbt.com/viewtopic.php?f=8&t=10931

Their recommendation is to set an environment variable: EVENT_NOEPOLL to 1.  I tried doing this in the /etc/init.d/S81Transmission file by adding:

EVENT_NOEPOLL=1; export EVENT_NOEPOLL to file.

However, this didn't seem to make any difference, I'm currently trying to run transmission-daemon manually from ssh with the environment variable set in shell.  It is possible I have a different problem entirely...and the environment variable is being set correctly.  However, if the above method isn't the right way to do this in the init.d script, what is?

Is there a way to set an environment variable and have it carried over to launching the process with start-stop-daemon?  Is there a way to set it for the transmission user that would also work?

Thanks for all the work on Alt-F...it's a great change from the OEM firmware.


João Cardoso

unread,
Dec 19, 2014, 10:22:22 AM12/19/14
to


On Friday, December 19, 2014 2:33:02 AM UTC, Mike Lepard wrote:
I'm having a recent issue with transmission on my DNS-323.  I recently switched to Alt-F because I was having crashing issues with Transmission...it would run for a random amount of time and the crash...with no indications in the transmission log file or system log files of why.

I ran transmission in strace and got the following log file: http://pastebin.com/Nn2TKKUi

The issues seems to be with the lib_epoll:
clock_gettime(CLOCK_MONOTONIC, {1417987408, 488684000}) = 0
gettimeofday({1418005408, 467347}, NULL) = 0
gettimeofday({1418005408, 467945}, NULL) = 0
epoll_wait(0x6, 0x9c4f8, 0x20, 0x3e5)   = -1 EINTR (Interrupted system call)
+++ killed by SIGKILL +++

Continuing my google search, I found this post on transmission about a lib_epoll issue:  https://forum.transmissionbt.com/viewtopic.php?f=8&t=10931

Their recommendation is to set an environment variable: EVENT_NOEPOLL to 1.  I tried doing this in the /etc/init.d/S81Transmission file by adding:

EVENT_NOEPOLL=1; export EVENT_NOEPOLL to file.

However, this didn't seem to make any difference,


No, as there is no sign of that string in neither the transmission binary or libevent library:

strings /usr/lib/libevent-2.0.so.5 | grep -i poll
strings /usr/bin/transmission-daemon | grep -i poll

Can't help...

PS: but 

strings /usr/lib/libevent-2.0.so.5 | grep EVENT

gives

EVENT_NO%s

which makes possible that EVENT_NOEPOLL to be recognized by the libevent library.
The variable is set OK, If it doesn't work than that is not the issue. And the discussion you refer to is for transmission 2.12, we are using 2.84...
Reply all
Reply to author
Forward
0 new messages