Setting up FreeNAS 9.2.0 with Transmission and Couchpotato as a DLNA-Server

Status
Not open for further replies.

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
OK, what I meant by manually creating the sub-directories was creating a folder through Win Explorer. It sort of worked by giving me the directory to mount and I was finally able to get to the WebGUI of all my plugins. But when I was in the WebGUI of Coachpotato, I was unable to select the downloads or movie subdirectory in the 'Download to this Directory' box. Im thinking creating the folder in Win Explorer didnt actually work but just tricked the plugin into letting me into the WebGUI.

So my question is, where do I find the commands to manually create the directories by SSH using putty?

I guess, the subdirectories do not have the right permissions.

To manually create the directories, follow the instructions here, to connect to Freenas by SSH. When you entered the jail, you can create directories with the following command:
Code:
mkdir -p /media/downloads

Then enter the following command the get the permissions right:
Code:
chmod -R 777 /media/downloads


Replace /media/downloads with the directory you want to create.


Update:
If you want to support me, you can now "flattr" the post on my blog (nder the headline on the right site). This way you give microdonations to me. To read more about flattr, visit its homepage! I'd really appreciate it!
 
Last edited:

Pistus

Cadet
Joined
Aug 27, 2014
Messages
2
If the CouchPotato copy the files from the download directory, wouldn't it use unnecessary much space if you would like to seed the file and keep it in the right directory? One .mkv movie that is 10GB would take 20GB diskspace.
 

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
If the CouchPotato copy the files from the download directory, wouldn't it use unnecessary much space if you would like to seed the file and keep it in the right directory? One .mkv movie that is 10GB would take 20GB diskspace.
There's an advanced setting in couchpotato called "Default File action". This setting controls what happens with the downloaded files. It eithers moves the movie into the movies-directory, copies it (so there are 2 copies) or links it (symlinking or hardlinking). If you link it, there will only be one copy but the files will still be seeded.
 

Stefan416

Cadet
Joined
Sep 18, 2014
Messages
3
Hi everyone,

I am a new user to freenas and have begun to try and configure the OS on my newly purchased system. I believe I have followed the guide to the letter with some exceptions (CIFS share, installed Sabnzb and making the "media" dataset under my main zfs volume as it will also be used for file storage). After setting everything up a problem arises when trying to copy a file or folder to any of the folders that were created. Now the interesting part is that these "copy" errors only occur after I install and configure the plugins. The last time I started over I created the data sets with"nobody:nogroup" permissions before continuing forward with the plugins and was able to write/copy/execute from all my PCs.

Any help on the matter would be greatly appreciated. I have been troubleshooting and reinstalling for a few days now trying to fix the problem to no avail!

Thanks!
 
Last edited:

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
Hi everyone,

I am a new user to freenas and have begun to try and configure the OS on my newly purchased system. I believe I have followed the guide to the letter with some exceptions (CIFS share, installed Sabnzb and making the "media" dataset under my main zfs volume as it will also be used for file storage). After setting everything up a problem arises when trying to copy a file or folder to any of the folders that were created. Now the interesting part is that these "copy" errors only occur after I install and configure the plugins. The last time I started over I created the data sets with"nobody:nogroup" permissions before continuing forward with the plugins and was able to write/copy/execute from all my PCs.

Any help on the matter would be greatly appreciated. I have been troubleshooting and reinstalling for a few days now trying to fix the problem to no avail!

Thanks!

Do your files have additional permissions from ACL? You can find out if you do "ls -l" on the files. If there is a "+" after the permissions, it means there are ACLs.
You can remove them like this:
find /mnt/media/downloads -exec setfacl -b {} \;
 

samesong

Cadet
Joined
Jan 8, 2015
Messages
8
zufallsheld, thanks for the wonderful guide! I was able to get everything up and going thanks to you. Being that this guide is slightly outdated (but still one of the first search results when googling for "sickbeard couchpotato freenas"), I thought I'd post a few addendums for those just finding this guide for the first time. I would recommend reading through this if you have any issues getting things working (instead of bashing your head against your keyboard for hours on end like me).

