Help! Who can teach me how to install FlexGet on FreeNAS 9.1 JAIL.

Status
Not open for further replies.

MrBerns

Cadet
Joined
Jan 30, 2012
Messages
9
Not sure if you still care, but I did manage to set this up.

I'm going to assume that you have transmission set up correctly.
I have transmission installed inside of a jail named "bit_1". If yours is in a different jail, replace "bit_1" with your jail's name.

Then enter the jail:
# jexec bit_1 sh
Inside the jail, install flexget:
# easy_install flexget
Create a config file in /root/.flexget/ that downloads to the watch directory you set up for transmission.

Now just set up a cron job that runs "jexec bit_1 flexget --cron".
 

Securus

Cadet
Joined
Dec 27, 2013
Messages
2
Thanks for posting this MrBerns! I was able to use your instructions to get FlexGet running on my box. For anyone else who comes here, here are some good resources for how to create the configuration file:

http://flexget.com/wiki/InstallWizard

Just follow the prompts and it will help you create the configuration file. The only thing I ran into was that you can't run nano while in the jail (I'm sure this is fixable but I haven't looked into it).
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
I have flex get running on a Jail that I created in 8.3 so all is working awesome but...

For grins I was going to get flex get running on a separate jail and I have not had any luck. Everything installs fine but when I try to run flex get --check, I get the following error:

root@FlexGet:/ # flexget --check
2013-12-28 08:35 VERBOSE manager Creating new database /root/.flexget/db-config.sqlite ...
FATAL: Unable to use SQLite. Are you running Python 2.5 - 2.7 ?
Python should normally have SQLite support built in.
If you're running correct version of Python then it is not equipped with SQLite.
You can try installing `pysqlite`. If you have compiled python yourself, recompile it with SQLite support.

I have tried this in a standard jail, ports jail and plugins jail and I always end up at this error. I have tried to add sqlite3 port and it also does not help. I am just confused as to why this no longer will work as it was easy to install on the V8.3 jail.

Any help would be greatly appreciated.

Cheers,
 

Josh D

Dabbler
Joined
Sep 17, 2013
Messages
10
I am running into the exact same problem on FreeNAS 9.2 final. Tried installing pysqlite and that resulted into a host of other error messages on multiple lines reference of code.
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
One thing I have not tried is to install this within the transmission jail, that is where FlexGet runs for me now. Might spin up a VM to try that. I am just really happy that I have it running from 8.x and hope I do not need to rebuild my system for any reason.

For giggles, I spun up an Ubuntu VM and have a contingency for FlexGet but man are my file permissions all messed up... Cross that bridge when I get there.

Cheers,
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Note to self, when using FreeNAS, do not try to use a ZFS volume with 1GB of ram in a VM... Not a happy system. :)
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
I can confirm that the same SQLite problem exists even when you try to install FlexGet in the transmission jail. Very strange as this should just work... Really quite confused. I will be the first to admit that I am not a BSD expert. Hopefully some smart person out there can help us out.

Cheers,
 

Securus

Cadet
Joined
Dec 27, 2013
Messages
2
Thanks Dusan! Figured it was something easy. What version of FreeNAS are you having FlexGet problems on Scharbag? 9.1.1 or 9.2?
 

starkb

Cadet
Joined
Dec 25, 2013
Messages
3
I'm running freenas 9.2 and seeing the same problems. I have tried different jail templates and on the transmission one seeing the same problems that you all are seeing.
 

starkb

Cadet
Joined
Dec 25, 2013
Messages
3
I created a Ubuntu Jail, but it has network problems and will not download the needed files. This is a Bug that is posted. I have tried all the Jails with the same out come that is if the jail works. I have tried to download and install the Sqlite but errors installing. It looks like they need to fix the Jails.
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Thanks Dusan! Figured it was something easy. What version of FreeNAS are you having FlexGet problems on Scharbag? 9.1.1 or 9.2?


9.2 is the issue for me. Luckily I have an old 8.3.x jail that has moved along with me over the last 2 upgrades and it is still working. I consider myself a true script kiddie (in the sense that I need others to do the heavy lifting) :) and really have no idea how to troubleshoot this SQL issue. If the Ubuntu jail would access the internet, then I could get it running on that platform... I feel so lame that after using computers for 30 years, I still have to accept the fact I don't have a clue... :p

Cheers,
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
I never used flexget but I tried this and it worked (using pkg instead of easy_install):
  1. Create a pluginjail (you can also use the transmission jail mentioned above)
  2. pkg remove py27-distribute-0.6.35 (the package conflicts with one of the flexget dependencies)
  3. pkg install py27-flexget (answer yes to all questions)
  4. I created a sample config.yml in /root/.flexget
[PANEL]root@transmission_1:~ # /usr/local/bin/flexget --check
2013-12-30 13:10 VERBOSE manager Creating new database /root/.flexget/db-config.sqlite ...
2013-12-30 13:10 VERBOSE manager Not running database cleanup on manual run. It will be run on next --cron run.
2013-12-30 13:10 INFO task test task Task 'test task' passed[/PANEL]
No idea if this is the output you are looking for, but maybe it helps :).
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
I will give that a shot and yeah, that output looks just like it should.
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Works like a charm. The pkg is a little old. I did an easy_install pip then a pip install --upgrade flexget and all still works.

Thank you very much for the help with this.

Cheers,
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Just to put this all in one place, this is what I did:

Given the 9.2.x jails are different than older jails, do the following (from Dusan's post above):
  1. pkg remove py27-distribute-0.6.35 (the package conflicts with one of the flexget dependencies)
  2. pkg install py27-flexget (answer yes to all questions)
this will install a working version of FlexGet but a slightly older build. Now I updated FlexGet using:
easy_install pip
pip install —upgrade flexget
pip install transmissionrpc (this is only needed if you are using transmission with FlexGet)

then install the ports tree (I like this but you could also use pkg install instead):

portsnap fetch extract update
run “&& make install clean” in:
/usr/ports/net/rsync
/usr/ports/editors/nano
/usr/ports/achivers/rar
/usr/ports/achivers/unrar


remember to use "rehash" after the applications are installed. None of these additional applications are needed for FlexGet, but I hate vi and my config.yml file uses far and unrar. Rsync is only there cause I backup my FlexGet database daily JIC.

Again, thank you to Dusan for the help!!

Cheers,
 

useful_idiot

Cadet
Joined
Dec 19, 2014
Messages
5
Sorry to bring up a nearly year old thread..

I'm trying to install flexget on freenas 9.2, though my issue is that easy_install is not available within a jail. I've tried looking at many places to find out how to get this set up without any luck.

Is there something obvious I'm missing here?
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Hmm, seems like the jail has changed again as the install method is different.

Try this:
update the installed packages with:
pkg upgrade

install the ports tree:
portsnap fetch extract update

run “&& make install clean” in:
/usr/ports/devel/py-pip
/usr/ports/net/rsync
/usr/ports/editors/nano
/usr/ports/achivers/rar
/usr/ports/achivers/unrar

pip install flexget
pip install --upgrade flexget
pip install transmissionrpc

remember to use "rehash" after the applications are installed.

Also need to add a user if you do not want to run flex get from root.

As root, adduser SOMEUSER and use /home/SOMEUSER/ as the home dir

with root access, copy the .cshrc file from / to /home/adm/ and edit it to use nano as the default editor (I hate vi...) by editing .cshrc to include setenv EDITOR nano

Create the working directory:
mkdir /home/SOMEUSER/.flexget with user SOMEUSER and put the flexget config files here if you have them, if not, start new ones.

And if you wanna access the jail via ssh, make sure that you follow the FreeNAS user guid by doing the following:
To configure ssh access for a specified jail, perform the following actions while inside that jail as root:
add the following line to that jail's /etc/rc.conf:
sshd_enable="YES"

I just tried this on a new jail and everything seemed to install ok... Let me know if this works!

Cheers,
 
Last edited:
Status
Not open for further replies.
Top