Resource icon

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

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
If I understand your information, you have '/mnt/JailHD/apps/transmission' mounted to /config in transmission jail. which would put your file at '/config/config/ipfw_rules' inside the jail.
try moving ipfw_rules down one folder.
I think that will put the file in the correct place for the chmod command to succeed.

You were completely correct! that's now working absolutely fine. Thanks!

now I've just got to figure out why openvpn is failing to start... woop!
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
for iocage exec transmission sysrc "openvpn_configfile=/config/openvpn.conf"

does openvpn.conf need to be in the same place as where i moved ipfw_rules to?
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
Honestly, im coming accross a whole host of issues with transmission and openvpn... I don't know where to go from here so i guess i'll try again tomorrow...
i've installed it 5 times following the guide. openvpn NEVER runs.
transmission started working, but once i edit settings.json to allow my ip, transmission was no longer able to read it....

Couldn't read "/config/transmission-home/settings.json": permission denied.

It was denied before i edited it. I'm lost.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
for iocage exec transmission sysrc "openvpn_configfile=/config/openvpn.conf"

does openvpn.conf need to be in the same place as where i moved ipfw_rules to?
they should to be in the same place.

openvpn is failing to start... woop!
make sure the jail has a tun interface with ifconfig
then make sure that the openvpn file has tun0 in the file, if that is what showed up in the ifconfig command.
check that ipfw.rules has the correct tun number as well.
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
my openvpn.conf is

client
dev tun0
proto udp

remote 95.xxx.xxx.239 80
remote " " 443
remote " " 4569
remote " " 1194
remote " " 5060

remote-random
resolve-retry infinite
nobind
cipher AES-256-CBC
auth SHA512
comp-lzo no
verb 3

tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun

reneg-sec 0

remote-cert-tls server
auth-user-pass /mnt/JAILHD/............................./
auth-nocache
pull
fast-io

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolve-conf


and my ipfw_rules is

# Allow internal traffic
add 03000 allow IP from 192.xxx.x.x/32 to 192.xxx.x.x/32 keep-state
add 03000 allow IP from 192.xxx.x.x/32 to 192.xxx.x.x/32 keep-state

# Allow access to Entrance IP for VPN
add 04000 allow IP from 192.xxx.x.x/32 to 95.xxx.x.x/32 keep-state

# Allow any traffic over the vpn interface
add 05000 allow IP from any to any via tun0

# Deny any other trafic
add 65534 deny IP from any to any.


does this all look correct? as it's still not starting.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
What is the ifconfig
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
root@transmission:~ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 14:b3:1f:03:aa:47
hwaddr 02:1d:d0:00:07:0b
inet 192.xxx.x.x netmask 0xffffff00 broadcast 192.xxx.x.xxx
nd6 options=1<PERFORMNUD>
Media: Ethernet 10Gbase-T (10Gbase-T <full-duplex)
status: active
groups: epair
tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
nd6 options=1<PERFORMNUD>
groups:tub
 

rknaub

Explorer
Joined
Jan 31, 2017
Messages
75
I am having an issue with Lidarr. Yesterday I tried to update mono and it broke my jail, so I deleted the entire jail, followed this guide and reinstalled the latest version of Lidarr on an 11.3-Release jail, and everything seemed to be working fine, except when I choose my root folder. It allows me to select the correct folder, showing all my artist folders inside - but it shows unavailable after I select it and I cannot for the life of me figure out why.

I am seeing this in the log:
20-3-22 17:49:34.9|Warn|LidarrErrorPipeline|Invalid request Validation failed:
-- Folder is not writable by user lidarr

I have tried to chmod -R 777 the music folder but that's not working.

I have not yet tried to update Mono on this install as I am struggling with that still.

FreeNAS 11.3-U1
Lidarr 0.7.1.1381
 
