Page 1 of 1

Install failure on FreeBSD 12.1

PostPosted: Sat Mar 14, 2020 5:52 pm
by walnut23
Set up a fresh install of FreeBSD 12.1. Using ports, installed ffmpeg, openjdk8 & Serviio. Serviio launches and runs, then fails with the following java error:

2020-03-14 10:33:57,255 ERROR [MediaServer] An unexpected error occurred. Ending the application. Message: sun.nio.fs.LinuxWatchService.inotifyInit()I
java.lang.UnsatisfiedLinkError: sun.nio.fs.LinuxWatchService.inotifyInit()I
at sun.nio.fs.LinuxWatchService.inotifyInit(Native Method)
at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:59)
at sun.nio.fs.BsdFileSystem.newWatchService(BsdFileSystem.java:51)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher.instantiateService(FileDeltaWatcher.java:215)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher.<init>(FileDeltaWatcher.java:121)
at org.serviio.library.local.indexing.LibraryDeltaScanner.instantiateWatcher(LibraryDeltaScanner.java:162)
at org.serviio.library.local.indexing.LibraryDeltaScanner.<init>(LibraryDeltaScanner.java:56)
at org.serviio.library.local.indexing.LocalLibraryManager.getInstance(LocalLibraryManager.java:93)
at org.serviio.MediaServer.main(MediaServer.java:173)

openjdk8 has worked for me on FreeBSD 11.x for years. Any idea why standard install is failing like this on 12.1?

Re: Install failure on FreeBSD 12.1

PostPosted: Fri Mar 20, 2020 3:47 pm
by Ryuichi
I also use FreeBSD12.1.(on Jail) And got the same error on Serviio2.0.
It worked if I installed openjdk8 with pkg install instead of ports.
Previously it worked on ports openjdk8, but it stopped working after updating.

Pkg install Ver. is openjdk8-8.232.09.1_1.
Ports make install Ver. is openjdk8-8.242.07.1.

Openjdk8 version or the patch of installation of ports may be affecting.

I hope it will be helpful.

Re: Install failure on FreeBSD 12.1

PostPosted: Mon May 11, 2020 5:09 am
by JJ_Day
I had the same problem on a FreeNAS 11.3 jail (Installed from packages).
Found the following from a search on Reddit that worked for me:

Add pc5dczc_args="-Dsun.nio.fs.watchservice=polling" to your rc.conf.

See https://bugs.freebsd.org/bugzilla/show_ ... ?id=243454

Re: Install failure on FreeBSD 12.1

PostPosted: Fri May 15, 2020 9:34 am
by ali_jabbar
JJ_Day wrote:I had the same problem on a FreeNAS 11.3 jail (Installed from packages).
Found the following from a search on Reddit that worked for me:

Add pc5dczc_args="-Dsun.nio.fs.watchservice=polling" to your rc.conf.

See https://bugs.freebsd.org/bugzilla/show_ ... ?id=243454


how did you install it in FreeNAS 11.3 jail ? jail and serviio configuration ?