[PACKAGE] Tautulli / PlexPy, adds monitoring, analytics and notifications for your Plex server

Update on that… it is now working, it was not updating the data when someone was using my Plex but like I said working now.

I am having a issue with a Plex use showing as watched a movie but it’s showing as if my account watched it, any ideas?

Thank you for making the WD app, keep up the great work.

How do you update that app so to make sure I am running the currant version?

From the Plexpy admin screen the gear icon in the upper left corer has a check for update, click it and if there is one it will update it automatically.

Hi, first of thank you for setting this up for WD nas users.
I’ve never set up plexpy on nas before or use it i very much will like to run this along side my plex server thats install on my nas. but need a noob instructions :sweat_smile:

I am very interested to using tautulli on my WD Nas EX2100 and have installed the correct bin file you posted in your link.WDMYCloudEX2100_tautulli_0.02.bin

Reading through the comments i can understand that you have updated the linked file so it uses tautulli. however when i launch this from my nas interface “configure” it gives me a bad url error. - do i need to install any other program or tweak anything else, please educate me if im going wrong some where, if you also need logs please advice where i should retrieve this also. thank you in advance.

Thanks for testing it.
I don’t have an EX2100 device myself, so those packages are a bit of an experiment.

Do you have the install logs? Usually they are in /tmp/debug_apkg .

Hi thank you for your response- Im not at home at the moment but i manage to still have the debug_apkg file on my tablet as I used es file explorer pro to access my nas folders via (Sftp) I’m not good with ssh commands lol, as shown below please review what I retrieved from debug_apkg - I’m not sure if it’s a true reflection of the install logs,… but once I get home I can retrieved an up to date file.

INIT linking files from path: /mnt/HD/HD_a2/Nas_Prog/tautulli
APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/Transmission/stop.sh /mnt/HD/HD_a2/Nas_Prog/Transmission
APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/Transmission/start.sh /mnt/HD/HD_a2/Nas_Prog/Transmission
APKG_DEBUG: starting PlexPy on port 8282
APKG_DEBUG: starting PlexPy on port 8282
APKG_DEBUG: starting PlexPy on port 8282

Thank you

mmmm that doesn’t say much :slight_smile:
Some extra commands to debug:

Go to app dir and list contents

cd /shares/Volume_1/Nas_Prog/tautulli

Now do a manual install, based on wdpksrc/install.sh at master · WDCommunity/wdpksrc · GitHub

wget https://github.com/Tautulli/Tautulli/archive/master.zip --no-check-certificate 
unzip master.zip
rm master.zip

Then ensure it is initialized

sh init.sh .    # note the dot

Then start manually, as in wdpksrc/start.sh at master · WDCommunity/wdpksrc · GitHub

cd Tautulli-master
python ./PlexPy.py --port 8282

If that works, stop by pressing CTRL-C and start tautulli in daemon mode

python ./PlexPy.py --port 8282 --daemon --pidfile /var/run/plexpy.pid

Eventually remove a leftover pid file preventing the daemon to start

rm /var/run/plexpy.pid

First Attempt, after installing from Android view - please view below dir and list


First installation Error after clicking on “configure” via Nas interface

Second error after clicking “configure” via install ssh command provided above


Logs
192.168.0.30_20180510003749.txt (170.4 KB)

tmp>debug_apkg
INIT linking files from path: /mnt/HD/HD_a2/Nas_Prog/tautulli APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/Transmission/stop.sh /mnt/HD/HD_a2/Nas_Prog/Transmission APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/Transmission/start.sh /mnt/HD/HD_a2/Nas_Prog/Transmission APKG_DEBUG: starting PlexPy on port 8282 APKG_DEBUG: starting PlexPy on port 8282 APKG_DEBUG: starting PlexPy on port 8282 APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/_install/tautulli/before_apkg.sh Download tautulli RC: 0 Unpack RC: 0 Addon Tautulli (install.sh) done APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/tautulli/init.sh /mnt/HD/HD_a2/Nas_Prog/tautulli INIT linking files from path: /mnt/HD/HD_a2/Nas_Prog/tautulli APKG_DEBUG: starting PlexPy on port 8282 APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/tautulli/clean.sh /mnt/HD/HD_a2/Nas_Prog/tautulli APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/tautulli/remove.sh /mnt/HD/HD_a2/Nas_Prog/tautulli APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/_install/tautulli/before_apkg.sh Download tautulli RC: 0 Unpack RC: 0 Addon Tautulli (install.sh) done APKG_DEBUG: /mnt/HD/HD_a2/Nas_Prog/tautulli/init.sh /mnt/HD/HD_a2/Nas_Prog/tautulli INIT linking files from path: /mnt/HD/HD_a2/Nas_Prog/tautulli APKG_DEBUG: starting PlexPy on port 8282

i didnt complete the last two instructions as when i saw the following message i ended it there
HTTPSHandlerImportError: cannot import name HTTPSHandler
i googled this message and found this link. https://bcb.github.io/importerror-httpshandler is this correct?

This usually means that you have an openssl issue.
What’s the output of

python --version
openssl version          # edit: not --version

And do you have the latest firmware installed?

root@FEWZHONMedia root # python --version Python 2.7.3
root@FEWZHONMedia root # openssl --version
openssl:Error: '--version' is an invalid command.

Standard commands
asn1parse ca ciphers cms
crl crl2pkcs7 dgst dh
dhparam dsa dsaparam ec
ecparam enc engine errstr
gendh gendsa genpkey genrsa
nseq ocsp passwd pkcs12
pkcs7 pkcs8 pkey pkeyparam
pkeyutl prime rand req
rsa rsautl s_client s_server
s_time sess_id smime speed
spkac srp ts verify
version x509