Last edited:

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
root@transmission:~ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 14:b3:1f:03:aa:47
hwaddr 02:1d:d0:00:07:0b
inet 192.xxx.x.x netmask 0xffffff00 broadcast 192.xxx.x.xxx
nd6 options=1<PERFORMNUD>
Media: Ethernet 10Gbase-T (10Gbase-T <full-duplex)
status: active
groups: epair
tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
nd6 options=1<PERFORMNUD>
groups:tub
Your have tun0 interface so that is not the problem.
Must be a problem with your openvpn.conf file
Not familar with
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolve-conf
but make sure the are files in that location and they are setup properly
finally make sure your auth-user-pass /mnt/JAILHD/............................./ file exists and contains the correct username and password
look in /var/log/messages file . That would give you clues as to what the issue is.
 
Last edited:

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
Your have tun0 interface so that is not the problem.
Must be a problem with your openvpn.conf file
Not familar with
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolve-conf
but make sure the are files in that location and they are setup properly
finally make sure your auth-user-pass /mnt/JAILHD/............................./ file exists and contains the correct username and password
look in /var/log/messages file . That would give you clues as to what the issue is.

I cannot find anything in the message file, i've created the update-resolv-conf. i have made sure there is a file for auth-user-pass and that the user and pass is correct. think im stuck.
 

rknaub

Explorer
Joined
Jan 31, 2017
Messages
75
I am having an issue with Lidarr. Yesterday I tried to update mono and it broke my jail, so I deleted the entire jail, followed this guide and reinstalled the latest version of Lidarr on an 11.3-Release jail, and everything seemed to be working fine, except when I choose my root folder. It allows me to select the correct folder, showing all my artist folders inside - but it shows unavailable after I select it and I cannot for the life of me figure out why.

I am seeing this in the log:
20-3-22 17:49:34.9|Warn|LidarrErrorPipeline|Invalid request Validation failed:
-- Folder is not writable by user lidarr

I have tried to chmod -R 777 the music folder but that's not working.

I have not yet tried to update Mono on this install as I am struggling with that still.

FreeNAS 11.3-U1
Lidarr 0.7.1.1381

I have fixed this problem, by installing an older version of Lidarr. And then broke it again by simply updating through the Web UI.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I cannot find anything in the message file, i've created the update-resolv-conf. i have made sure there is a file for auth-user-pass and that the user and pass is correct. think im stuck.
If you want you can try the script I wrote to do the install. It changes the transmission user from transmission to media to match the user of my other apps. Or you could look at it for clues as to what your doing incorrectly.
 

FakeTracker0

Cadet
Joined
Mar 24, 2020
Messages
1
Whenever I attempt to update Radarr I get the error:

Code:
    Error occurred while executing task ApplicationUpdate: ApplicationName='mono', CommandLine='--debug /tmp/radarr_update/Radarr.Update.exe 79445 /tmp/radarr_update /usr/local/share/radarr/Radarr.exe /data=/usr/local/radarr /nobrowser', CurrentDirectory='', Native error= Cannot find the specified file

    System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mono', CommandLine='--debug /tmp/radarr_update/Radarr.Update.exe 79445 /tmp/radarr_update /usr/local/share/radarr/Radarr.exe /data=/usr/local/radarr /nobrowser', CurrentDirectory='', Native error= Cannot find the specified file

      at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0

      at System.Diagnostics.Process.Start () [0x0003a] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0

      at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()

      at NzbDrone.Common.Processes.ProcessProvider.Start (System.String path, System.String args, System.Collections.Specialized.StringDictionary environmentVariables, System.Action`1[T] onOutputDataReceived, System.Action`1[T] onErrorDataReceived) [0x00194] in <7084924a59f8492b9528f8e6bea68198>:0

      at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00245] in <28071e62f2f449e682962e05af20a3d7>:0

      at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00071] in <28071e62f2f449e682962e05af20a3d7>:0

      at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x000ec] in <28071e62f2f449e682962e05af20a3d7>:0

      at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandExecutor,object,NzbDrone.Core.Messaging.Commands.CommandModel)

      at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2) [0x00110] in <07a075f1d23046ea85ee23d71b0a0a37>:0

      at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands () [0x0008c] in <28071e62f2f449e682962e05af20a3d7>:0 


