FreeNAS: Install Tautulli
This article will show you how to install Tautulli to a new iocage jail or an existing iocage jail on your FreeNAS system. This method of install also allows for easy update of your Tautaulli install, unlike other methods.
This article is part of my series of FreeNas setup, configuration and install articles.
Installing Tautulli
First you will need to either create a new jail for Tautulli or choose to install it within an existing jail such as the jail in which you’ve installed Plex Media Server. Once you’re done that go to the jail’s command line and make sure the prerequisits are installed by running the following command:
pkg install python2 py27-setuptools py27-sqlite3 py27-openssl py27-pycryptodome security/ca_root_nss git-lite
We will want to install Tautulli in the /usr/local/share/Tautulli
directory, so lets change to the right directory and then intsall using git:
cd /usr/local/share/
git clone https://github.com/Tautulli/Tautulli.git
We will now need to set the appropriate permissions for Tautulli. You can allow all users to run, which is probably safe within a jail, using the following command:
chmod -R 777 Tautulli
OR you can allow one specific user to run it using the following command (and replacing user and group with the appropriate values):
chown -R user:group Tautulli
That’s it! Tautulli is installed. Now lets run it and configure it to run automatically.
Run Tautulli
Now that Tautulli is installed it is time to start it up and check that all is working. From the command line interface in the jail, run the following:
python2 /usr/local/share/Tautulli/Tautulli.py
Now you should be able to access Tautulli from a computer on the same network by going to http://JAIL-IP:8181. You can find the jail’s IP address using the ifconfig
command at the command line interface. If everything is running, we’re now ready to ensure that Tautulli starts when the system boots.
Automate Tautulli Startup
Tautulli comes with an init script that we will have run when the jail starts up. First we will need to ensure Tautulli is shut down, so from the web interface go to Settings > Shutdown. Now we will run the following commands at the command line interface:
Ensure user permissions are correct:
chown -R root:wheel /usr/local/share/Tautulli
Copy init script:
cp /usr/local/share/Tautulli/init-scripts/init.freenas /usr/local/etc/rc.d/tautulli
Set user to run Tautulli:
sysrc tautulli_user="root"
OR edit:
/usr/local/etc/rc.d/tautulli
and changed the user in there.
Enable the service to run at boot:
sysrc tautulli_enable="YES"
Create a link to the python directory:
ln -s /usr/local/bin/python2 /usr/local/bin/python
Start the service:
service tautulli start
You can use service tautulli [start | stop | restart | status]
to start/stop/restart or check the status of the Tautulli service.
As and alternate install method you can doe the following which works, but won’t update from the WebUI:
pkg install tautulli
sysrc "tautulli_enable=YES"
That’s it! Tautulli is up and running! Happy Tautulling!
~Raze
so this is great document except the init file fails to start due to ENV error on python any way someone can comment on that or tell me how to fix the Freenas.init script it has errors
Did you use the sysrc command? Doublecheck for spelling mistakes.
Followed the guy a while back, but Tautulli doesn’t update via UI. Goes thru update flow, then shows update notes from old version – new version is not installed. Any chance of doing a manual update tutorial?
guide*
I have the same issue. Will not update from the UI