Resource icon

FN11.3 iocage jails - Plex, Tautulli, Sonarr, Radarr, Lidarr, Jackett, Transmission, Organizr

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Hey,

I have Sonarr, Radarr and Jackett running using Mono, in 1 jail. Now Radarr and Sonarr work stable. But it seems Jackett stops soon after starting the jail. Now i can't "service jackett restart" because i dont have permission to stop Mono (other user for Radarr and Sonarr and Jackett) nor would i want to have the same Mono instance restarted only for Jackett.

How can i run 2 or 3 independant Mono instances for each app or Sonarr + Radarr and Jackett separate?

I want to keep all the HTPC stuff in 1 Jail for VPN routing and to keep requests to Jackett over 127.0.0.1 ( for some reason api calls dont work over reverse SSL proxy and i need to use plain, but rather over loopback then over network)
 

Benc

Dabbler
Joined
Nov 5, 2015
Messages
37
For example, I don't want my plex server to be able to modify the media libraries (just index them). So I have made it readonly for ple

May I ask why so? Is there a security reason for that? I was thinking it is practical to have all additional files like subtitles or optimized versions together with original media file. I guess this is only possible if plex has write permission.
 

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
I installed the plexpass version and created the FreeBSD.conf file to get the latest repos... looks like Plex 1.12.2.4929 was up on fresh ports 4 days ago, but I am still not able to update. Should I be checking somewhere else for availability?

using: iocage exec plex "pkg update && pkg upgrade"
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I installed the plexpass version and created the FreeBSD.conf file to get the latest repos... looks like Plex 1.12.2.4929 was up on fresh ports 4 days ago, but I am still not able to update. Should I be checking somewhere else for availability?

using: iocage exec plex "pkg update && pkg upgrade"
I just updated to 4929. Try it again.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Got it this time. Is there a different repo we should check than Freshports?
There's only one repo. The package can take a couple days or so to show up after the port is updated. Be patient, it eventually shows up.
 

dir_d

Explorer
Joined
Nov 9, 2013
Messages
55
*edit3*
More debugging and i have the same exact error message in sonarr as radarr so i am so I'm almost sure mono is the a cause.

*edit2*
I tried to make mono from a tarbar and i get really far then it crashes about some lib files for mono-mini. I tried to install mono 5.2 by itself in a fresh iocage with its dependencies by just doing a pkg install mono and it installs but some of the dependencies crash due to mono not working correctly. I'm kind of stuck now and I'm think there might be something wrong with my iocage on a fresh install of 11.1 U4, just not sure.

*edit*
I found under http://update.ixsystems.com/FreeNAS/Packages/ older packages, i am going to attempt to use one of these to install an older version of mono.


So i seem to be having a problem with Sonarr. I have installed it in iocage every way that you can on the net and i still get the same error which is below. I ran into a thread here that states it may be mono 5.2. I am currently on FN 11.1-U4 and have no way to get mono 4.8 like the thread suggested since this is a fresh install. Has anyone else got an iocage sonnar to work on FN 11.1-U4 that wouldn't mind helping a little?

