Getting NZBHydra Working on MacOS Sierra

This seems to mostly work, but still having some issues keeping it stable. Maybe this will help someone else anyway 🙂

Here’s what I did on Mac OSX Sierra Latest:

first:

# nano ~/Library/LaunchAgents/com.nzbhydra.nzbhydra.plist

put this (change path + username):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
 <key>Label</key>
 <string>com.jackett.jackett</string>
 <key>ProgramArguments</key>
 <array>
 <string>/Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh</string>
 </array>
 <key>RunAtLoad</key>
 <true/>
 <key>KeepAlive</key>
 <false/>
 <key>StandardErrorPath</key>
 <string>/usr/local/var/log/nzbhydra.log</string>
 <key>StandardOutPath</key>
 <string>/usr/local/var/log/nzbhydra.log</string>
 </dict>
</plist>

make this:

# nano /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh

with this content (change username, and path and IP):

#!/bin/bash
/usr/bin/python /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/nzbhydra.py --logfile /usr/local/var/log/nzbhydra.log --host YOUR_IP_ADD_RESS --nobrowser --daemon

save and exit then:

# chmod +x run.sh

test:

# touch /usr/local/var/log/nzbhydra.log
# tail -f /usr/local/var/log/nzbhydra.log 
# /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh

you should see output and nzbyhydra should be available at http://YOUR.IP:5075
if it all runs you probably want to make it start on reboot:

launchctl load ~/Library/LaunchAgents/com.jackett.jackett.plist
launchctl start com.jackett.jackett

and here’s how you unload if you need to:

launchctl unload ~/Library/LaunchAgents/com.jackett.jackett.plist

Let me know if this helps you or have a better way by commenting!

2 Comments

  1. Do you have a tutorial to get this working step by step. I tried everything but nit able to get it on mac

  2. This was super helpful, but I got a little thrown by the com.jackett.jackett stuff. Did you copy and paste this format from something else you were working on?

    In case anyone else is having trouble, that is an entirely unrelated service that you don’t need for NZBHydra. I didn’t realize at first because it’s just the label in the plist part, but you’ll definitely need to change the “jackett”s to “nzbhydra” to make it start on boot properly.


Add a Comment

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

Comment *

Name *
Email *
Website