Page 1 of 1
[HELP] Web Interface Can't Start
Posted: Wed May 12, 2010 3:15 am
by whiskier
I use Ubuntu 10.04 Server.And use
sudo apt-get install transmission-daemon to install transmission-daemon
Then I edit
/etc/transmission-daemon/settings.json
Code: Select all
{
"blocklist-enabled": 0,
"download-dir": "\/var\/lib\/transmission-daemon\/downloads",
"incomplete-dir": "\/var\/lib\/transmission-daemon\/incoming",
"incomplete-dir-enabled": true,
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 0,
"max-peers-global": 500,
"peer-port": 51413,
"pex-enabled": 1,
"port-forwarding-enabled": 0,
"rpc-enabled": 1,
"rpc-authentication-required": 1,
"rpc-password": "mission",
"rpc-port": 9091,
"rpc-username": "trans",
"rpc-whitelist": "*",
"upload-limit": 100,
"upload-limit-enabled": 0,
"preallocation": 1
}
Then I use
sudo /etc/init.d/transmission-daemon restart.It told me OK.
But I use
sudo netstat -antup 9091 is not open .There is only four 51413 opened by transmission-da
Need I configure Apache or Nginx?
Re: [HELP] Web Interface Can't Start
Posted: Wed May 12, 2010 9:40 pm
by rb07
Try:
Also you could check if the port has been changed on the parameters (look for -p ####):
Code: Select all
pstree -al `pidof transmission-daemon`
Re: [HELP] Web Interface Can't Start
Posted: Fri May 14, 2010 6:17 am
by whiskier
Thank you very much!
I don't know there is config file in /var/lib/transmission-daemon/info, the "rpc-enabled" in it is false.Now I can connect it by web ui
so , the settings.json in /etc/transmission-daemon/ is useless?
Re: [HELP] Web Interface Can't Start
Posted: Fri May 14, 2010 5:44 pm
by rb07
The settings.json is used by the daemon no doubt about that, the question is: where is the real one?
My guess is that the package builders for Ubuntu did some extra work which is normal, like add a new user to run the daemon as (security feature), add init.d script and parameters file (in /etc/conf.d perhaps? that's the standard but you can see the /etc/init.d/transmission-daemon script to see where it loads the parameters from). One of those parameters defines where the configuration is stored, /var/lib/transmission-daemon doesn't sound like a standard place, the one in /etc/transmission does sound like some kind of standard, but who knows?
If nobody changed the default parameter, then the daemon uses a .transmission directory in the home dir of the user that is running it.
Also remember that the daemon writes to settings.json when its running, each time you change a parameter say through the Web client (speed limits, download directories, etc.) and when it shuts down. Newer versions try to not overwrite parameters you changed in that file, but the only sure way is to stop the daemon, edit the file, then start the daemon... and if the same parameter was specified in the file and in the start-up of the daemon, I think the parameter passed to the daemon wins (it does at least for the speeds which I have as fixed on the start-up and settings.json has as the last speed I set through Qtr or the Web client).
Re: [HELP] Web Interface Can't Start
Posted: Fri May 14, 2010 6:44 pm
by Longinus00
rb07 wrote:The settings.json is used by the daemon no doubt about that, the question is: where is the real one?
My guess is that the package builders for Ubuntu did some extra work which is normal, like add a new user to run the daemon as (security feature), add init.d script and parameters file (in /etc/conf.d perhaps? that's the standard but you can see the /etc/init.d/transmission-daemon script to see where it loads the parameters from). One of those parameters defines where the configuration is stored, /var/lib/transmission-daemon doesn't sound like a standard place, the one in /etc/transmission does sound like some kind of standard, but who knows?
If nobody changed the default parameter, then the daemon uses a .transmission directory in the home dir of the user that is running it.
http://trac.transmissionbt.com/wiki/UnixServer/Debian
https://bugs.launchpad.net/ubuntu/+sour ... bug/571097
rb07 wrote:
Also remember that the daemon writes to settings.json when its running, each time you change a parameter say through the Web client (speed limits, download directories, etc.) and when it shuts down. Newer versions try to not overwrite parameters you changed in that file, but the only sure way is to stop the daemon, edit the file, then start the daemon... and if the same parameter was specified in the file and in the start-up of the daemon, I think the parameter passed to the daemon wins (it does at least for the speeds which I have as fixed on the start-up and settings.json has as the last speed I set through Qtr or the Web client).
Transmission only touches settings.json at loading and closing, never in between without a HUP signal. Transmission will completely wipe any changes made to settings.json when it closes.
Re: [HELP] Web Interface Can't Start
Posted: Mon Jun 28, 2010 9:17 pm
by Runner42
Hello,
I need some help as I get an error message (connection refused) when I want to run the transmission web gui. I installed transmission 1.92 on my qnap nas. Unfortunately, I am not familiar with linux, I followed a detailed descreption how to install transmission and what needed to be changed in settings.json.
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "/share/MD0_DATA/Download/",
"encryption": 0,
"incomplete-dir": "/root/Downloads",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{7529027284ea9514fc704a74a26bef98b0455058PixrC
"rpc-port": 9091,
"rpc-username": "admin",
"rpc-whitelist": "127.0.0.1"
"rpc-whitelist-enabled": false,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
}
I welcome any help.
Thanks.
Re: [HELP] Web Interface Can't Start
Posted: Mon Jun 28, 2010 9:43 pm
by rb07
Runner42 wrote:I need some help as I get an error message (connection refused) when I want to run the transmission web gui.
That "Connection refused" is not coming from transmission-daemon.
I don't know what you mean by "run the transmission web gui".
What exactly are you doing? It sounds like you want to access the web client but are not using the port, i.e. http://<IP-address-of-your-NAS>:9091/ or you installed the daemon but didn't start it.
Re: [HELP] Web Interface Can't Start
Posted: Tue Jun 29, 2010 10:52 pm
by Runner42
I don't know what you mean by "run the transmission web gui".
What exactly are you doing? It sounds like you want to access the web client but are not using the port, i.e. http://<IP-address-of-your-NAS>:9091/ or you installed the daemon but didn't start it.[/quote]
I mean I clicked on transmission remote gui twice that I had previously installed. In the tools and options menu I inputted the ip address of my nas, the 9091 port, the user and the password.
I checked it and I was surprised that the transmission daemon had not started. It used to work.
I got this error message:
[~] # cd /share/MD0_DATA/Transmission
[/share/MD0_DATA/Transmission] # ./transmission.sh start
Starting Transmission
[00:30:10.362] JSON parser failed in /share/MD0_DATA/Transmission//settings.json at line 47, column 5: ""rpc-whitelist-e"
[00:30:12.491] transmission-remote: (localhost:9091) Error
[00:30:12.501] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
[/share/MD0_DATA/Transmission] #
It is weird. As I said transmission-daemon had used to work. However, that time I could not also run the remote gui. Then I got an error message saying error 403, something wrong with the rpc-whitelist.
In the description that I followed it said I should change from true to false in the row of "rpc-whitelist-enabled": true,
I also tried to input the ip address of my nas in the settings.json row "rpc-whitelist": "127.0.0.1" It did not work either, I got the same error message of 403.
Any idea?
Thanks
Re: [HELP] Web Interface Can't Start
Posted: Tue Jun 29, 2010 11:37 pm
by rb07
Runner42 wrote:I mean I clicked on transmission remote gui
Then you are not using the "Web Interface", you are using a third-party application.
I checked it and I was surprised that the transmission daemon had not started. It used to work.
I got this error message:
[~] # cd /share/MD0_DATA/Transmission
[/share/MD0_DATA/Transmission] # ./transmission.sh start
Starting Transmission
[00:30:10.362] JSON parser failed in /share/MD0_DATA/Transmission//settings.json at line 47, column 5: ""rpc-whitelist-e"
[00:30:12.491] transmission-remote: (localhost:9091) Error
[00:30:12.501] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
[00:30:12.502] transmission-remote: (localhost:9091) Error
And there is the problem.
Is even telling you the line where you botched settings.json, I should have seen it in your message above, but its difficult with so much cruft: your rpc-password line is wrong, the value starts with opening quotes, never closes the quotes, and it is missing the comma at the end. Or is it really on the rpc-whitelist-enabled line? did you just change that?
It is weird. As I said transmission-daemon had used to work.
Nothing weird, if the daemon doesn't start you can't communicate with it. If you change something like settings.json and screw up, the daemon doesn't start.
However, that time I could not also run the remote gui. Then I got an error message saying error 403, something wrong with the rpc-whitelist.
In the description that I followed it said I should change from true to false in the row of "rpc-whitelist-enabled": true,
I also tried to input the ip address of my nas in the settings.json row "rpc-whitelist": "127.0.0.1" It did not work either, I got the same error message of 403.
That was just some nonsense, you should try to understand what you are doing, not just follow whatever someone said.
Re: [HELP] Web Interface Can't Start
Posted: Wed Jun 30, 2010 10:01 pm
by Runner42
Dear RB07 and X190,
Thank you for your help. I found the syntax errors which prevented transmission deamon from working. Now, the remote gui works also.
Thanks again.
Re: [HELP] Web Interface Can't Start
Posted: Tue Jan 04, 2011 8:11 am
by Drey.Tee
Hello! I'm experiencing this problem too and can't fix it.
/etc/rc.conf string for start daemon:
Code: Select all
transmission_flags="-a 192.168.1.*,127.0.0.* -r 192.168.1.3 -p 666 --watch-dir /data/torrents --incomplete-dir /data/torrents/incomplete --download-dir /data/downloads -e /var/log/transmission.log"
Checked /usr/local/etc/transmission/home/settings.json (file created and used by daemon):
Code: Select all
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "/data/downloads",
"encryption": 1,
"incomplete-dir": "/data/torrents/incomplete",
"incomplete-dir-enabled": true,
"lazy-bitfield-enabled": true,
"lpd-enabled": false,
"message-level": 3,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "192.168.1.3",
"rpc-enabled": true,
"rpc-password": "{fe240dfe70701e3bb47938fe55500dcc18609035xQTlJTea",
"rpc-port": 666,
"rpc-username": "devil",
"rpc-whitelist": "192.168.1.*,127.0.0.*",
"rpc-whitelist-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"speed-limit-down": 800,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-slots-per-torrent": 14,
"watch-dir": "/data/torrents",
"watch-dir-enabled": true
}
Starting:
Code: Select all
# uname -a
FreeBSD local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
# whoami
root
# /usr/local/etc/rc.d/transmission start
Starting transmission.
# ps aux |grep trans
transmission 13849 0.0 1.8 13344 4364 ?? Ss 4:15PM 0:00.05 [transmission-daemon]
# sockstat -4l | grep trans
transmission transmissi13849 7 tcp4 *:51413 *:*
transmission transmissi13849 9 udp4 *:51413 *:*
# sockstat -4l | grep 666
# netstat -an |grep 666
#
Log file:
Code: Select all
[15:50:29.269] Transmission 2.04 (11151) started (session.c:622)
[15:50:29.269] Couldn't read "/usr/local/etc/transmission/home/stats.json": No such file or directory (utils.c:496)
[15:50:29.269] Couldn't read "/usr/local/etc/transmission/home/stats.benc": No such file or directory (utils.c:496)
[15:50:29.269] RPC Server Adding address to whitelist: 192.168.1.* (rpc-server.c:767)
[15:50:29.269] RPC Server Adding address to whitelist: 127.0.0.* (rpc-server.c:767)
[15:50:29.269] RPC Server Serving RPC and Web requests on port 666 (rpc-server.c:940)
[15:50:29.269] RPC Server Whitelist enabled (rpc-server.c:944)
[15:50:29.269] Bound socket 7 to port 51413 on 0.0.0.0 (net.c:389)
[15:50:29.269] Bound socket 8 to port 51413 on :: (net.c:389)
[15:50:29.269] setrlimit( RLIMIT_NOFILE, 3520 ) (fdlimit.c:846)
[15:50:29.269] socket limit is 240 (fdlimit.c:854)
[15:50:29.269] DHT Initializing DHT (tr-dht.c:330)
[15:50:29.269] Couldn't read "/usr/local/etc/transmission/home/dht.dat": No such file or directory (utils.c:496)
[15:50:29.269] DHT Generating new id (tr-dht.c:378)
[15:50:29.269] DHT DHT initialized (tr-dht.c:409)
[15:50:29.269] LPD Local Peer Discovery disabled (session.c:636)
[15:50:29.269] Using settings from "/usr/local/etc/transmission/home" (daemon.c:443)
[15:50:29.269] Writing 1963 bytes to temporary file "/usr/local/etc/transmission/home/settings.json.tmp.QpHm2M" (bencode.c:1638)
[15:50:29.269] Renaming "/usr/local/etc/transmission/home/settings.json.tmp.QpHm2M" as "/usr/local/etc/transmission/home/settings.json" (bencode.c:1647)
[15:50:29.269] Saved "/usr/local/etc/transmission/home/settings.json" (bencode.c:1651)
[15:50:29.269] Watching "/data/torrents" for new .torrent files (daemon.c:473)
[15:50:29.269] Using readdir to watch directory "/data/torrents" (watch.c:161)
[15:50:29.269] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:67)
[15:50:29.269] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:67)
[15:50:37.284] Port Forwarding (UPnP) upnpDiscover failed (errno 22 - Unknown error: 0) (upnp.c:105)
[15:50:37.284] Port Forwarding (UPnP) UPNP_GetValidIGD failed (errno 22 - Unknown error: 0) (upnp.c:125)
[15:50:37.284] Port Forwarding (UPnP) If your router supports UPnP, please make sure UPnP is enabled! (upnp.c:128)
[15:50:37.284] Port Forwarding Port Forwarding (port-forwarding.c:89)
[15:50:37.284] Port Forwarding (NAT-PMP) readnatpmpresponseorretry failed. natpmp returned -7 (the gateway does not support nat-pmp); errno is 61 (Connection refused) (natpmp.c:72)
[15:50:37.284] Port Forwarding Port Forwarding (port-forwarding.c:89)
[15:51:10.345] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:234)
[15:51:39.399] DHT Finished bootstrapping (tr-dht.c:244)
Re: [HELP] Web Interface Can't Start
Posted: Tue Jan 04, 2011 8:39 am
by Drey.Tee
okay, i changed IP addressess syntax and in foreground daemon starts тщкьфдднЖ
Code: Select all
# transmission-daemon -a 192.168.1.34,192.168.1.35 -r 192.168.1.3 --no-auth -p 666 --watch-dir /data/torrents --incomplete-dir /data/torrents/incomplete --download-dir /data/downloads -f
[16:45:04.858] Transmission 2.04 (11151) started (session.c:622)
[16:45:04.858] RPC Server Adding address to whitelist: 192.168.1.34 (rpc-server.c:767)
[16:45:04.858] RPC Server Adding address to whitelist: 192.168.1.35 (rpc-server.c:767)
[16:45:04.858] RPC Server Serving RPC and Web requests on port 666 (rpc-server.c:940)
[16:45:04.858] RPC Server Whitelist enabled (rpc-server.c:944)
[16:45:04.858] DHT Generating new id (tr-dht.c:378)
[16:45:04.858] Using settings from "/root/.config/transmission-daemon" (daemon.c:443)
[16:45:04.858] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1651)
[16:45:04.858] Watching "/data/torrents" for new .torrent files (daemon.c:473)
[16:45:04.859] Using readdir to watch directory "/data/torrents" (watch.c:161)
[16:45:04.859] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:67)
[16:45:04.859] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:67)
ANd I'm able to connect to 666 port.
It even starts in background from command line this way:
Code: Select all
# transmission-daemon -a 192.168.1.34,192.168.1.35 -r 192.168.1.3 --no-auth -p 666 --watch-dir /data/torrents --incomplete-dir /data/torrents/incomplete --download-dir /data/downloads -e /var/log/transmission.log
Ports are okay:
Code: Select all
# sockstat -4l | grep trans
root transmissi 14286 7 tcp4 192.168.1.3:666 *:*
root transmissi 14286 8 tcp4 *:51413 *:*
root transmissi 14286 10 udp4 *:51413 *:*
#
Unprivileged user can't start web-interface too:
in foreground daemon says, that it started web-int:
Code: Select all
RPC Server Serving RPC and Web requests on port 666 (rpc-server.c:940)
But no listening port is available:
Code: Select all
#sockstat -4l|grep trans
drey transmissi 14460 6 tcp4 *:51413 *:*
drey transmissi 14460 8 udp4 *:51413 *:*
Think it's okay because started by root. transmission user and my usual user both can't start web-interface.
Why?
Re: [HELP] Web Interface Can't Start
Posted: Tue Jan 04, 2011 8:55 am
by Drey.Tee
Doh!
I forgot this simple true:
Code: Select all
That's because only root can bind to ports < 1024.
changed to 6666 and ran okay!
Thanks .. to me and internet)
[upd]
Ran okay, but can't connect to 6666 via browser.
Connected via telnet and got:
Code: Select all
Trying 192.168.1.3...
Connected to k.
Escape character is '^]'.
GET
HTTP/1.1 400 Bad Request
Content-Type: text/html
Connection: close
Date: Tue, 04 Jan 2011 09:30:09 GMT
Content-Length: 134
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
Invalid method in request<P>
</BODY></HTML>
Connection closed by foreign host.
tcpdump shows:
Code: Select all
17:14:36.897324 IP shell.51672 > k.6666: Flags [F.], seq 1, ack 1, win 92, options [nop,nop,TS val 15048642 ecr 3764662816], length 0
17:14:36.897423 IP k.6666 > shell.51672: Flags [.], ack 2, win 8325, options [nop,nop,TS val 3764667147 ecr 15048642], length 0
stuck.
changed back to default port and connected normally.
weird, but I'm too tired to check and fix.