Guide for Medusa?

ZodiacUHD

Patron
Joined
Aug 28, 2015
Messages
226
Hello everyone, i'm looking for a guide to install medusa (https://github.com/pymedusa/Medusa) instead of sickrage. I know the steps are supposed to be the same but since every guide i found about sickrage on FreeNas, says to do it via plugin, i cannot really adapt it for my needs... Anyone can help me? thank you very much.
 

cfcaballero

Dabbler
Joined
Nov 26, 2017
Messages
45
I learned the hard way with installing Plex that plugins are not the way to go, even for software where there is a plugin (like Plex). Get a jail going and install the software via the command line. That's how I installed Plex (in one jail) and SickRage and Transmission (2nd jail).
 

ZodiacUHD

Patron
Joined
Aug 28, 2015
Messages
226
I feel like you missed the point of my thread. I WANT to do it without plugins (everything else i needed, i’ve installed that way), i need someone to help me find out dependencies for medusa. Since you installed sickrage already, can you post what you have done to achieve that?
 

INCSlayer

Contributor
Joined
Apr 4, 2015
Messages
197
Create a jail for your medusa then:

Prep jail:
Code:
pkg update && pkg upgrade
pkg install python27 py27-sqlite3 unrar git openssl


Create a User for Medusa:
Code:
adduser

Username: medusa
Full name: Medusa User
Uid (Leave empty for default):
Login group [medusa]:
Login group is medusa. Invite medusa into other groups? []:
Login class [default]:
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no


Install Medusa:
Code:
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
chmod 755 /usr/local/etc/rc.d/medusa
chown -Rf medusa:medusa /usr/local/medusa
sysrc "medusa_enable=YES"
service medusa start


navigate to: http://jail-ip:8081
 
Last edited:

cfcaballero

Dabbler
Joined
Nov 26, 2017
Messages
45
As far as I recall, once I got the jail and package updates running, I installed Python, git and pip (using pkg command), then running Sickrage from command line told me what packages were missing and I just installed those with pkg command as well. This was for installing Sickrage from the github repo.
 

ZodiacUHD

Patron
Joined
Aug 28, 2015
Messages
226
Create a jail for your medusa then:

Prep jail:
Code:
pkg update && pkg upgrade
pkg install python27 py27-sqlite3 unrar git openssl


Create a User for Medusa:
Code:
adduser

Username: medusa
Full name: Medusa User
Uid (Leave empty for default):
Login group [medusa]:
Login group is medusa. Invite medusa into other groups? []:
Login class [default]:
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no


Install Medusa:
Code:
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
chmod 755 /usr/local/etc/rc.d/medusa
chown -Rf medusa:medusa /usr/local/medusa
sysrc "medusa_enable=YES"
service medusa start


navigate to: http://jail-ip:8081


I feel like i'm pretty much there but i'm getting this error when i start medusa:
Code:
root@medusa:/usr/local/share # service medusa start
Starting medusa.
Unknown option: --
usage: /usr/local/bin/python2.7 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
/usr/local/etc/rc.d/medusa: WARNING: failed to start medusa


Any idea?
 

INCSlayer

Contributor
Joined
Apr 4, 2015
Messages
197
not sure i just setup a clean jail to test and just copy pasting the commands i wrote worked fine for me in my test jail

the only issue i managed to hit was if i tried to run the install commands as one paste
if you did that try running the commands one by one instead
 
Last edited:

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,175
For completeness let me put in my two-penn'orth.....
I just replaced sickrage with medusa in FN 11.0-U4
I have had to add ffmpeg and mediainfo to the install. Medusa complained.....
I used pkg install.
 

statik

Explorer
Joined
Sep 8, 2013
Messages
71
Create a jail for your medusa then:

Prep jail:
Code:
pkg update && pkg upgrade
pkg install python27 py27-sqlite3 unrar git openssl


Create a User for Medusa:
Code:
adduser

Username: medusa
Full name: Medusa User
Uid (Leave empty for default):
Login group [medusa]:
Login group is medusa. Invite medusa into other groups? []:
Login class [default]:
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no


