Page 1 of 2

Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 8:33 am
by dustmud
I encountered an issue for Transmission client on v11 i just upgraded.

The server will automatically stop after a few second after start. Anyone encountered the same issue?

Frankly I have not tried before v11 upgrade. So I don't know if it worked before on my NWSP2.

Re: Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 8:42 am
by bozo29
Have you forwarded port 51413 on your router?
I run transmission since I installed fvdw-sl-11 (over one month) and never stop.

Re: Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 11:20 am
by dustmud
Hi Bozo29,

thanks for your reply. I just tried the 51413 port forwarding, but it still does not work... :(

Re: Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 12:21 pm
by silver1974
dustmud wrote:Hi Bozo29,
thanks for your reply. I just tried the 51413 port forwarding, but it still does not work... :(

There is no problem with Transmission, I think, your router has the port triggering problem, try to enable UPnP.

Re: Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 12:45 pm
by bozo29
@silver1974 - On my router i don't enabel UPnP and it works.
@dustmud - Do you forwarded port for both (UDP & TCP) protocol?
- could you take a screenshot of your port fordwarding settings?
- maybe help if you tell us what model of router do you have.

Re: Transmission server auto stop on v11

PostPosted: Fri Feb 24, 2012 4:57 pm
by fvdw
I did not set anything on my router and transmission just works fine. What happens if you do not start any torrent ?

Re: Transmission server auto stop on v11

PostPosted: Tue Feb 28, 2012 1:36 pm
by dustmud
hi ALL,

thanks. I am using netgear wgr614 v7. Frankly, I am not so familiar about port triggering mechanism, but I think I have configured it on my router. Below is the screen shot.

[ img ]
[ img ]

I also enabled upnp on my router, but it seemed does not make any difference.

Re: Transmission server auto stop on v11

PostPosted: Tue Feb 28, 2012 7:29 pm
by fvdw
how do you start the daemon ? Do you use the fvdw-sl webinterface and the button in transmission menu ?
Did you also use the button in the webinterface to install transmission ?

If that is the case then connect to the nwsp2 via ssh (putty) and give at the command line this command
Code: Select all
/usr/bin/transmission-daemon  -g /share/1000/tr-daemon --log-debug -f


This will start the transmission daemon in foreground mode and show all messages on the command line. That should give info why the daemon stops on your system

ps the daemon should run regardless of your routers settings.

Re: Transmission server auto stop on v11

PostPosted: Wed Feb 29, 2012 6:01 am
by dustmud
Hi FVDW,

Thanks for your advice. I tried your suggestion and got below system messages:


root@homediskserver:/ # root@homediskserver:/ # /usr/bin/transmission-daemon -g
/share/1000/tr-daemon --
-sh: root@homediskserver:/: not found
log-debug -f
[13:50:06.621] Transmission 2.42 (13013) started (session.c:718)
[13:50:06.621] Couldn't read "/share/1000/tr-daemon/stats.json": No such file or directory (utils.c:443)
[13:50:06.621] Couldn't read "/share/1000/tr-daemon/stats.benc": No such file or directory (utils.c:443)
[13:50:06.621] Cache Maximum cache size set to 2.00 MiB (128 blocks) (cache.c:249)
[13:50:06.621] RPC Server Adding address to whitelist: 127.0.0.* (rpc-server.c:803)
[13:50:06.621] RPC Server Adding address to whitelist: *.*.*.* (rpc-server.c:803)
[13:50:06.621] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
[13:50:06.622] RPC Server Whitelist enabled (rpc-server.c:1001)
[13:50:06.622] RPC Server Password required (rpc-server.c:1004)
[13:50:06.622] Bound socket 13 to port 51413 on 0.0.0.0 (net.c:373)
[13:50:06.622] Bound socket 14 to port 51413 on :: (net.c:373)
[13:50:06.622] UDP Failed to set receive buffer: requested 4194304, got 217088 (tr-udp.c:75)
root@homediskserver:/ # log-debug -f
[13:50:06.622] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[13:50:06.622] UDP Failed to set send buffer: requested 1048576, got 217088 (tr-udp.c:86)
[13:50:06.622] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
[13:50:06.622] DHT Initializing DHT (tr-dht.c:276)
[13:50:06.622] Couldn't read "/share/1000/tr-daemon/dht.dat": No such file or directory (utils.c:443)
[13:50:06.622] DHT Generating new id (tr-dht.c:309)
[13:50:06.622] DHT DHT initialized (tr-dht.c:330)
[13:50:06.622] Using settings from "/share/1000/tr-daemon" (daemon.c:502)
-sh: log-debug: not found
[13:50:06.622] Saved "/share/1000/tr-daemon/settings.json" (bencode.c:1721)
[13:50:06.623] transmission-daemon requiring authentication (daemon.c:522)
[13:50:06.623] ni.hao.SB Read resume file "/share/1000/tr-daemon/resume/ni.hao.SB.resume" (resume.c:692)
[13:50:06.623] ni.hao.SB Resume file found 11 files marked for download (resume.c:205)
root@homediskserver:/ # [13:50:06.621] Couldn't read "/share/1000/tr-daemon/stat
s.json": No such file or directory (utils.c:443)
> [13:50:06.621] Couldn't read "/share/1000/tr-daemon/stats.benc": No such file
or directory (utils.c:443)
-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.621] Cache Maximum cache size set to 2.00 MiB
(128 blocks) (cache.c:249)
-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.621] RPC Server Adding address to whitelist: 1
27.0.0.* (rpc-server.c:803)
-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.621] RPC Server Adding address to whitelist: *
.*.*.* (rpc-server.c:803)
-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.621] RPC Server Serving RPC and Web requests o
n port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
-sh: [13:50:06.624] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[13:50:06.624] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72)
syntax error: unexpected "("
[13:50:08.624] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:80/Public_UPNP_C3" (upnp.c:113)
[13:50:08.625] Port Forwarding (UPnP) Local Address is "192.168.1.99" (upnp.c:115)
[13:50:08.625] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:80/Public_UPNP_C3", service "urn:schemas-upnp-org:service:WANIPConnection:1". (locaroot@homediskserver:/ # [13:50:06.622] RPC Server Whitelist enabled (rpc-server.
c:1001)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] RPC Server Password required (rpc-server.
c:1004)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] Bound socket 13 to port 51413 on 0.0.0.0
(net.c:373)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] Bound socket 14 to port 51413 on :: (net.
c:373)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] UDP Failed to set receive buffer: request
ed 4194304, got 217088 (tr-udp.c:75)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] UDP Please add the line "net.core.rmem_ma
x = 4194304" to /etc/sysctl.conf (tr-udp.c:80)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] UDP Failed to set send buffer: requested
1048576, got 217088 (tr-udp.c:86)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] UDP Please add the line "net.core.wmem_ma
x = 1048576" to /etc/sysctl.conf (tr-udp.c:91)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] DHT Initializing DHT (tr-dht.c:276)

