RPi 2: Transmission not starting on boot
|
Posts: 32
Threads: 4
Joined: Feb 2016
Reputation:
0
[Solved]
Feb 17, 2016, 09:43 PM
(Feb 17, 2016, 09:30 PM)Mike Wrote: hmm as @manne pointed out show us the contents of /lib/systemd/system/transmission-daemon.service
You can try disabling the service and re-enabling it, then try sudo service transmission-daemon start
Code:
sudo systemctl disable transmission-daemon.service
sudo systemctl disable transmission-daemon.service
This is the contents of the lib/... file:
Quote:[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
[Service]
User=debian-transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error -g /etc/transmission-daem$
ExecReload=/bin/kill -s HUP $MAINPID
[Install]
WantedBy=multi-user.target
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Feb 17, 2016, 09:47 PM
No output from disabling and re-enabling?
Some part of the service file is cut off (showed by the $ sign), will need to see the whole thing
Try rebooting and then waiting 5 mins, then start the service in SSH (not Webmin) and run netstat and show the output
Posts: 403
Threads: 26
Joined: Aug 2015
Reputation:
39
[Solved]
Feb 17, 2016, 09:51 PM
If you scroll up you can see more of the output. I think it's ok. But I'm guessing.
Killa909 has to resize his window to see the whole row
Posts: 32
Threads: 4
Joined: Feb 2016
Reputation:
0
[Solved]
Feb 17, 2016, 10:28 PM
(Feb 17, 2016, 09:47 PM)Mike Wrote: No output from disabling and re-enabling?
Some part of the service file is cut off (showed by the $ sign), will need to see the whole thing
Try rebooting and then waiting 5 mins, then start the service in SSH (not Webmin) and run netstat and show the output
Disabling:
Quote:Synchronizing state for transmission-daemon.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d transmission-daemon defaults
Executing /usr/sbin/update-rc.d transmission-daemon disable
insserv: warning: current start runlevel(s) (empty) of script `transmission-daemon' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `transmission-daemon' overrides LSB defaults (0 1 6).
Enabling:
Quote:Synchronizing state for transmission-daemon.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d transmission-daemon defaults
insserv: warning: current start runlevel(s) (empty) of script `transmission-daemon' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `transmission-daemon' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d transmission-daemon enable
Sudo start: No feedback. However, if I go to the transmission page, it does not load.
Here are the full contents (WOOPS!):
Quote:[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
[Service]
User=debian-transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error -g /etc/transmission-daemon
ExecReload=/bin/kill -s HUP $MAINPID
[Install]
WantedBy=multi-user.target
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Feb 18, 2016, 07:29 AM
(This post was last modified: Feb 18, 2016, 07:31 AM by Mike.)
Please show the output of (run as root)
Code:
netstat -lntp
ps aux | grep transmission
The installer modifies the Transmission startup script to use and it looks right, when I test it it works, my current guess is Webmin is doing something funky
Posts: 32
Threads: 4
Joined: Feb 2016
Reputation:
0
[Solved]
Feb 18, 2016, 07:14 PM
(This post was last modified: Feb 18, 2016, 07:23 PM by killa909.
Edit Reason: added Transmission status
)
(Feb 18, 2016, 07:29 AM)Mike Wrote: Please show the output of (run as root)
Code:
netstat -lntp
ps aux | grep transmission
The installer modifies the Transmission startup script to use and it looks right, when I test it it works, my current guess is Webmin is doing something funky
netstat -lntp produces:
Quote:Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:6789 0.0.0.0:* LISTEN 739/nzbget
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 967/smbd
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 970/perl
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN 488/transmission-da
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 484/sshd
tcp 0 0 0.0.0.0:5050 0.0.0.0:* LISTEN 951/python
tcp 0 0 0.0.0.0:8989 0.0.0.0:* LISTEN 562/mono
tcp 0 0 0.0.0.0:9117 0.0.0.0:* LISTEN 565/mono
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 967/smbd
tcp6 0 0 :::139 :::* LISTEN 967/smbd
tcp6 0 0 ::1:8181 :::* LISTEN 16353/python
tcp6 0 0 :::51413 :::* LISTEN 488/transmission-da
tcp6 0 0 :::22 :::* LISTEN 484/sshd
tcp6 0 0 :::445 :::* LISTEN 967/smbd
ps aux | grep transmission produces:
Quote:debian-+ 488 0.4 0.7 58520 6760 ? Ssl Feb17 5:44 /usr/bin/transmission-daemon -f --log-error -g /etc/transmission-daemon
root 10198 0.0 0.1 4280 1880 pts/0 S+ 11:11 0:00 grep transmission
Additionally, status in webmin shows the following:
Quote:● transmission-daemon.service - Transmission BitTorrent Daemon
Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled)
Active: active (running) since Wed 2016-02-17 13:43:30 PST; 21h ago
Main PID: 488 (transmission-da)
Status: "Idle."
CGroup: /system.slice/transmission-daemon.service
└─488 /usr/bin/transmission-daemon -f --log-error -g /etc/transmission-daemon
Feb 17 13:43:30 raspberrypi systemd[1]: Started Transmission BitTorrent Daemon.
Feb 17 13:43:31 raspberrypi transmission-daemon[488]: [2016-02-17 13:43:31.970 PST] UDP Failed to set receive buffer: requested 4194304, got 327680 (tr-udp.c:78)
Feb 17 13:43:31 raspberrypi transmission-daemon[488]: [2016-02-17 13:43:31.971 PST] UDP Failed to set send buffer: requested 1048576, got 327680 (tr-udp.c:89)
Feb 17 14:27:28 raspberrypi systemd[1]: Started Transmission BitTorrent Daemon.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Feb 18, 2016, 09:10 PM
OK, this is what's wrong, your settings.json needs modification because the web interface is not activated. Follow the manual guide for the settings.json part and reload and restart the service.
It appears the script failed to modify correctly, something may have changed in the Transmission repo, I will look into it.
Posts: 32
Threads: 4
Joined: Feb 2016
Reputation:
0
[Solved]
Feb 18, 2016, 11:33 PM
(Feb 18, 2016, 09:10 PM)Mike Wrote: OK, this is what's wrong, your settings.json needs modification because the web interface is not activated. Follow the manual guide for the settings.json part and reload and restart the service.
It appears the script failed to modify correctly, something may have changed in the Transmission repo, I will look into it.
Mike
I
I don't see anything that remotely seems to control web interface in settings.json. I've looked through each line and in Transmission manual. If there's something I am missing, which is completely possible, please let me know. This link shows the options in the settings.json: http://www.techjawab.com/2014/08/how-to-...on-on.html.
That said, the process made me discover something:
If I, "sudo service transmission-daemon start" after boot, Transmission will not load.
But if I, "sudo service transmission-daemon stop" then I "sudo service transmission-daemon start," it loads fine.
Also, if I, "sudo service transmission-daemon reload" then it loads.
I tried tooling around with the rc.local file putting in those commands, but nothing has worked yet.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Feb 18, 2016, 11:38 PM
Dump the contents of your settings.json please. I fear the script may not make the correct permissions or something. Will try and test it over the weekend.
The rpc values are the ones as I point out in the manual guide
Code:
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{46949fbf39bfeec6dc9d4bff9f40c3f52219a4260yk9yGNo",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
Posts: 32
Threads: 4
Joined: Feb 2016
Reputation:
0
[Solved]
Feb 18, 2016, 11:52 PM
(Feb 18, 2016, 11:38 PM)Mike Wrote: Dump the contents of your settings.json please. I fear the script may not make the correct permissions or something. Will try and test it over the weekend.
The rpc values are the ones as I point out in the manual guide
Code:
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{46949fbf39bfeec6dc9d4bff9f40c3f52219a4260yk9yGNo",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
My settings check out based on what you pasted.
Here's my json:
Quote:
{
"alt-speed-down": 500,
"alt-speed-enabled": false,
"alt-speed-time-begin": 1005,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": true,
"alt-speed-time-end": 60,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": true,
"blocklist-url": "http://john.bitsurge.net/public/biglist.p2p.gz",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/mnt/usbstorage/Transmission",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/mnt/usbstorage/Trans_Inc",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{CENSORED",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "CENSORED",
"rpc-whitelist": "192.168.*.*",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 5000,
"speed-limit-down-enabled": true,
"speed-limit-up": 500,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 2,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
I really appreciate your time in helping to solve this issue. Thanks.
|
|
Recent Posts
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Split Tunnel Docker Containers
jonesPhedra Mar 27, 2024, 03:10 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|