How To Install Tautulli (A Python based monitoring and tracking tool for Plex Media Server.)

Denose16

Cadet
Joined
Dec 19, 2016
Messages
4
Hey, I haven't been able to find a solution to this yet, please help! :)
When I paste:
I get:
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), er
rno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Found a post saying this might help:
"git config --global http.postBuffer 1048576000"

Then thought to download the .zip and go from there, but I don't know where to go from there :p
_________________________________________________________________________________________________________

UPDATE: For those who might be suffering from the same problem. Download the zip file and upload as a custom Plugin. A custom jail will be created for this plugin. Open the shell for the new jail and paste all the lines into there, it worked!! :D
 

jonmayer

Cadet
Joined
Jan 20, 2017
Messages
9
Says that it's not a git repo on all commands.
Are you in the PlexPy folder? I just followed the steps and it finally updated.
Code:
A: The following only applies if you installed PlexPy using git. Stop PlexPy, then run the following commands from the command line/shell in the PlexPy folder.

git remote set-url origin https://github.com/JonnyWong16/plexpy.git
git fetch origin
git checkout master
git branch -u origin/master
git reset --hard origin/master
git pull
 

stin9ray

Cadet
Joined
Oct 27, 2015
Messages
6
Hi everybody,

I just tried installing plexpy and I ran into a bit of trouble along the way. I managed to figure it out and I thought my notes might be helpful for others as well.

Code:
# The plex jail that I installed plexpy on was an old 9.3 jail, or
# even 9.2. Anyways, pkg doesn't find the right stuff any more. To fix
# that we need to bootstrap pkg again.

/usr/sbin/pkg bootstrap -f
pkg delete -f pkg
/usr/sbin/pkg -v
pkg -vv
pkg update -f
pkg upgrade

# security/py-openssl does not seem to exist anymore
# so we removed that
pkg install python2 databases/py-sqlite3  security/ca_root_nss git

# This one fails miserably while installing dependency cryptography
## pip install pyopenssl

# We need openssl first
pkg install openssl

# There seems to be a known issue in cryptography and their website
# suggests setting the flags as a workaround.
env LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install cryptography

# And now the pyopenssl works.
pip install pyopenssl

# And then follow the official setup instructions at
# https://github.com/JonnyWong16/plexpy/wiki/Installation
# and
# https://github.com/JonnyWong16/plexpy/wiki/Install-as-a-daemon


Hope this helps!
 
Last edited:

Supa

Patron
Joined
Jan 10, 2014
Messages
204
Hi everybody,

I just tried installing plexpy and I ran into a bit of trouble along the way. I managed to figure it out and I thought my notes might be helpful for others as well.

Code:
# The plex jail that I installed plexpy on was an old 9.3 jail, or
# even 9.2. Anyways, pkg doesn't find the right stuff any more. To fix
# that we need to bootstrap pkg again.

/usr/sbin/pkg bootstrap -f
pkg delete -f pkg
/usr/sbin/pkg -v
pkg -vv
pkg update -f
pkg upgrade

# security/py-openssl does not seem to exist anymore
# so we removed that
pkg install python2 databases/py-sqlite3  security/ca_root_nss git

# This one fails miserably while installing dependency cryptography
## pip install pyopenssl

# We need openssl first
pkg install openssl

# There seems to be a known issue in cryptography and their website
# suggests setting the flags as a workaround.
env LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install cryptography

# And now the pyopenssl works.
pip install pyopenssl

# And then follow the official setup instructions at
# https://github.com/JonnyWong16/plexpy/wiki/Installation
# and
# https://github.com/JonnyWong16/plexpy/wiki/Install-as-a-daemon


Hope this helps!

I'll admit I haven't really kept up with all the changes. So the only extra commands you had to run were these?

/usr/sbin/pkg bootstrap -f
pkg delete -f pkg
/usr/sbin/pkg -v
pkg -vv
pkg update -f
pkg upgrade
pkg install python2 databases/py-sqlite3 security/ca_root_nss git
pkg install openssl
env LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install cryptography
pip install pyopenssl

Let me know what should be changed in the starting thread and I can add to it.
 

stin9ray

Cadet
Joined
Oct 27, 2015
Messages
6
@Supa: yes that is correct, These were the only extra commands to get the pre-requisites for plexpy happy. Apologies, but I do prefer bash over csh, and bash treats '#' as a comment. My guess would be that a more recent jail install may not require anything before the first 'pkg install' above. My jail was just hopelessly out of date and the commands above did get it back in line. After the commands above I rolled with your instructions from 'cd /usr/local/share/' and it was pretty smooth sailing, so thank you for that :smile: Of course it was a little more messy in real life and I forgot to take a snapshot so I can't roll back and re-check.

Having that said, plexpy will run without the openssl and cryptography on plain http. The packages python2 and openssl may have been already on there, but the pkg install commands are fine even if that is the case.
 

dgparryuk

Cadet
Joined
Dec 21, 2017
Messages
1
when i get to the git line i'm getting the error
shared object libpcre.so.1 not found required by "git"
but that file exists in \usr\local\lib - i've tried unistalling & re-install pcre and git - rebooted both the jail & the NAS, anybody got any easy fixes, my google-fu is struggling on this one

oh and i'm still on v9.10
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
unable to find a solution to an issue i ran into while trying to install. I am running Freenas 9.3 and installing in a new jail. when trying to clone from git i get the following


/usr/local/share # git clone https://github.com/Tautulli/Tautulli.git
Cloning into 'Tautulli'...
fatal: unable to access 'https://github.com/Tautulli/Tautulli.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert
protocol version
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Your version of FreeNAS is too old! Github stopped accepting requests using TLS1 security some months ago, and that's what your jail is using. Solution would be to update FreeNAS and then build a new jail, probably using iocage if you want to future proof it and not have a similar problem in a few years time.
 

TAC

Contributor
Joined
Feb 16, 2014
Messages
152
I'm trying to install Tautulli in the Plex jail on my main computer I get the following error when trying to install openssl.

When I run:
pkg install py27-openssl

I get:
pkg: No packages available to install matching 'py27-openssl' have been found in the repositories.

On a different computer running the same FreeNAS 9.10.2, and Plex, openssl installed just fine. On running pkg install py27-openssl again I get the message 'The most recent version of packages are already installed'. The first time I ran the install it looked like it ran just fine (like all the other packages).
 
Last edited:

TAC

Contributor
Joined
Feb 16, 2014
Messages
152

StarkJohan

Explorer
Joined
Mar 27, 2015
Messages
62
Did anyone run inte troubles with the freenas initscript? Tautulli runs fine when started manually but the init script struggles with finding python2.7 it seems. Any suggestions? The path /usr/local/bin/python2.7 is correct.

Code:
root@Tautulli:/usr/local/www/tautulli # service tautulli start

/usr/local/etc/rc.d/tautulli: WARNING: $command_interpreter /usr/local/bin/python2.7 != /bin/sh

Starting tautulli.

Error: Python not found!
 

StarkJohan

Explorer
Joined
Mar 27, 2015
Messages
62
My problem was the init script bundled and installed with the Tautulli port. I removed that from /usr/local/etc/rc.d/ and replaced it with the example init script from /usr/local/www/tautulli/init-scripts/ and now the service can be properly started. These two scripts are totally different so I guess the one not working is some older or totally generic version which should be manually replaced.
 

Mara

Dabbler
Joined
Jan 14, 2017
Messages
48
Hi everyone,

I have a problem that has been going on for months. I redo the installation of my Freenas since (v11.2), I reinstalled 3x Tautulli! Here is one of the procedures I followed:

FreeNAS
Instructions by Supa on the FreeNAS forums.

Tautulli will be installed to /usr/local/share/Tautulli.

Create a new jail for Tautulli (you can also install it within the PMS jail if you wish)
Open the jail shell.
Install prerequisites: pkg install python2 py27-setuptools py27-sqlite3 py27-openssl py27-pycryptodome security/ca_root_nss git-lite
Type: cd /usr/local/share/
Type: git clone https://github.com/Tautulli/Tautulli.git
Fix permissions:
Allow all users to run: chmod -R 777 Tautulli OR
Allow only a certain user to run: chown -R user:group Tautulli
Type: cd Tautulli
Type: python2 Tautulli.py to start Tautulli
You should be able to access Tautulli from your computer by going to http://[JAIL-IP]:8181. You can find the jail's IP address using ifconfig.
To run Tautulli in the background on startup, refer to Install as a daemon

Now, a update is available (v2.1.32), from the web interface Tautulli I choose "Update", I awaiting (tautulli is updating) and nothing! :'( Still the same version, I try several Times I still have the same issue.


Has anyone been confronted with this problem?

Thank you!
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
It never updates via the web browser for me
I run
Code:
pkg update && pkg update -y


from the jail's shell and it updates just fine to whatever the latest and greatest is in the repositories that way. I might have my jail setup a bit different than you though
 

Mara

Dabbler
Joined
Jan 14, 2017
Messages
48
It never updates via the web browser for me
I run
Code:
pkg update && pkg update -y


from the jail's shell and it updates just fine to whatever the latest and greatest is in the repositories that way. I might have my jail setup a bit different than you though

Hi, I tried you command from shell and nothing, I still have the same version 2.1.29... From browser always the same issue.

Could you share your jail setup maybe? Thx
 
Top