These tips were written with the complete beginner in mind, as I was when I started out.

Updates
  • I installed this using FreeNAS 9.3 with Windows 8.1 using the most recent versions of the plugins as of this date.
  • Development on Sickbeard has ceased, and a new and much improved fork called Sickrage is available. This plugin can be downloaded and installed directly from the FreeNAS UI.
  • During Transmission setup, zufallsheld mentioned the following step:
    • "In the file, scroll down to the end where you can see the configuration-point called “umask”. Replace the “18” with a “0”. Save the file by pressing “escape”, then “leave the editor” and then “save changes" - this is currently the default value in Transmission, so this value no longer needs to be modified.
Simplifing and Clarifying the Process

After attemping to set this up four times, my final succesful attempt allowed me to get everything running smoothly. Take the following into consideration:
  • When you create your dataset, make sure you set the Share Type to Unix even if you are running Windows.
  • Check all 9 permission boxes
  • Change the user/group to nobody/nogroup
  • Keep the persmission type set to Unix, even if you are using Windows
(I know this exactly what zufallsheld wrote, but I made the incorrect assumption that running Windows meant changing these settngs to reflect that. I just wanted to stress the importance of setting this up correctly the first time to save you a world of permissions headaches later. Also note that if you are running Windows you will want to set up a CIFS share, as NFS is for Unix and is not supported without a whole lot of tweaking.)​
  • There isn't any need to create four separate datasets (called "storages" by zufallsheld) unless you have a certain reason for doing so. Make one and simply your setup.
    • Create one dataset named "Media", create your Downloads/Torrents/Movies/TV subfolders using Windows Explorer, and then add the "Media" dataset as a storage to each jail. Now you only have to configure one storage per jail, and it doesn't matter where storage destination is set.
    • Note that if you use multiple datasets, you cannot create hard links between them (in the event you are unable to create symlinks)
  • If you are still running into permissions errors and have created your dataset as described above, run "chmod -R 777 /media/". See below if you don't know how.
    • SSH into Freenas, or open the terminal window, and navigate to your /media/ dataset
      • Some simple commands for navigating (remove the quotations):
        • "ls -l" - Lists the contents of the current directory
        • "cd .." - Goes up one directory (note the space between cd and ..)
        • "cd media" - will enter a directory, in this case, the directory called "media"
    • Enter "chmod -R 777 /media/"
      • If your dataset is named something other than /media/, change it to that name
      • this command will recursively (signified with the -R) give full permissions to /media/, its subfolders, and all of the files.
  • In Transmission, make sure you set up an incomplete downloads folder location. Transmission will download to this folder, and when it completes, the file will be moved to the download folder specified in Transmission. I ran into issues of torrents being processed by Sickrage before they were completed.
Bonus

