Hi. I've just rebuilt my QNAP for reasons I'm struggling to remember and I'm getting there, but I can't get Filebot to work. It was working well before I did this! The packages all appear to install fine from the repository but when I run Filebot node or run Filebot fro the command line I get this error:
$ filebot -version
Error: dl failure on line 541
Error: failed /share/CACHEDEV1_DATA/.qpkg/java-installer/lib/server/libjvm.so, because /lib/libc.so.6: version `GLIBC_2.18' not found (required by /share/CACHEDEV1_DATA/.qpkg/java-installer/lib/server/libjvm.so)
So I went looking for libc upgrade package but the Entware ipk won't install saying the current software is up to date and I can't find another package.
Any advice gratefully received!
David
Re: Filebot - Java installer - libc 2.18
Posted: 10 Sep 2024, 09:48
by rednoah
How old is your QNAP?
The java-installer package provided by use will install the latest JDK 21 so there could be compatibility issues if your NAS device is very old:
`GLIBC_2.18' not found (required by /share/CACHEDEV1_DATA/.qpkg/java-installer/lib/server/libjvm.so
If your NAS device is very old, then you could look into manually installing an older version of the JDK, perhaps JDK 17 or JDK 11. We still have JDK 8 builds (but not QNAP packages) as a very last resort.
Re: Filebot - Java installer - libc 2.18
Posted: 11 Sep 2024, 01:05
by davep89
Thank you. I'll look into that. The NAS was first released in 2016. Is that very old these days? And as I said everything was fine before my upgrading of the hard drives.
I will have a crack at what you suggest!
David
Re: Filebot - Java installer - libc 2.18
Posted: 11 Sep 2024, 03:35
by rednoah
davep89 wrote: ↑11 Sep 2024, 01:05
The NAS was first released in 2016
2016 is not very old. GLIBC_2.18 is from 2013-08-12 so any software update after that could ship that version or higher. I run tests on a Synology NAS from 2013 with somewhat recent updates and JDK 21 works fine there. But it really depends on the software. QNAP is know for not great software...
Does your QNAP run the latest available updates? What libc version is shipped with your current NAS software?
-rwxr-xr-x 1 admin administ 894308 Mar 23 2015 libc-2.17.so*
Which NAS model do you have? Looks like QNAP hasn't bothered to update core system libraries since 2015.
davep89 wrote: ↑12 Sep 2024, 02:50
The odd thing is that just a few days ago, all was well.
The java-installer package provided by us updates to the latest JDK on startup. You may have been updated to the latest JDK 21 recently. Presumably from a working JDK 17, or earlier if you never reboot your NAS and it never reboots automatically because it never receives updates.
Re: Filebot - Java installer - libc 2.18
Posted: 12 Sep 2024, 14:29
by davep89
Its a TS431P and it certainly does look like they're not focused on upgrading their systems. In my wanderings I've read something suggesting the same software versions will be in all their systems so the model might be irrelevant. I've got a query in with QNAP on that.
I normally update as soon as one comes around but don't necessarily reboot. Is it usually possible to go to an earlier version of the JDK? Not Filebot specific I understand but thought you might have some wisdom to impart?
Thanks for your assistance!
Re: Filebot - Java installer - libc 2.18
Posted: 12 Sep 2024, 14:54
by rednoah
davep89 wrote: ↑12 Sep 2024, 14:29
I normally update as soon as one comes around but don't necessarily reboot. Is it usually possible to go to an earlier version of the JDK? Not Filebot specific I understand but thought you might have some wisdom to impart?
Yes, you can manually install a different JDK. The filebot command will work if java is in the $PATH. You will require basic Linux skills though, SSH, downloading files, extracting archives, creating symlinks.
You can use uname -a to see the CPU architecture of your NAS.
Re: Filebot - Java installer - libc 2.18
Posted: 13 Sep 2024, 03:34
by davep89
Thanks again. I'll have a look at that. Response from QNAP is that GLIBC on my NAS is 2.17 in the latest version so I might not be the last person to have this problem!
Re: Filebot - Java installer - libc 2.18
Posted: 14 Sep 2024, 09:27
by davep89
Hi Rednoah. Another question/clarification. What I need to do is install an earlier JDK then set Filebot to use that rather than the one java-installer installs? Just trying to get my head around what I'm trying to achieve. I'm confused because its java-installer that's failing and if Java is already installed it doesn't need to run at all (no?).
Re: Filebot - Java installer - libc 2.18
Posted: 14 Sep 2024, 11:36
by rednoah
davep89 wrote: ↑14 Sep 2024, 09:27
What I need to do is install an earlier JDK then set Filebot to use that rather than the one java-installer installs?
Yes.
You cannot use the java-installer package because java-installer is installed the latest Java 21 which is not compatible with your NAS. You can instead not use java-installer and install a compatible Java yourself manually. QNAP may even provide a Java 17 package or Java 11 package in their package repository.
Re: Filebot - Java installer - libc 2.18
Posted: 16 Sep 2024, 02:38
by davep89
Thanks again. At the risk of being annoying, where is Java-installer called? I figured the easiest way to fix this is to take out that call and set the path to a compatible version? Its the installer failing, not Filebot itself.
Re: Filebot - Java installer - libc 2.18
Posted: 16 Sep 2024, 06:04
by rednoah
davep89 wrote: ↑16 Sep 2024, 02:38
where is Java-installer called?
which java will tell you where the java binary is located on your system:
davep89 wrote: ↑16 Sep 2024, 02:38
I figured the easiest way to fix this is to take out that call and set the path to a compatible version?
You are welcome to inspect the code. You will find all the interesting bits in the /share/CACHEDEV1_DATA/.qpkg/java-installer/*.sh files. The problem is installing a compatible version to which you can set the path, which takes us back to manually installing java which is - in my opinion - the easy solution, download, extract, export PATH, done. If your easy way takes more than 10 minutes that my easy way is easier.
davep89 wrote: ↑16 Sep 2024, 02:38
Its the installer failing, not Filebot itself.
The installer has successfully downloaded and installed the latest java binaries. The java binary fails when executed on your system.