Code:
root@sonarr:/usr/local/share/sonarr # /usr/local/bin/mono --debug /usr/local/share/sonarr/NzbDrone.exe --data=/config --nobrowser
mono_w32file_find_first: error creating find handle
Stacktrace:

  at <unknown> <0xffffffff>
  at System.IO.FileSystemEnumerableIterator`1<TSource_REF>.CommonInit () [0x00054] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:296
  at System.IO.FileSystemEnumerableIterator`1<TSource_REF>..ctor (string,string,string,System.IO.SearchOption,System.IO.SearchResultHandler`1<TSource_REF>,bool) [0x000d6] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:264
  at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (string,string,string,bool,bool,System.IO.SearchOption,bool) [0x00009] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:48
  at System.IO.Directory.InternalGetFileDirectoryNames (string,string,string,bool,bool,System.IO.SearchOption,bool) [0x00000] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:836
  at System.IO.Directory.InternalGetFiles (string,string,System.IO.SearchOption) [0x00000] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:653
  at System.IO.Directory.GetFiles (string,string) [0x0001c] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:622
  at NLog.Config.ConfigurationItemFactory.GetNLogExtensionFiles (string) [0x00040] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Config.ConfigurationItemFactory.BuildDefaultFactory () [0x0002e] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Config.ConfigurationItemFactory.get_Default () [0x00009] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Layouts.Layout.FromString (string) [0x00001] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Layouts.Layout.op_Implicit (string) [0x00001] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Targets.TargetWithLayout..ctor () [0x0000c] in <a273cb27438940d6830e58cd57866c35>:0
  at NzbDrone.Common.Instrumentation.Sentry.SentryTarget..ctor (string) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\Sentry\SentryTarget.cs:35
  at NzbDrone.Common.Instrumentation.NzbDroneLogger.RegisterSentry (bool) [0x0002d] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:106
  at NzbDrone.Common.Instrumentation.NzbDroneLogger.Register (NzbDrone.Common.EnvironmentInfo.IStartupContext,bool,bool) [0x00030] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:43
  at NzbDrone.Console.ConsoleApp.Main (string[]) [0x00007] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:30
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x00051] in <873a90b5808e407e87a91aca465910c0>:0

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Abort

 
Last edited:

corky876

Cadet
Joined
Dec 7, 2014
Messages
7
I have plexpass, organizr, radarr, and sonarr running in iocage jails. plexpass updates fine, but radarr and sonarr do not update to the latest versions that are ported. Is there some method I don't know about to update these? I have tried running iocage exec radarr "pkg update && pkg upgrade", but I don't get the updates, just the updates to the dependencies. I am on 0.2.0.980 for radarr. I have
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
on all of them.
 

shamo316

Dabbler
Joined
Jun 21, 2016
Messages
30
*edit3*
More debugging and i have the same exact error message in sonarr as radarr so i am so I'm almost sure mono is the a cause.

*edit2*
I tried to make mono from a tarbar and i get really far then it crashes about some lib files for mono-mini. I tried to install mono 5.2 by itself in a fresh iocage with its dependencies by just doing a pkg install mono and it installs but some of the dependencies crash due to mono not working correctly. I'm kind of stuck now and I'm think there might be something wrong with my iocage on a fresh install of 11.1 U4, just not sure.

*edit*
I found under http://update.ixsystems.com/FreeNAS/Packages/ older packages, i am going to attempt to use one of these to install an older version of mono.


So i seem to be having a problem with Sonarr. I have installed it in iocage every way that you can on the net and i still get the same error which is below. I ran into a thread here that states it may be mono 5.2. I am currently on FN 11.1-U4 and have no way to get mono 4.8 like the thread suggested since this is a fresh install. Has anyone else got an iocage sonnar to work on FN 11.1-U4 that wouldn't mind helping a little?

Code:
root@sonarr:/usr/local/share/sonarr # /usr/local/bin/mono --debug /usr/local/share/sonarr/NzbDrone.exe --data=/config --nobrowser
mono_w32file_find_first: error creating find handle
Stacktrace:

  at <unknown> <0xffffffff>
  at System.IO.FileSystemEnumerableIterator`1<TSource_REF>.CommonInit () [0x00054] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:296
  at System.IO.FileSystemEnumerableIterator`1<TSource_REF>..ctor (string,string,string,System.IO.SearchOption,System.IO.SearchResultHandler`1<TSource_REF>,bool) [0x000d6] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:264
  at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (string,string,string,bool,bool,System.IO.SearchOption,bool) [0x00009] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:48
  at System.IO.Directory.InternalGetFileDirectoryNames (string,string,string,bool,bool,System.IO.SearchOption,bool) [0x00000] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:836
  at System.IO.Directory.InternalGetFiles (string,string,System.IO.SearchOption) [0x00000] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:653
  at System.IO.Directory.GetFiles (string,string) [0x0001c] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/class/referencesource/mscorlib/system/io/directory.cs:622
  at NLog.Config.ConfigurationItemFactory.GetNLogExtensionFiles (string) [0x00040] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Config.ConfigurationItemFactory.BuildDefaultFactory () [0x0002e] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Config.ConfigurationItemFactory.get_Default () [0x00009] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Layouts.Layout.FromString (string) [0x00001] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Layouts.Layout.op_Implicit (string) [0x00001] in <a273cb27438940d6830e58cd57866c35>:0
  at NLog.Targets.TargetWithLayout..ctor () [0x0000c] in <a273cb27438940d6830e58cd57866c35>:0
  at NzbDrone.Common.Instrumentation.Sentry.SentryTarget..ctor (string) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\Sentry\SentryTarget.cs:35
  at NzbDrone.Common.Instrumentation.NzbDroneLogger.RegisterSentry (bool) [0x0002d] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:106
  at NzbDrone.Common.Instrumentation.NzbDroneLogger.Register (NzbDrone.Common.EnvironmentInfo.IStartupContext,bool,bool) [0x00030] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:43
  at NzbDrone.Console.ConsoleApp.Main (string[]) [0x00007] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:30
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x00051] in <873a90b5808e407e87a91aca465910c0>:0

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Abort