Looking on the forums, it seems the best way to resolve this is to add a link in radarr for mono.

I've tried in the jail

Code:
ln -s /usr/local/bin/mono /bin


and outside the jail:


Code:
 iocage exec radarr ln -s /usr/local/bin/mono /usr/bin/mono


In both cases I'm running as the root user.

Any suggestions on how to fix this? I checked and I have my radarr data set as not read-only.

Details: FreeNAS 11.2-U7, I did install radarr through the plugin system initially. radarr Version: 0.2.0.1358; Mono Version: 5.10.1.57 (5.10.1.57 Tue Dec 10 07:40:49 UTC 2019)
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
So as an update, I fixed OpenVPN. My biggest problem now is for some reason transmission is being denied access to settings.json and i can't for the life of me figure out why.
 

DarkeBlayze

Cadet
Joined
Mar 21, 2020
Messages
9
when i made the directory it somehow become /config/config/transmission home. no wonder. I will hold off commenting again unless i get really stuck. Thanks for all your help @NasKar and @1ccs-todd
 

stalker

Cadet
Joined
Dec 13, 2017
Messages
2
I'm having trouble getting Plex to work. All the other plugins & jails work just fine, but for some reason Plex appears to break.
I can get the jail to start and get to the Plex WebGUI, but this only lasts for a few minutes at the most. The jail keeps chugging along but the webgui just dies on me.
Anyone else in a similar position?
 

stalker

Cadet
Joined
Dec 13, 2017
Messages
2
A little more digging around and this appears to be happening only when I assign a static IP to the jail. DHCP makes the issue go away :-|
 

RobTheRed

Dabbler
Joined
Feb 8, 2016
Messages
25
I've been fighting with the Lidarr install for a while. I've tried using Nano and EE to create the rc.d file for Lidarr, but when I run the last line (iocage exec Lidarr service lidarr start) I keep getting
Code:
Starting lidarr.
su: /bin/csh: Permission denied
/usr/local/etc/rc.d/lidarr: WARNING: failed to start lidarr
Command: service lidarr start failed!

I've tried to even delete the jail and recreate but it seems to still fail. Any suggestions? (I know it's a capital Lidarr... I capitalized the Jail to match my other jails)

I'm not sure what I did differently... Jackett is working for me. I've even copied Jackett's style of rc.d file and it's still not working.
 
Last edited:

afmiller

Contributor
Joined
Dec 11, 2013
Messages
106
thought on "pkg.freebsd.org could not be reached via DNS, check your network:". trying to install a iocage. I can ping both google.com and 8.8.8.8, in the freenas box and whenever I create a jail via GUI.

Keeps failing everytime I try to install plex

Also verified in the resolv file that the google DNS are showing
 
Last edited:

afmiller

Contributor
Joined
Dec 11, 2013
Messages
106
thought on "pkg.freebsd.org could not be reached via DNS, check your network:". trying to install a iocage. I can ping both google.com and 8.8.8.8, in the freenas box and whenever I create a jail via GUI.

Keeps failing everytime I try to install plex

Also verified in the resolv file that the google DNS are showing

Attached are files of Network global, me showing ping works inside the jail itself and my resolve config file with no luck

Default gateway is 192.168.30.1 , freenas box is 192.168.30.119
 

Attachments

  • Network global config.PNG
    Network global config.PNG
    16.8 KB · Views: 252
  • ping plex.PNG
    ping plex.PNG
    27.5 KB · Views: 237
  • Plex 1.PNG
    Plex 1.PNG
    25.8 KB · Views: 235
  • plex 2.PNG
    plex 2.PNG
    27.1 KB · Views: 243
  • resolve.PNG
    resolve.PNG
    11.1 KB · Views: 244
Top