-sh: syntax error: unexpected "("
root@homediskserver:/ # [13:50:06.622] Couldn't read "/share/1000/tr-daemon/dht.
dat": No such file or directory (utils.c:443)
> [13:50:06.622] DHT Generating new id (tr-dht.c:309)
> [13:50:06.622] DHT DHT initialized (tr-dht.c:330)
> [13:50:06.622] Using settings from "/share/1000/tr-daemon" (daemon.c:502)
> [13:50:06.622] Saved "/share/1000/tr-daemon/settings.json" (bencode.c:1721)
> [13:50:06.623] transmission-daemon requiring authentication (daemon.c:522)
> [13:50:06.623] ni.hao.SB Read resume file "/share/1000/tr-daemon/resume/ni.hao.SB.45f3e7db557ba2b3.resume" (resume.c:692)
> [13:50:06.623] X-Art - Star Resume file found 11 files marked for download (re
sume.c:205)
> [13:50:06.624] Loaded 1 torrents (session.c:1937)
> [13:50:06.624] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72
)
> [13:50:06.624] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2
) (natpmp.c:72)
> [13:50:08.624] Port Forwarding (UPnP) Found Internet Gateway Device "http://19
2.168.1.1:80/Public_UPNP_C3" (upnp.c:113)
> [13:50:08.625] Port Forwarding (UPnP) Local Address is "192.168.1.99" (upnp.c:
115)
> [13:50:08.625] Port Forwarding (UPnP) Port forwarding through "http://192.168.
1.1:80/Public_UPNP_C3", service "urn:schemas-upnp-org:service:WANIPConnection:1"
. (local address: 192.168.1.99:51413) (upnp.c:221)
> [13:50:08.625] Port
> [13:50:08.625] Port Forwarding Forwarded (port-forwarding.c:93)
> Segmentation fault


Seemed there is something wrong. But I am just too new to Linux and don't know how to fix that.

Re: Transmission server auto stop on v11

PostPosted: Wed Feb 29, 2012 8:18 am
by fvdw
from this output I conclude that you didn't either install transmission via the webinterface (as several of the files it needs in /share/1000/tr-daemon can not be found, or that directory is corrupt. If you did install transmission via de webinterface then check the presence of the tr-daemon folder (share) via explorer and its content to see if the missing files are there or not. If you didn't install it then install it
If all files are there then the problem can be due to bad sectors on the disk you use.
That transmission fails with a segmentation fault is also strange, that normally means a faulty code, can also be caused by a disk problem. Why I think that a disk problem is possible problem is because on many other systems it runs without a problem

Think it is better that you remove the tr-daemon share and re-install the firmware.

below the output on my system for reference

Code: Select all
root@fvdwsl-nwsp2:/ # /usr/bin/transmission-daemon  -g /share/1000/tr-daemon --log-debug -f
[09:01:54.039] Transmission 2.42 (13013) started (session.c:718)
[09:01:54.039] Cache Maximum cache size set to 2.00 MiB (128 blocks) (cache.c:249)
[09:01:54.039] RPC Server Adding address to whitelist: 127.0.0.* (rpc-server.c:803)
[09:01:54.039] RPC Server Adding address to whitelist: *.*.*.* (rpc-server.c:803)
[09:01:54.039] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
[09:01:54.040] RPC Server Whitelist enabled (rpc-server.c:1001)
[09:01:54.041] RPC Server Password required (rpc-server.c:1004)
[09:01:54.041] Bound socket 12 to port 51413 on 0.0.0.0 (net.c:373)
[09:01:54.042] Bound socket 13 to port 51413 on :: (net.c:373)
[09:01:54.042] UDP Failed to set receive buffer: requested 4194304, got 217088 (tr-udp.c:75)
[09:01:54.043] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[09:01:54.043] UDP Failed to set send buffer: requested 1048576, got 217088 (tr-udp.c:86)
[09:01:54.043] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
[09:01:54.043] DHT Initializing DHT (tr-dht.c:276)
[09:01:54.044] DHT Reusing old id (tr-dht.c:305)
[09:01:54.044] DHT DHT initialized (tr-dht.c:330)
[09:01:54.044] DHT Bootstrapping from 60 IPv4 nodes (tr-dht.c:153)
[09:01:54.044] Using settings from "/share/1000/tr-daemon" (daemon.c:502)
[09:01:54.045] Saved "/share/1000/tr-daemon/settings.json" (bencode.c:1721)
[09:01:54.045] transmission-daemon requiring authentication (daemon.c:522)