Sandybanks
Posts: 3
Joined: Sat Aug 02, 2014 2:55 pm

Raspbian + Flexget + Transmission + NAS

Sat Aug 02, 2014 3:15 pm

Hi,

I've a peculiar problem with Transmission on Raspbian writing on my NAS.

I've setup Raspbian to automatically mount my NAS share:

Code: Select all

pi@raspberrypi ~ $ sudo cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, so no using swapon|off from here on, use  dphys-swapfile swap[on|off]  for that
//<NAS IP>/video /mnt/nas cifs credentials=/home/pi/.nas_credentials,sec=ntlm 0 0
pi@raspberrypi ~ $ cat /home/pi/.nas_credentials
username=admin
password=<nas password>
This works as expected and correctly mounts the share:

Code: Select all

pi@raspberrypi ~ $ ls -lha /mnt/nas/
insgesamt 646M
drwxrwxrwx  8 pi   users    0 Jul 28 17:24 .
drwxr-xr-x  3 root root  4,0K Jul 21 20:08 ..
drwxrwxrwx 84 pi   users    0 Jul 30 14:52 FILME
drwxrwxrwx 10 pi   users    0 Jul 30 18:48 incomplete
drwxrwxrwx 34 pi   users    0 Jul 14 20:48 SERIEN
I think I've setup Transmission correctly to use the path /mnt/nas/incomplete as a temporary download location:

Code: Select all

pi@raspberrypi ~ $ cat /etc/transmission-daemon/settings.json
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 390,
    "alt-speed-time-day": 62,
    "alt-speed-time-enabled": true,
    "alt-speed-time-end": 1425,
    "alt-speed-up": 0,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/mnt/nas",
    "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/nas/incomplete",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-limit-global": 500,
    "peer-limit-per-torrent": 100,
    "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": false,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 0.1000,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": <rpc password>,
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "pi",
    "rpc-whitelist": "127.0.0.1,192.168.1.*",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": true,
    "seed-queue-size": 1,
    "speed-limit-down": 1500,
    "speed-limit-down-enabled": true,
    "speed-limit-up": 10,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}
Flexget (installed on the same Pi) is setup to move downloaded content to the approriate folders:

Code: Select all

  transmit-movies:
    transmission:
      host: 127.0.0.1
      port: 9091
      username: pi
      password: <correct password>
      path: /mnt/nas/FILME
  transmit-series:
    transmission:
      host: 127.0.0.1
      port: 9091
      username: pi
      password: <correct password>
      path: /mnt/nas/SERIEN/{{series_name}}
However, whenever eg. a movie is downloaded only a folder with the movie name is created without any content but strange user settings, see example for the movie Cell 211:

Code: Select all

pi@raspberrypi ~ $ ls -lha /mnt/nas/FILME/
insgesamt 2,5G
drwxrwxrwx 84 pi   users     0 Jul 30 14:52 .
drwxrwxrwx  7 pi   users     0 Aug  2  2014 ..
drwxrwxrwx  2 pi   users     0 Mär 11 14:12 12.Years.A.Slave.2013.720p.BRRip.x264-Fastbet99
drwxrwxrwx  3 pi   users     0 Jän 12  2014 About Time (2013)
drwxrwxrwx  3 pi   users     0 Mai 10 16:15 American Hustle (2013)
drwxrwxrwx  2 pi   users     0 Mär 18 01:53 Anchorman 2 The Legend Continues 2013 720p BluRay DTS x264-DNL - Ofek
-rwxrwxrwx  1 pi   users  842M Nov 17  2011 Angels & Airwaves Love The Movie.mp4
drwxrwxrwx  3 pi   users     0 Feb 23  2011 Beyond.Borders.2003.DVDRip.Xvid-Nile
drwxrwxrwx  4 pi   users     0 Jän 31  2011 Black Cat White Cat 1998 OST XviD 100% multi-lang [Honeyko] anamorphic
drwxrwxrwx  3 pi   users     0 Jän 21  2012 capote
drwxrwxrwx  2 1024 users     0 Jul 30 12:27 Cell.211.2009.720p.BluRay.x264-NODLABS
drwxrwxrwx  3 pi   users     0 Jän 21  2012 Charlie.Wilson's.War
drwxrwxrwx  3 pi   users     0 Jun 20 09:12 Chasing Ice (2012)
...
pi@raspberrypi ~ $ ls -lha /mnt/nas/FILME/Cell.211.2009.720p.BluRay.x264-NODLABS/
insgesamt 0
drwxrwxrwx  2 1024 users 0 Jul 30 12:27 .
drwxrwxrwx 84 pi   users 0 Jul 30 14:52 ..
Flexget is simply started by and running as:

Code: Select all

pi@raspberrypi ~ $ flexget daemon start -d
2014-08-02 17:09 INFO     manager                       Daemonizing...
2014-08-02 17:09 INFO     manager                       Daemonize complete. New PID: 27747
And Transmission is running as a regular service:

Code: Select all

pi@raspberrypi ~ $ service transmission-daemon status
[ ok ] transmission-daemon is running.
I cannot find something wrong. Can somebody please point me into the direction where to look at?

Thanks!

Sandybanks
Posts: 3
Joined: Sat Aug 02, 2014 2:55 pm

Re: Raspbian + Flexget + Transmission + NAS

Mon Aug 04, 2014 7:59 pm

What I've also noticed is that most (but strangely not all) of newly added tasks for transmission have some kind of permission error and it says something like

Code: Select all

Error: Permission denied (/mnt/nas/SERIEN/Brooklyn ...
Thanks for your help!

User avatar
impshum
Posts: 2
Joined: Wed Aug 13, 2014 11:42 am
Location: UK
Contact: Website

Re: Raspbian + Flexget + Transmission + NAS

Wed Aug 13, 2014 11:47 am

Is your NAS formatted to NTFS?

Sandybanks
Posts: 3
Joined: Sat Aug 02, 2014 2:55 pm

Re: Raspbian + Flexget + Transmission + NAS

Tue Aug 19, 2014 12:18 pm

No, I've got 2 disks in RAID1 and the volume is formated with ext3

carilwang
Posts: 8
Joined: Fri Dec 06, 2013 1:19 am

Re: Raspbian + Flexget + Transmission + NAS

Sun Aug 24, 2014 2:00 am

I actually followed this site to create one that can run. http://www.robertsetiadi.net/installing ... pberry-pi/

But I think the problem is my NAS. It can write, but very slow and a lot of read errors.

I am using omninas kd20 box with raid 1. I am not sure whether that's the problem. I will try to change it with a hard drive.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Raspbian + Flexget + Transmission + NAS

Thu Aug 28, 2014 3:33 pm

My apologies, but we do not permit guides or allow instructions for the setup and use of software designed for the piracy of videos/games/music/software/etc as this is considered illegal in most countries and the Raspberry Pi Foundation is a non-profit charity for the education of children in computing. Nothing personal.
Dear forum: Play nice ;-)

Return to “Media centres”