Jackett

"Jackett works as a proxy server: it translates queries from apps (Sonarr, Radarr, SickRage, CouchPotato, Mylar, etc) into tracker-site-specific http queries, parses the html response, then sends results back to the requesting software. This allows for getting recent uploads (like RSS) and performing searches. Jackett is a single repository of maintained indexer scraping & translation logic - removing the burden from other apps."

Installation

Connect to your server with SSH.

Jackett

  1. Download the latest version of Jackett

    wget `curl --silent https://api.github.com/repos/Jackett/Jackett/releases/latest | awk '/browser_download_url/ && /Jackett.Binaries.Mono.tar.gz/ { print $2 }' | sed 's/"//g'`
    
  2. Extract the archive

    tar xzvf Jackett*.tar.gz
    
  3. Start Jackett in a background screen session. Once started, Jackett is accessible at http://server.whatbox.ca:33990

    screen -dmS jackett mono ~/Jackett/JackettConsole.exe -p 33990
    

    If using a Jackett version prior to v.0.9.6, add -c libcurl at the end of the command above

  4. Clean up your slot

    rm Jackett*.tar.gz
    
  5. Disable automatic update from the Jackett WebUI.

Usage

Your Jackett web interface will be accessible at http://server.whatbox.ca:33990

Automatically Restart

mono-based applications are inherently unstable and prone to crashing. Below are steps to take to have your Jackett instance automatically restart if it crashes, or if the server is rebooted.

  1. Make a file to be used for the script. touch ~/jackett_restart.cron

  2. Edit the file and enter the text below. nano -w ~/jackett_restart.cron

    #!/bin/bash
    if pgrep -fx "mono --debug /home/user/Jackett/JackettConsole.exe -p 33990" > /dev/null
    then
        echo "Jackett is running."
    else 
        echo "Jackett is not running, starting Jackett"
        screen -dmS jackett mono --debug /home/user/Jackett/JackettConsole.exe -p 33990
    fi
    exit
    

    If using a Jackett version prior to v.0.9.6, add -c libcurl after the two port numbers above

  3. Save the file with Ctrl+x, y and Enter to accept overwriting.

  4. Make the script executable. chmod +x ~/jackett_restart.cron

  5. Open your crontab. EDITOR=nano crontab -e

  6. Enter the following text at the end of the file.

    @reboot /home/user/jackett_restart.cron >/dev/null 2>&1
    */5 * * * * /home/user/jackett_restart.cron >/dev/null 2>&1
    
  7. Save the crontab with Ctrl+x, y and Enter to accept overwriting.

Automatically Uptate

This will stop Jackett and repeat the installation proccess once a week.

  1. Make a file to be used for the script. touch ~/jackett_update.cron

  2. Edit the file and enter the text below. nano -w ~/jackett_update.cron

    #!/bin/bash
    echo "Downloading Jackett update package..."
    wget `curl --silent https://api.github.com/repos/Jackett/Jackett/releases/latest | awk '/browser_download_url/ && /Jackett.Binaries.Mono.tar.gz/ { print $2 }' | sed 's/"//g'` >/dev/null 2>&1
    wait
    echo "Done"
    echo ""
    echo "Stopping Jackett proccess..."
    pkill -f Jackett
    wait
    echo "Done"
    echo ""
    echo "Extracting Jackett update package..."
    tar xzvf Jackett*.tar.gz  >/dev/null 2>&1
    wait
    echo "Done"
    echo ""
    echo "Starting Jackett proccess in screen..."
    screen -dmS jackett mono ~/Jackett/JackettConsole.exe -p 33990
    wait
    echo "Done"
    echo ""
    echo "Removing Jackett update package..."
    rm Jackett*.tar.gz
    wait
    echo "Done"
    echo ""
    echo "Jackett is now updated."
    exit
    

    If using a Jackett version prior to v.0.9.6, add -c libcurl at the screen command after the port number above.

  3. Save the file with Ctrl+x, y and Enter to accept overwriting.

  4. Make the script executable. chmod +x ~/jackett_update.cron

  5. Open your crontab. EDITOR=nano crontab -e

  6. Enter the following text at the end of the file.

    @weekly /home/user/jackett_update.cron >/dev/null 2>&1
    
  7. Save the crontab with Ctrl+x, y and Enter to accept overwriting.

Manually Update

  1. Run the cron script from the automatic update section

    sh jackett_update.cron
    

OR

  1. Kill the Jackett process

    pkill -f Jackett
    
  2. Repeat steps 1, 2, 3, 4 in the Jackett installation section