CouchPotato and Sickrage can both directly interface with Transmission, meaning you can tell both programs what folder Transmission should download to (as opposed to using the Black Hole option and letting Transmission determine where the download is placed). Allowing CouchPotato and Sickrage to control where the download is placed has the advantage of keeping your Downloads folder much more organized (and preventing CB/SR from potentially scraping each others' data)

So instead of having:
/Downloads/Pirates of the Carribean/Pirates of the carribean.mkv
/Downloads/Game of Thrones.S01E01.mkv
/Downloads/Game of Thrones.S01E02.mkv
/Downloads/Avatar (2009)/Avatar.mkv

You can have this:
/Downloads/Movies/Pirates of the Carribean/Pirates of the carribean.mkv
/Downloads/Movies/Avatar (2009)/Avatar.mkv
/Downloads/TV/Game of Thrones.S01E01.mkv
/Downloads/TV/Game of Thrones.S01E02.mkv

If you directly move your files after they finish downloading this won't matter, but for those of you who will copy or link the files for seeding purposes, this keeps things a bit tidier.

You can do this by performing the following.
1. In your /Downloads/ directory, create two more directories: /TV/ and /Movies/
2. Set up Transmission in Couchpotato as described by zufallshed, but point the path to /Media/Downloads/Movies/
3. In CouchPotato change the From folder in "Rename Downloaded Movies" to the same folder described in step 2.
4. Open Sickrage and do the same thing as you did for Couchpotato: Configure your torrent client to be Transmission, set the Transmission Directory to /Media/Downloads/TV, and set this directory in the Post Processing options as well

Hope this helps!

(editing for clarity and formatting)
 
Last edited:

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
zufallsheld, thanks for the wonderful guide! I was able to get everything up and going thanks to you. Being that this guide is slightly outdated (but still one of the first search results when googling for "sickbeard couchpotato freenas"), I thought I'd post a few addendums for those just finding this guide for the first time. I would recommend reading through this if you have any issues getting things working (instead of bashing your head against your keyboard for hours on end like me).

These tips were written with the complete beginner in mind, as I was when I started out.


Hope this helps!

These are all really good tips! I'm actually going to update the post for Freenas 9.3 and will take your comments into account!
 

Tutti21

Cadet
Joined
Jan 30, 2015
Messages
9
I have a silly question but can you add in your guide how to install the transgui? I don't know how to. Thx
 
Last edited:

Tutti21

Cadet
Joined
Jan 30, 2015
Messages
9
and when I try to add a series in Sickrage I get a error "Thread-25 :: Unable to create the folder /media/series/..., can't add the show"

permissions on the folder

drwxr-xr-x 5 root wheel 5 Jan 30 18:15 .
drwxr-xr-x 18 root wheel 22 Jan 30 09:11 ..
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 13:07 downloads
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 18:49 series
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 13:16 torrentfiles
 

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
I have a silly question but can you add in your guide how to install the transgui? I don't know how to. Thx
I'll think about it, since you have to install it on your PC and I don't know if I want to show how to do it on all kinds of different operating systems.

and when I try to add a series in Sickrage I get a error "Thread-25 :: Unable to create the folder /media/series/..., can't add the show"

permissions on the folder

drwxr-xr-x 5 root wheel 5 Jan 30 18:15 .
drwxr-xr-x 18 root wheel 22 Jan 30 09:11 ..
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 13:07 downloads
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 18:49 series
drwxrwxr-x+ 2 nobody nobody 2 Jan 30 13:16 torrentfiles

There write-permissions for everybody are missing. Please try to change the permissions for "series" like shown here:
https://www.zufallsheld.de/2013/11/...a-server/#changing-permissions-of-the-storage

freenas_permissions.png
 

Tutti21

Cadet
Joined
Jan 30, 2015
Messages
9
ah ok the trangui is for the client not to install on freenas, then I don't need a guide :)

the permission was on the datasheet all to nobody, I think thats why he changed it from root to nobody after I mounted it.

after I chown to root after I mount it, sickrage working, I don't know why.

but thx for the help and great guide.
 

TooMuchData

Contributor
Joined
Jan 4, 2015
Messages
188
I apologize for this question. I should be able to find the answer but have not done so in hours!

I am using your 9.2 guide, but I am installing the plugins on 9.3. Where is it possible to enter the "Watch-directory" for Transmission? The configuration screen eludes me.

Thank you.
 

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
I apologize for this question. I should be able to find the answer but have not done so in hours!

I am using your 9.2 guide, but I am installing the plugins on 9.3. Where is it possible to enter the "Watch-directory" for Transmission? The configuration screen eludes me.

Thank you.

If it hasn't changed in 9.3. (haven't checked), follow this:
Open up the Transmission-settings in the Plugins-tab of Freenas and edit the “Watch Directory” to “/media/torrentfiles” and the Download-Directory to “/media/downloads”.
Here's an example, just click on Transmission.
syncthing_open_frontend.png
 

