Resource icon

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

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
After some additional research, ftdatasync is a system call only available on 11.1 and after. Both the jail version and the FN version do not include this system call. Installing sqlite3 from pkg causes this problem. Hopefully it gets fixed soon.

I was about to post that it looks like its because the recent version of sqlite3 on pkg was built on 11.1 when that call was added.
 

splitslim

Cadet
Joined
Dec 18, 2013
Messages
4
A quick fix (confirmed) is not to do a pkg update && pkg upgrade before installing the dependencies.
 

wywywywy

Dabbler
Joined
Jun 1, 2014
Messages
32
The latest version of Jackett seems to be different.

It wouldn't auto update to it, so a manual installation (downloading the tar overwriting the directory) is needed. Also the config directory needs to be set to "/config/Jackett" rather than "/config" to get the old data back.
 

sznichol

Cadet
Joined
Dec 10, 2017
Messages
3
Hi. I have followed the instructions and got Plex and Sabnzbd running successfully. I cannot get Sonarr or Radarr to work though. I have deleted the jails and followed the instructions a couple of times to make sure I did not make a mistake.

I get a connection refused error (ERR_CONNECTION_REFUSED) when trying to access the apps through Chrome. I assume this indicates they are running and also Sonarr does seem to start as it creates the nzbdrone.db, config.xml, nzbdrone.pid and also the logs in the /config directory. There are no error message in the logs, just

17-12-11 16:10:30.1|Info|Bootstrap|Starting Sonarr - /usr/local/share/NzbDrone/NzbDrone.exe - Version 2.0.0.5085
17-12-11 16:10:30.3|Info|AppFolderInfo|Data directory is being overridden to [/config]
17-12-11 16:10:30.4|Info|Router|Application mode: Interactive
17-12-11 16:10:30.5|Info|MigrationLogger|*** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***

If I do service sonarr status, I always get sonarr is not running.
If I do service sonarr stop, sonarr not running? (check /config/nzbdrone.pid)

Any help appreciated.
 

wywywywy

Dabbler
Joined
Jun 1, 2014
Messages
32
If you start it manually with the debug flag it gives you more information.

/usr/local/bin/mono --debug /usr/local/share/NzbDrone/NzbDrone.exe --data=/config --nobrowser
 

sznichol

Cadet
Joined
Dec 10, 2017
Messages
3
If you start it manually with the debug flag it gives you more information.

/usr/local/bin/mono --debug /usr/local/share/NzbDrone/NzbDrone.exe --data=/config --nobrowser
Nothing seems to happen, the shell just sits there with nothing being output to the console. Same output goes to logs as previously.
root@sonarr:/ # /usr/local/bin/mono --debug /usr/local/share/NzbDrone/NzbDrone.e
xe --data=/config --nobrowser
 

sznichol

Cadet
Joined
Dec 10, 2017
Messages
3
You can also enable debug logging in the config.xml
No errors are produced. It seems to be getting stuck on the Migrating data step. The sonarr.debug.txt log contains:
17-12-11 20:36:19.9|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
17-12-11 20:36:19.9|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone
17-12-11 20:36:19.9|Info|Router|Application mode: Interactive
17-12-11 20:36:19.9|Debug|Router|Tray selected
17-12-11 20:36:20.0|Info|MigrationLogger|*** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
 

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
The latest version of Jackett seems to be different.

It wouldn't auto update to it, so a manual installation (downloading the tar overwriting the directory) is needed. Also the config directory needs to be set to "/config/Jackett" rather than "/config" to get the old data back.
I tested reinstalling jackett with the same steps in the guide in a test jail with a clone of the jackett config dataset and while using /config as the data dir and all the previous data loaded fine. I'm guessing you made a mistake with your initial setup at some point.

Also in the test jail I used to test with I installed the older version of jackett linked in the guide and it automatically updated to the latest and reloaded fine. You may have a permissions issue somewhere or missed a step in the guide.

No errors are produced. It seems to be getting stuck on the Migrating data step. The sonarr.debug.txt log contains:
17-12-11 20:36:19.9|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
17-12-11 20:36:19.9|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone
17-12-11 20:36:19.9|Info|Router|Application mode: Interactive
17-12-11 20:36:19.9|Debug|Router|Tray selected
17-12-11 20:36:20.0|Info|MigrationLogger|*** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***

There is an issue currently with latest version of sqlite3 with FreeBSD 11 used in the current jail templates. (see the few messages before your first message)

If you run it manually you will see the error below
Code:
root@test-sonarr:/ # mono /usr/local/share/sonarr/NzbDrone.exe --data=/config --nobrowser
[Info] Bootstrap: Starting Sonarr - /usr/local/share/sonarr/NzbDrone.exe - Version 2.0.0.5054
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] Router: Application mode: Interactive
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
/usr/local/lib/libsqlite3.so: Undefined symbol "fdatasync"
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Clear your browser cache.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I followed the steps in the OP and tried numerous times but Radarr will not start. I have restarted the jail as well. I do service radarr start and get no errors but the service isn't starting. I'm running FreeNAS-11.1-RELEASE.
 

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
I upgraded to the latest version of Plex (plexmediaserver-plexpass) using pkg update && pkg upgrade. I shutdown Plex before the upgrade and it seemed to work fine because now it says I'm up to date but in Plex it's still telling me version 1.10.1.4602 is available but that is the version in the repository (https://www.freshports.org/multimedia/plexmediaserver-plexpass/).

Any idea what's going on?
This was covered earlier in the thread. The pkg version of plexmediaserver(-plexpass) lags behind by a few days after updates becoming available.

I followed the steps in the OP and tried numerous times but Radarr will not start. I have restarted the jail as well. I do service radarr start and get no errors but the service isn't starting. I'm running FreeNAS-11.1-RELEASE.
While you may be running the newer version the template used for the jails is still 11.0 currently (http://download.freenas.org/jails/11/x64/). The issue that exists with sqlite3 still exists if on the latest version.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
This was covered earlier in the thread. The pkg version of plexmediaserver(-plexpass) lags behind by a few days after updates becoming available.


While you may be running the newer version the template used for the jails is still 11.0 currently (http://download.freenas.org/jails/11/x64/). The issue that exists with sqlite3 still exists if on the latest version.
Yeah I had to downgrade sqlite3 before Radarr would start.
 

0x6a6576

Cadet
Joined
Dec 17, 2017
Messages
3
Regarding the fdatasync issue with Radarr and Sonarr, before doing a
Code:
pkg update && pkg upgrade
Lock the sqlite3 pkg so that it stays on the default version 3.18 which supports the needed module call.
To lock the sqlite3 pkg, do
Code:
pkg lock sqlite3
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I just installed Organizr and I'm getting the following errors on the webpage.

Code:
Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/user.php on line 934

Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/user.php on line 940

Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/index.php on line 75
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I just installed Organizr and I'm getting the following errors on the webpage.

Code:
Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/user.php on line 934

Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/user.php on line 940

Warning: Invalid argument supplied for foreach() in /usr/local/www/Organizr/index.php on line 75
I've been talking with the creator of Organizr and he sees the same issue on a fresh install in a 11.1 jail. I'll give any info when I hear more.
 
  • Like
Reactions: jg3

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
An update will be coming in the next few day or so to update most of the instructions for these to iocage. Most of them are working except the transmission which seems to be an issue with being able to create tun devices from inside the iocage jails.

@Wolfeman0101 not sure why are seeing that, the jail I have currently running 11.1-RELEASE under iocage is working fine.
 
Top