Message Digest commands (see the 'dgst' command for more details)
md4 md5 rmd160 sha
sha1

Cipher commands (see the 'enc' command for more details)
aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb
aes-256-cbc aes-256-ecb base64 bf
bf-cbc bf-cfb bf-ecb bf-ofb
camellia-128-cbc camellia-128-ecb camellia-192-cbc camellia-192-ecb
camellia-256-cbc camellia-256-ecb cast cast-cbc
cast5-cbc cast5-cfb cast5-ecb cast5-ofb
des des-cbc des-cfb des-ecb
des-ede des-ede-cbc des-ede-cfb des-ede-ofb
des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb
des-ofb des3 desx rc2
rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb
rc2-ecb rc2-ofb rc4 rc4-40
seed seed-cbc seed-cfb seed-ecb
seed-ofb zlib

root@FEWZHONMedia root #.
firmware is 2.30.181

Thanks for all the info.
The PR4100 firmware has python 2.7.5 but it seems the EX2100 version is even more outdated.
I’m about to setup the ARM toolchain and then I’ll be able to get you a recent version of python / openssl.
Maybe next week :slight_smile:

1 Like

Thank you and your hard work is very much appreciated.

Your welcome to request me to do further testing if you wish. it helps me learn too.

:grin:

Hi I am also seeing permission denied. Is there any fix for that?

Thanks!

I should mention I am using this on a PR4100. I installed the app from the UI and also tried the manual install some steps up.

Thanks for reporting this.
This was the problem:

root@MyCloudPR4100 Tautulli-master # python ./PlexPy.py --port 8282 --daemon --pid
file /var/run/plexpy.pid
Traceback (most recent call last):
  File "./PlexPy.py", line 24, in <module>
    from Tautulli import main
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/Tautulli.py", line 35, in <module>
    import plexpy
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/plexpy/__init__.py", line 33, in <module>
    from apscheduler.schedulers.background import BackgroundScheduler
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/lib/apscheduler/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ImportError: No module named pkg_resources

To fix it, I simply installed pip, the python package manager.

wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
/opt/bin/python get-pip.py

I’ve created a new package. Entware is mandatory now and I added secure installer downloads.

Thanks for the quick response, though I installed the new package via the UI and it still is not working. Same error

   root@MyCloudPR4100 Tautulli-master # python ./PlexPy.py --port 8282
Traceback (most recent call last):
  File "./PlexPy.py", line 24, in <module>
from Tautulli import main
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/Tautulli.py", line 35, in <module>
import plexpy
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/plexpy/__init__.py", line 33, in <module>
from apscheduler.schedulers.background import BackgroundScheduler
  File "/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/lib/apscheduler/__init__.py", line 1, in <module>
from pkg_resources import get_distribution, DistributionNotFound
ImportError: No module named pkg_resources
root@MyCloudPR4100 Tautulli-master # wget https://bootstrap.pypa.io/get-pip.py -
-no-check-certificate

–2018-08-10 11:17:51-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io… 151.101.184.175, 2a04:4e42:b::175
Connecting to bootstrap.pypa.io|151.101.184.175|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1642522 (1.6M) [text/x-python]
Saving to: ‘get-pip.py’

100%[======================================>] 1,642,522 --.-K/s in 0.1s

2018-08-10 11:17:51 (11.0 MB/s) - ‘get-pip.py’ saved [1642522/1642522]

root@MyCloudPR4100 Tautulli-master # /opt/bin/python get-pip.py
-sh: /opt/bin/python: not found

what am I missing?

Thanks

Does the new package install python in entware?

/opt/bin/opkg install python-light

You also need the entware package now.

root@MyCloudPR4100 Tautulli-master # /opt/bin/opkg install python-light
Package python-light (2.7.15-1) installed in root is up to date.
root@MyCloudPR4100 Tautulli-master # python ./PlexPy.py --port 8282
Traceback (most recent call last):
File “./PlexPy.py”, line 24, in
from Tautulli import main
File “/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/Tautulli.py”, line 35, in
import plexpy
File “/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/plexpy/init.py”, line 33, in
from apscheduler.schedulers.background import BackgroundScheduler
File “/mnt/HD/HD_a2/Nas_Prog/tautulli/Tautulli-master/lib/apscheduler/init.py”, line 1, in
from pkg_resources import get_distribution, DistributionNotFound
ImportError: No module named pkg_resources
root@MyCloudPR4100 Tautulli-master #

Shoot, didnt mean to respond just the error. I still see this error. I installed entware then the package from the admin UI manual app install

I have this

root@MyCloudPR4100 tautulli # /opt/bin/opkg install python-light
Package python-light (2.7.15-1) installed in root is up to date.

And these results from looking at other posts

root@MyCloudPR4100 Tautulli-master # python --version
Python 2.7.5
root@MyCloudPR4100 Tautulli-master # openssl --version
openssl:Error: '--version' is an invalid command.

Not sure if that is helpful?

Thanks!

Uninstall Tautulli.
Install Entware via the web UI. It plugs into your PATH so you may need to reconnect over SSH to reload the new /etc/profile.
Then install the new Tautulli package.
Press configure in the web UI and it should be fine.

If it isn’t, open a new SSH session and ensure python 2.15.1 is installed

/opt/bin/python --version

Ensure you’re using the new python, not the system version.

which python

Then check that the python package manager is installed

echo $PATH
which pip
pip --version        or /opt/bin/pip --version

Finally try adding python setuptools, as pkg_resources module is part of that package.

opkg update
opkg install python-setuptools

If it still doesn’t start after all this, please provide the error of

/opt/bin/python ./PlexPy --port 8282

I’ll retest with a new entware environment later this week and update the install script if necessary.