TooMuchData

Contributor
Joined
Jan 4, 2015
Messages
188
It's a miracle! Thanks. I kept going to plugins on top and clicking on Transmission. That produces a different result.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
As I understand, this thread applies only to media downloaded from Internet sites.

I put MythTV in a Jail on my FreeNAS server to record over the air (OTA) television. I'd like to use Plex Media Server (Plex) as the front-end to my recordings.

Are any of these plugins, e.g., Transmission, Sickrage, or Couchpotato relevant to integrating Plex and MythTV for OTA TV recordings?
 

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
As I understand, this thread applies only to media downloaded from Internet sites.

I put MythTV in a Jail on my FreeNAS server to record over the air (OTA) television. I'd like to use Plex Media Server (Plex) as the front-end to my recordings.

Are any of these plugins, e.g., Transmission, Sickrage, or Couchpotato relevant to integrating Plex and MythTV for OTA TV recordings?

If the metadata on the movie-files provided by MythTV (seems possible as seen here) are good enough that Plex correctly recognizes the movies, then there's no need for other plugins.
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
I have a question in regards to your Headphones, Musicbrainz guide. For some reason I was unable to comment on your blog.

Im having trouble in regards to the musicbrainz config. Im using putty, and normally ssh using that, and access my jails using the jexec tcsh/bash command. But nothing is working. I assume you are using a different method to ssh into your system. When you say to ssh, what program are you using?

Any guidance would be greatly appreciated!
 

zufallsheld

Explorer
Joined
Dec 27, 2013
Messages
54
I have a question in regards to your Headphones, Musicbrainz guide. For some reason I was unable to comment on your blog.

Any guidance would be greatly appreciated!
Thanks, comments should be working again.

Im having trouble in regards to the musicbrainz config. Im using putty, and normally ssh using that, and access my jails using the jexec tcsh/bash command. But nothing is working. I assume you are using a different method to ssh into your system. When you say to ssh, what program are you using?
What exactly is not working? Connecting to the host?
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
The configuration part

Configuration
Now you can connect to the VM:

ssh 192.168.0.13 -p 2222 -lvm #replace the IP-address with yours.
Username is vm, password is musicbrainz.

After connecting, execute the followings commands. This will install curl, download the latest Musicbrainz-data and create the database with it.

sudo apt-get update && sudo apt-get install curl wget
mkdir /tmp/dumps
cd /tmp/dumps
VERSION=$(curl http://mirrors.dotsrc.org/MusicBrainz/data/fullexport/LATEST)
wget ftp://mirrors.dotsrc.org/MusicBrainz/data/fullexport/$VERSION/*
pushd /tmp/dumps/ && md5sum -c MD5SUMS && popd
cd /home/musicbrainz/musicbrainz-server/
dropdb -U musicbrainz musicbrainz
./admin/InitDb.pl --createdb --import /tmp/dumps/mbdump*.tar.bz2 --echo
If the database is successfully created, you have to create a searchable index for the data. There’s a simple command to do this:

cd ~
bin/reindex

When this completes (it will take a long time…again), you will want to start the replication. The replication is in charge for getting the latest data from the Musicbrainz-server. Don’t worry, the replication will only download the changed files, not the whole data again. To start the replication, do the following:

cd ~
bin/replicate start

If there weren’t any errors, you’re done with Musicbrainz!

How exactly are you connecting to the VM?

Anytime I've ssh'd anything to do with Freenas, I ssh using putty to my main freenas ip .10 as root. Then anything relating specifically to the jails, I jexec jid tcsh. Now when I do that, the firt command
Code:
sudo apt-get update && sudo apt-get install curl wget


I get "command not found"

When I try to ssh directly into jail, my root, user name or the vm/musicbrainz password do not work.

So are you ssh-ing somehow through the virtualbox in the browser?
 
Status
Not open for further replies.
Top