Skip to content

Tautulli on Ubuntu 16.04 LTS

Here’s a no-nonsese install guide for installing PlexPy Tautulli on Ubuntu 16.04 LTS. I’m assuming you’re root (sudo up!)

#!/bin/bash
# Install git
apt-get install git-core

# Change directory to /opt/ the default location for Tautulli 
cd /opt/

# Clone Tautulli to /opt/Tautulli
git clone https://github.com/Tautulli/Tautulli.git

# Create a service account for Tautulli
adduser --system --no-create-home tautulli

# Change permissions on the folder for the new service account
chown tautulli:nogroup -R /opt/Tautulli

# Set permissions on the Tautulli service file
chmod +x /opt/Tautulli/init-scripts/init.ubuntu

# Link the Tautulli service file to the init (startup/services) folder
ln -s /opt/Tautulli/init-scripts/init.ubuntu /etc/init.d/tautulli

# Update the startup/services
update-rc.d tautulli defaults

# Start PlexPy
service tautulli start

Now Tautulli should be running in the background and will start at bootup. Just head over to http://localhost:8181 and configure it to your liking.

Published inTech

14 Comments

  1. Hugo Hugo

    hi. so i tried this and got to the very last statement but i got the following error. Any thoughts?

    root@hostname:/opt# systemctl status plexpy.service
    ● plexpy.service – PlexPy
    Loaded: loaded (/lib/systemd/system/plexpy.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Mon 2016-03-07 14:10:52 EST; 1min 29s ago
    Process: 4150 ExecStart=/opt/plexpy/PlexPy.py –quiet –daemon –nolaunch –config /opt/plex
    py/config.ini –datadir /opt/plexpy (code=exited, status=1/FAILURE)

    Mar 07 14:10:50 hostname systemd[1]: Starting PlexPy…
    Mar 07 14:10:52 hostname PlexPy.py[4150]: Cannot write to the data directory: /opt/…..
    Mar 07 14:10:52 hostname systemd[1]: plexpy.service: Control process exited, code=…s=1
    Mar 07 14:10:52 hostname systemd[1]: Failed to start PlexPy.
    Mar 07 14:10:52 hostname systemd[1]: plexpy.service: Unit entered failed state.
    Mar 07 14:10:52 hostname systemd[1]: plexpy.service: Failed with result ‘exit-code’.
    Hint: Some lines were ellipsized, use -l to show in full.

    • Arsur Arsur

      sounds like you messed something up with the folder permissions.

      try chown plexpy:nogroup -R /opt/plexpy

      i used an other username

  2. Steph Steph

    PlexPy is already nice. Best would be if you could include PlexRequests(.net) as you will complete your Plex server. Any chance you’ll do that?

  3. Justin Lucarelli Justin Lucarelli

    Amazing!!! Thank you so much! Great work 😉

    Thank you,

  4. tont tont

    Thank you

    U R DA MAN!!!!!!

  5. Red Boll Red Boll

    Thank you for this tutorial!

  6. Thapipo Thapipo

    AWESOMMMMMMMMME

  7. Doodles2000 Doodles2000

    Thank you, nice clean and simple instructions.

    Had one small issue – plexpy (v1.4.25) threw the error:

    CP Server Thread-5 : PlexPy Config :: Error writing configuration file: [Errno 2] No such file or directory: ‘/etc/plexpy/config.ini’

    Result – each time plexpy restarts – it reverts back to default settings (the welcome screen)

    For those with similar issue – Answer:
    mkdir /etc/plexpy
    touch /etc/plexpy/config.ini
    chown -R plexpy:nogroup /etc/plexpy

    • Thanks for the report, I added your suggested fix into the script 🙂

  8. Stucco Stucco

    Thanks! It worked perfectly.

  9. Drummline84 Drummline84

    ERR_SSL_PROTOCOL_ERROR

  10. Louis Louis

    I have tried and tried but it keeps failing tautulli.service failed because the control process exited with error code

  11. This was AWESOME! I’m sure you saved me a lot of time this evening and appreciate the post. I used it successfully on Ubuntu Server 18 with no issues.

Leave a Reply

Your email address will not be published. Required fields are marked *