how can I do this? Dont understand how you give it access?
Open System Preferences > Security & Privacy. Click the Privacy tab and scroll down in the left column to Full Disk Access and select it.
Click the lock icon at the bottom left of the window and enter in admin credentials.
Click the plus button under the right column and navigate to Macintosh HD or whatever your main disk is called. You can press SHIFT-COMMAND-‘Period’ to see hidden files and select the ‘bin’ folder then select the ‘sh’ file.
Restart Sonarr and you should be good.
It’s not smart to leave it like that long term but it will fix it in the short term till Sonarr can get an update.
thanks, it works!
Hey, umm… I don’t want to be a Debbie downer, but you really shouldn’t do this.
SH (bash) is one of the main scripting engines that runs on Mac & Linux. So this would include allowing any and all scripts full system access.
This would basically be leaving your back door wide open, just to let your cat in whenever it wants… when really you need a cat flap.
I recommend waiting for a fix, or running the manual commands after startup until then
So… is this issue an active bug / feature request that is being worked on by the developers of Sonarr? Sorry, not sure how to look that up…
JonSF’s recommendation seems to work.
If you would like to run the app without having to keep terminal open you can run the command as:
username@macname MacOS % cd /Applications/Sonarr.app/Contents/MacOS
username@macname MacOS % nohup ./Sonarr &
This will ensure the app runs in background, even after you “hangup”, without verbose terminal feedback.
You can then CTRL + C (hangup) or exit terminal, but the application will keep running.
If you create a bash script you can also do the same and just run the script behind the scenes and you never have to type full command again.
One correct and complete solution:
Use mono’s mkbundle to generate a real executable.
Add full disk access to that.
(This currently has to be redone on updates, but could be made part of the update process).
On a mac, go to /Applications/Sonarr.app/Contents/MacOS
run mkbundle --simple -o Sonarr nzbdrone.exe
It should generate a standalone executable named Sonarr that can be added for full disk access and will work properly.
Of course, you still have to start it separately, but that should be fixable in sonarr itself, since mkbundle works correctly on every platform mono supports.
Hm. I get:
mkbundle --simple -o Sonarr nzbdrone.exe
ERROR: Cannot find assembly `nzbdrone.exe’
For v3 beta I believe the main executable is now named Sonarr.exe, so use that instead if you are on v3 beta.
If you are on v2, you are either on a case sensitive FS (in which case use NzbDrone.exe) or in the wrong dir.
You will get sth like this:
mkbundle --simple nzbdrone.exe -o Sonarr Using runtime: /Library/Frameworks/Mono.framework/Versions/6.4.0/bin/mono Assembly: /Applications/Sonarr.app/Contents/MacOS/nzbdrone.exe Config: /Applications/Sonarr.app/Contents/MacOS/nzbdrone.exe.config Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/mscorlib.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.Host.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.ServiceProcess.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Mono.Security.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Configuration.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Xml.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Security.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Core.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Numerics.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Configuration.Install.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Windows.Forms.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Drawing.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Runtime.Serialization.Formatters.Soap.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Accessibility.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Mono.WebBrowser.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Mono.Posix.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Data.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Transactions.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.EnterpriseServices.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.Core.dll Config: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.Core.dll.config Assembly: /Applications/Sonarr.app/Contents/MacOS/FluentValidation.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.Common.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NLog.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.ServiceModel.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Runtime.Serialization.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.ServiceModel.Internals.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.IdentityModel.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Web.ApplicationServices.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Messaging.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Mono.Messaging.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.IdentityModel.Selectors.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Web.Services.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Web.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.ComponentModel.DataAnnotations.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Mono.Data.Sqlite.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.DirectoryServices.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Novell.Directory.Ldap.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Design.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.ServiceModel.Activation.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/ICSharpCode.SharpZipLib.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Newtonsoft.Json.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Xml.Linq.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/LogentriesNLog.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/LogentriesCore.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/SharpRaven.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/Microsoft.CSharp.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/CurlSharp.dll Config: /Applications/Sonarr.app/Contents/MacOS/CurlSharp.dll.config Assembly: /Applications/Sonarr.app/Contents/MacOS/SocksWebProxy.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Org.Mentalis.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Marr.Data.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/RestSharp.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Prowlin.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Growl.Connector.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Growl.CoreLibrary.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/OAuth.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/ImageResizer.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/System.Data.SQLite.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/CookComputing.XmlRpcV2.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/FluentMigrator.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/FluentMigrator.Runner.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Data.DataSetExtensions.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Web.Extensions.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/System.Data.Linq.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/MonoTorrent.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Microsoft.Owin.Hosting.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Microsoft.Owin.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Owin.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Nancy.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.SignalR.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Microsoft.AspNet.SignalR.Core.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NzbDrone.Api.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Ical.Net.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Ical.Net.Collections.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/NodaTime.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/antlr.runtime.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Nancy.Authentication.Basic.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Nancy.Authentication.Forms.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Nancy.Owin.dll Assembly: /Applications/Sonarr.app/Contents/MacOS/Microsoft.AspNet.SignalR.Owin.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/I18N.West.dll Assembly: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/4.5/I18N.dll systemconfig: /Library/Frameworks/Mono.framework/Versions/6.4.0/etc/mono/config machineconfig: /Library/Frameworks/Mono.framework/Versions/6.4.0/etc/mono/4.5/machine.config Generated Sonarr
dberlin - that worked, but aren’t .exe files for Windows? Don’t we want to make a .app file?
Where is the executable file created that is needed to be added to full disk access?
It gets placed in /Applications/Sonarr.app/Contents/MacOS
This takes the windows .net binary (which requires mono to run) and creates a 64 bit MacOS executable (that has mono embedded in it) that can run from it.
Sorry dberlin, can I ask you to spell this out for me (us?)
So I created that executable that now resides inside the Sonarr.app package.
Do I run somehow run that .exe as an executable now? (and add it to my Security & Privacy / Privacy / Full Disk Access settings?)
I’ve tried the methods above and combinations of all suggestions and it will only work with adding sh to full disk access, which I’m not going to do due to the security implications.
I currently have Sonarr running via command line using a launch agent I created:
cd /Applications/Sonarr.app/Contents/MacOS/ mono Sonarr.exe
The launch agent is formatted as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>Sonarr</string> <key>ProgramArguments</key> <array><string>/Applications/SonarrLaunch/sonarrStart.sh</string></array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist>
No problems with the app staying open, so these work as expected.
I’ve added combinations of the Sonarr.app, Sonarr executable file, mono-sgen64 to full disk access. Still having access errors:
Import failed, path does not exist or is not accessible by Sonarr
Absolutely baffled. Open to suggestions, but it looks like I’ll be waiting for an update.
I get the error:
Cannot open assembly ‘sonarr.app’: File does not contain a valid CIL image.
when trying to run
mono Sonarr.app from ~/Applications in Terminal
I am not sure what a CIL image is.
You beautiful man, you! This fixed it! I was going crazy trying to figure out why I couldn’t update my newest episodes, and this step-by-step was just the ticket. I can sleep a little easier tonight.
me too. I don’t even know how to be notified when there is an update (as I can only find a download option on the home screen) so I am resorting to downloading every so often and hoping it runs.
There’s been some discussion in a GitHub issue about this: https://github.com/Sonarr/Sonarr/issues/3168
Unfortunatly, I doubt a fix is going to be with us soon…
yeah, funnily enough, I have just been looking at that thread.
My main interest in Sonarr, isn’t the downloading, but simply the knowledge of what episodes are missing. Is there something else that can do that?