Install Medusa:
Code:
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
chmod 755 /usr/local/etc/rc.d/medusa
chown -Rf medusa:medusa /usr/local/medusa
sysrc "medusa_enable=YES"
service medusa start


navigate to: http://jail-IP:8081

Just tried this as best as I could multiple times with no luck. I'm running FreeNAS 11.1-U6. Your instructions to create user for medusa is not correct from what I am seeing in creating a freenas user. I tried even with root:wheel and it did not work..
 

hervon

Patron
Joined
Apr 23, 2012
Messages
353
@statik : need to "adduser" from inside the jail. Should work.
 

statik

Explorer
Joined
Sep 8, 2013
Messages
71
@statik : need to "adduser" from inside the jail. Should work.

My bad, missed that detail. That helped but I am now getting this error:

root@medusa:/ # service medusa start
Starting medusa.
Shared object "libdl.so.1" not found, required by "python2.7"
/usr/local/etc/rc.d/medusa: WARNING: failed to start medusa
 

PatarNoster

Cadet
Joined
Nov 26, 2015
Messages
9
My bad, missed that detail. That helped but I am now getting this error:

root@medusa:/ # service medusa start
Starting medusa.
Shared object "libdl.so.1" not found, required by "python2.7"
/usr/local/etc/rc.d/medusa: WARNING: failed to start medusa

I have the same error, after a bit of research there is an issue 11.2 has the Libdl files but 11.o does not.
There is some work arounds here https://forums.freenas.org/index.ph...n-jail-with-libdl-so-1-not-found-error.70391/

but havent been able to get it to work.
 

statik

Explorer
Joined
Sep 8, 2013
Messages
71

statik

Explorer
Joined
Sep 8, 2013
Messages
71
all right well I ended up going to 11.2 BETA3, while there are many issues with that, at least I got one step closer.... ha...ha...

So Medusa is still not starting for you but you are getting a different error?
 

statik

Explorer
Joined
Sep 8, 2013
Messages
71
all right well I ended up going to 11.2 BETA3, while there are many issues with that, at least I got one step closer.... ha...ha...

ok... so I just installed the 11.2 beta 3 and it is a lot different, and unfortunitly the jails and plugins do not show up and from what i read we have to rebuild them all completely from scratch, and even worse the plugins from 11.1 are not all in 11.2... so im reverting back.
 

Wisdom

Explorer
Joined
Oct 15, 2016
Messages
71
I'd also appreciate some help with an 11.2 install instructions.
I made the jail just fine through the webGUI, but it doesn't appear with jlsvia SSH, and when I manually cd'd to where the iocage jail is located, I got a heap of errors with step one. This likely stems from my poor understanding of the differences between iocage jails and old jails.
Any advice?

E: Okay, I was mostly right, I'm pretty dumb. Getting a baseline understanding of iocage (thanks again Fester) got me up and running...ish. Despite being on 11.2, I'm still getting libdl.so.l not found. Lil' bit salty, since I thought this wasn't supposed to be an issue on 11.2, but I'll keep at it.

E2: FIXED! Just gotta update /etc/pkg/FreeBSD.conf, switch the URL to "pkg+http://pkg.FreeBSD.org/${ABI}/release_2”,
 
Last edited:

statik

Explorer
Joined
Sep 8, 2013
Messages
71
I'd also appreciate some help with an 11.2 install instructions.
I made the jail just fine through the webGUI, but it doesn't appear with jlsvia SSH, and when I manually cd'd to where the iocage jail is located, I got a heap of errors with step one. This likely stems from my poor understanding of the differences between iocage jails and old jails.
Any advice?

E: Okay, I was mostly right, I'm pretty dumb. Getting a baseline understanding of iocage (thanks again Fester) got me up and running...ish. Despite being on 11.2, I'm still getting libdl.so.l not found. Lil' bit salty, since I thought this wasn't supposed to be an issue on 11.2, but I'll keep at it.

E2: FIXED! Just gotta update /etc/pkg/FreeBSD.conf, switch the URL to "pkg+http://pkg.FreeBSD.org/${ABI}/release_2”,


So don't create the jail for Medusa using the Freenas GUI?
 
Top