Open ghost opened 8 years ago
Hi,
font loading requires awt X11, which is missing from headless
version of JRE. This problem is thus probably due to the fact that you're using openjdk-8-jre-headless
. To fix it, simply install openjdk-8-jre
instead and the problem will go away.
Tell me if this fixes your issue.
If I use sonarqube:6.0-alpine
, this plugin prevents the web process from starting up.
It seems that this issue is on openjdk docker image side. A fix (workaround) has been committed 7 days ago. See https://github.com/docker-library/openjdk/issues/73
I don't really want to start catching NPEs because of an openjdk packaging issue, and calling 'GraphicsEnvironment.isHeadless()' won't help in this case (a NPE is thrown if no fonts are found and 'isHeadless()' does not check for font availability)
It appears this is still an issue in sonarqube:6.2-alpine. After switching to sonarqube:6.2 everything worked without any problem.
Having the same issue using sonarqube:6.3.1-alpine...
I removed qualinsight-sonarqube-badges-3.0.1.jar from my plugins folder and now sonarqube is again available
Again, if you're facing the same issue, the problem is on openjdk packaging side. Please read above comments for more information / details how to fix it.
For those of you that doesn't have the time to read the whole thread in https://github.com/docker-library/openjdk/issues/73: Installing the APK package ttf-dejavu
seems to solve the issue.
In your Dockerfile
it could look like this:
RUN apk add --no-cache --update ttf-dejavu
enviroment to reproduce
docker logs sonarqube-develop
and you will see this
the stack trace is