Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java not found ( 1.8 ) #215

Closed
aowss opened this issue Jul 23, 2021 · 6 comments
Closed

Java not found ( 1.8 ) #215

aowss opened this issue Jul 23, 2021 · 6 comments

Comments

@aowss
Copy link

aowss commented Jul 23, 2021

Hi,

i get the following error Failed to load AsciiDoc document - Could not find Java executable (RuntimeError) when running the following command asciidoctor -r asciidoctor-diagram *.adoc with the 1.8 image.

This doesn't happen with 1.7.

Thanks for your help

@dduportal
Copy link
Contributor

dduportal commented Jul 26, 2021

Hello @aowss , thansk for reporting!

Since the test harness does not have this error, and I can't reproduce it:

➜ docker run --rm --entrypoint=which asciidoctor/docker-asciidoctor:1.8.1 java
/usr/bin/java
➜ docker run --rm --entrypoint=java asciidoctor/docker-asciidoctor:1.8.1 -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (IcedTea 3.18.0) (Alpine 8.282.08-r1)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)

It means that there a case in your setup that triggers this error: could you share the command and files used ?

@aowss
Copy link
Author

aowss commented Jul 26, 2021

I don't think this is part of my setup since the error occurs on our pipeline and the only thing i had to do to fix it, was to change image: asciidoctor/docker-asciidoctor to image: asciidoctor/docker-asciidoctor:1.7.0

@dduportal
Copy link
Contributor

Hello @aowss , I'm not saying that you did something wrong: I'm asking you to provide a reproduction case so we can diagnose and understand what has to be done, if it is a bug in the image, in asciidoctor, or something else.

  • As you can see in Cannot build PDFs: notoserif-regular-subset.ttf not found in GEM_FONTS_DIR (v1.8.0 and later) #214, the version of Docker can be a cause of troubles: what version are you using?
  • Can you run the commands docker run --rm --entrypoint=java asciidoctor/docker-asciidoctor:1.8.1 -version and docker run --rm --entrypoint=java asciidoctor/docker-asciidoctor -version and share the output with us?
  • Can you share an adoc file that triggers the error for you (even a simplified one) please?

@mojavelinux
Copy link
Member

This feels eerily similar to #214. Is it really the case that Docker is broken that badly that it can't find files?

@dduportal
Copy link
Contributor

Hello @aowss , without any feedback or example to reproduce your issue, I'm closing the issue assuming that the latest release 1.9.0 that fixes the issue #214 will also fix your issues.

Please feel free to reopen with a reproduction example (or at least give us some details on your environment so we can investigate) if you still have the same issue with the tag 1.9.0

@aowss
Copy link
Author

aowss commented Aug 2, 2021

I did some tests, and i wanted to confirm that with version 1.7.0 and 1.9.0, it works but with 1.8.0 it doesn't.
So the bug introduced in 1.8.0 has been fixed imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants