quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.38k stars 2.56k forks source link

Failed container 'unable to mount a file' error when running Quarkus local build Vale linter (DVale) on RHEL #29106

Closed michelle-purcell closed 11 months ago

michelle-purcell commented 1 year ago

Describe the bug

Problem:

Container error occurs on RHEL OS when running any of the following Vale commands locally in the Quarkus git repo:

./mvnw -f docs test -Dvale -DvaleLevel=suggestion 
./mvnw -f docs test -Dvale=git -DvaleLevel=warning
./mvnw -f docs test -Dvale='doc-.*' -DvaleLevel=error 

2022-11-07 18:45:57,445 ERROR [🐳 .io/.15.5]] (main) Log output from the failed container:

2022-11-07 18:45:56,654 WARN  [🐳 .io/.15.5]] (main) Unable to mount a file from test host into a running container. This may be a misconfiguration or limitation of your Docker environment. Some features might not work.
2022-11-07 18:45:56,681 INFO  [🐳 .io/.15.5]] (main) Container docker.io/jdkato/vale:v2.15.5 is starting: d6305b094543c47cc91cb18994a10f93da493e6db208abf3f308a0520a5c8df4
2022-11-07 18:45:57,351 ERROR [🐳 .io/.15.5]] (main) Could not start container: java.lang.IllegalStateException: Container did not start correctly.

....

{
  "Code": "E100",
  "Text": "E100 [--config] Runtime error\n\npath '/vale/vale.ini' does not exist\n\nExecution stopped with code 1."
}

image

image

Expected behavior

The Vale linter runs and checks Quarkus doc (asciidoc) content for Quarkus style rules as configured in the .vale.ini

Actual behavior

2022-11-07 18:45:57,445 ERROR [🐳 .io/.15.5]] (main) Log output from the failed container:

2022-11-07 18:45:56,654 WARN  [🐳 .io/.15.5]] (main) Unable to mount a file from test host into a running container. This may be a misconfiguration or limitation of your Docker environment. Some features might not work.
2022-11-07 18:45:56,681 INFO  [🐳 .io/.15.5]] (main) Container docker.io/jdkato/vale:v2.15.5 is starting: d6305b094543c47cc91cb18994a10f93da493e6db208abf3f308a0520a5c8df4
2022-11-07 18:45:57,351 ERROR [🐳 .io/.15.5]] (main) Could not start container: java.lang.IllegalStateException: Container did not start correctly.

....

{
  "Code": "E100",
  "Text": "E100 [--config] Runtime error\n\npath '/vale/vale.ini' does not exist\n\nExecution stopped with code 1."
}

image

image

How to Reproduce?

No response

Output of uname -a or ver

Linux mpurcell.remote.csb 4.18.0-409.el8.x86_64 #1 SMP Tue Jul 12 00:42:37 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "11.0.16" 2022-07-19 LTS OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.el8_6) (build 11.0.16+8-LTS) OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.el8_6) (build 11.0.16+8-LTS, mixed mode, sharing)

GraalVM version (if different from Java)

N/A

Quarkus version or git rev

main

Build tool (ie. output of mvnw --version or gradlew --version)

Maven home: /usr/share/maven Java version: 17.0.4, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.4.0.8-2.el8_6.x86_64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.18.0-409.el8.x86_64", arch: "amd64", family: "unix"

Additional information

No response

michelle-purcell commented 1 year ago

@ebullient - As discussed ↑

michelle-purcell commented 11 months ago

Fixed in #30378 and some other vale PRs to update vale config and version used by the Quarkus vale GitHub action.