silvio / docker-languagetool

Dockerfile for LanguageTool
Other
169 stars 46 forks source link

Crash when checking French #2

Closed fungiboletus closed 7 years ago

fungiboletus commented 7 years ago

Hi,

I'm trying your container (thanks by the way), and while it works with en-GB, it crashes with fr.

This is the error : Native library (tmp/jna8006292366090954406.libhunspell-linux-x86-64.so) not found in resource path ([file:/LanguageTool-3.7/languagetool-server.jar])

Any idea ?

silvio commented 7 years ago

Thanks for your report. I have to look into this.

danielnaber commented 7 years ago

For some languages, LT needs (and usually provides itself) native libraries which it accesses via JNA. See https://github.com/languagetool-org/languagetool/blob/master/languagetool-core/src/main/java/org/languagetool/rules/spelling/hunspell/Hunspell.java#L78 ... I'm not sure why it doesn't work in Docker without debugging. Is there no stacktrace?

silvio commented 7 years ago

I have understood the problem. Thanks @danielnaber to point to the provided libhunspell. The libhunspell is build with a gnu-libc. The dockerimage is using alpine and therefore it is using musl-libc.

Two possibilities:

Depends on #704 what the way to go.

The fastest solution for now is to switch to debian:jessie.

silvio commented 7 years ago

The problem is fixed @yellowiscool. A docker pull silviof/docker-languagetool should give you a working image.

fungiboletus commented 7 years ago

Yes I confirm it works great. Thanks for the quick answers and the quick fix.