I've posted mono-4.8.1.0_2.txz in dropbox for people to download
Copy it over to your radarr and sonarr main jail folder. Then follow the steps

1: pkg remove mono (5.2.0.215)
2: pkg install mono-4.8.1.0_2.txz
3: pkg lock mono (stops it from updating, so future pkg update and upgrades will skip newer mono versions)
4: reset jail.
 

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
There is nothing wrong I can see with either Radarr or Sonarr running on mono 5.2.0.215. I've run a test jail for each and had no issues with installation or them starting up. I can access the webui once radarr/sonarr are running. If it were me I would not recommend downloading an unknown version someone uploaded and then use that copy. As pointed out earlier in the thread locking packages can lead to dependencies issues later on and is not a good idea long term.

Install of radarr with 5.2.0.215 mono: https://pastebin.com/raw/Xtx8Uda3 pastebin due to character limit
 

dir_d

Explorer
Joined
Nov 9, 2013
Messages
55
*edit*
Nuked everything did a complete reinstall of FN and i still get the same error. I'm completely lost

Thanks for your help all, I think my iocage is broken some how. I need to reinstall it if it is all possible. I have fresh jails and mono crashes no matter which version. Think its time to nuke and start from scratch.
 
Last edited:

dir_d

Explorer
Joined
Nov 9, 2013
Messages
55
I scraped Sonarr and Radarr as a jail and installed Rancher OS and used Rancher UI to use the docker images for both. I think it is better, no more dealing with packages.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
How do you update by any means? Pkg update hasn't worked for me. Do you have to redo the jail but save the configs?
You can do a manual update. I'll have to look for instructions. Something is up with the authentication I think. I see errors in my log but haven't had a chance to troubleshoot.
 

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
Anyone figure out how to get Radarr to update through the web UI, is it related to mono?
You can do a manual update. I'll have to look for instructions. Something is up with the authentication I think. I see errors in my log but haven't had a chance to troubleshoot.
How do you update by any means? Pkg update hasn't worked for me. Do you have to redo the jail but save the configs?

As someone else here pointed out already, github no longer allows clients using older TLS versions to connect. Mono on freebsd doesn't currently have support for tls1.2.
Assuming you are actually storing your config data from radarr in /config inside the radarr jail, you can update manually by grabbing the latest release url from GitHub, and then in your jail stop radarr, remove the old files and extract the new ones in the same spot and just start radarr again.

As of this post latest release url was https://github.com/Radarr/Radarr/re...0.1067/Radarr.develop.0.2.0.1067.linux.tar.gz

iocage console radarr
service radarr stop
mv /usr/local/share/Radarr /usr/local/share/Radarr.old
fetch <put latest release url here> -o /usr/local/share
tar -xzvf /usr/local/share/Radarr.*.linux.tar.gz -C /usr/local/share
rm /usr/local/share/Radarr.*.linux.tar.gz
chown -R radarr:radarr /usr/local/share/Radarr
service radarr start

If everything looks okay remove the old files
rm -fr /usr/local/share/Radarr.old

I scraped Sonarr and Radarr as a jail and installed Rancher OS and used Rancher UI to use the docker images for both. I think it is better, no more dealing with packages.
To each their own some prefer the lighter footprint of a freebsd jail.
 

thxtex

Dabbler
Joined
Dec 8, 2017
Messages
27
Hallo everyone

I am quite new to FN world.
I have installed NzbGet in a jail and have the web gui running. When adding a .nzb file the application crashes. In the console it exits with the following message....

Undefined symbol "fdatasync"

From what I have been able to find it has something to do with that jails are only running FreeBSD 11.0. Does anyone have a solution for this?
 

bollar

Patron
Joined
Oct 28, 2012
Messages
411
Let me add my thanks for this guide, @Pentaflake . I was going to wait for 11.2 and let it migrate everything, but I had a day free and was able to get everything moved. A couple of things:

- I was most of the way through when I realized that a lot of permissions problems could be resolved by setting the group for related jails the same (for me, that might as well be 972 for Plex-related apps). Is there a straightforward way to fix this after the fact?

- I wasn't able to get IOCAGE FSTAB to accept a path that includes spaces, (as reported: #366). After a fair amount of messing around, I gave up and wound up changing the path to something simple.
 
Top