-
Notifications
You must be signed in to change notification settings - Fork 185
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
[BUG] Error popup each time a Dockerfile is shown in Visual Studio Code #733
Comments
Same problem here.
As a side note: I only have docker installed (neither skopeo nor podman). Is it possible to disable Dockerfiles analysis to avoid having this kind of errors (that, to me, appear without a Dockerfile opened)? |
Taking a deep review of the docs looks like my problem might be relate to this:
In my case the Java version being used to build the project is Java 11. So:
As a side note, I tried using a Maven command (mvn) wrapper like: #!/bin/sh
# Hack needed by redhat.fabric8-analytics extension that runs maven commands using default JDK
JAVA_HOME=/usr/lib/jvm/21.0 mvn "$@" and setting 'redHatDependencyAnalytics.mvn.executable.path' to that but looks like, for Dockerfile analysis, Maven is not used but Java command directly (and I can't find a way to specify the path). |
Looking at the code, looks like a simple "hard-coded" command call is issued without the ability to specify the full path or something... |
Patching the server.js file to hardcode the full Java path ( Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:17:27 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:17:30 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:22:06 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:22:07 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more So I definetly need a way to simply disable Dockefile validations. |
permiteme empiezo a leer y analizar tu mensaje para poder entenderte
El mié, 4 sept 2024 a la(s) 12:25 p.m., Ruben Suarez Alvarez (
***@***.***) escribió:
… Patching the *server.js* file to hardcode the full *Java* path (
/usr/lib/jvm/21.0/bin/java instead of simply java) I keep getting error
messages (as I have no *skopeo* installed).
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:17:27 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:17:30 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:22:06 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
[Warn - 8:22:07 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:491)
at java.base/java.lang.Runtime.exec(Runtime.java:366)
at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 12 more
So I definetly need a way to simply disable *Dockefile* validations.
—
Reply to this email directly, view it on GitHub
<#733 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKMT6CNE2XQSLTBX6ISVXNLZU5GCDAVCNFSM6AAAAABMSAMJOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZG4YTGOJUGI>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<fabric8-analytics/fabric8-analytics-vscode-extension/issues/733/2329713942
@github.com>
|
call meet
El mié, 4 sept 2024 a la(s) 1:38 p.m., Adrian Sabalza (
***@***.***) escribió:
… permiteme empiezo a leer y analizar tu mensaje para poder entenderte
El mié, 4 sept 2024 a la(s) 12:25 p.m., Ruben Suarez Alvarez (
***@***.***) escribió:
> Patching the *server.js* file to hardcode the full *Java* path (
> /usr/lib/jvm/21.0/bin/java instead of simply java) I keep getting error
> messages (as I have no *skopeo* installed).
>
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
> [Warn - 8:17:27 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
>
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
> [Warn - 8:17:30 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
>
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
> [Warn - 8:22:06 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
>
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
> [Warn - 8:22:07 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
> at com.redhat.exhort.Main.parseArguments(Main.java:121)
> at com.redhat.exhort.Main.main(Main.java:27)
> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
> at java.base/java.lang.Runtime.exec(Runtime.java:681)
> at java.base/java.lang.Runtime.exec(Runtime.java:491)
> at java.base/java.lang.Runtime.exec(Runtime.java:366)
> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
> ... 7 more
> Caused by: java.io.IOException: error=2, No such file or directory
> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
> ... 12 more
>
> So I definetly need a way to simply disable *Dockefile* validations.
>
> —
> Reply to this email directly, view it on GitHub
> <#733 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BKMT6CNE2XQSLTBX6ISVXNLZU5GCDAVCNFSM6AAAAABMSAMJOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZG4YTGOJUGI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID:
> <fabric8-analytics/fabric8-analytics-vscode-extension/issues/733/2329713942
> @github.com>
>
|
kubectl apply -f
https://api.hub.tekton.dev/v1/resource/tekton/task/redhat-dependency-analytics/0.2/raw
El mié, 4 sept 2024 a la(s) 1:46 p.m., Adrian Sabalza (
***@***.***) escribió:
… call meet
El mié, 4 sept 2024 a la(s) 1:38 p.m., Adrian Sabalza (
***@***.***) escribió:
> permiteme empiezo a leer y analizar tu mensaje para poder entenderte
>
> El mié, 4 sept 2024 a la(s) 12:25 p.m., Ruben Suarez Alvarez (
> ***@***.***) escribió:
>
>> Patching the *server.js* file to hardcode the full *Java* path (
>> /usr/lib/jvm/21.0/bin/java instead of simply java) I keep getting error
>> messages (as I have no *skopeo* installed).
>>
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>> [Warn - 8:17:27 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>>
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>> [Warn - 8:17:30 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>>
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>> [Warn - 8:22:06 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json rubensa/ubuntu-tini-dev
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://rubensa/ubuntu-tini-dev:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>>
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>> [Warn - 8:22:07 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=baeb2ab0-31b0-4a3c-a30a-28636e42e218 -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
>> Exception in thread "main" java.lang.RuntimeException: Failed to execute command 'skopeo inspect --raw docker://ghcr.io/rubensa/my-data-api-devcontainer:latest'
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:227)
>> at com.redhat.exhort.image.ImageUtils.execSkopeoInspect(ImageUtils.java:408)
>> at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:265)
>> at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
>> at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
>> at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
>> at com.redhat.exhort.Main.parseArguments(Main.java:121)
>> at com.redhat.exhort.Main.main(Main.java:27)
>> Caused by: java.io.IOException: Cannot run program "skopeo": error=2, No such file or directory
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
>> at java.base/java.lang.Runtime.exec(Runtime.java:681)
>> at java.base/java.lang.Runtime.exec(Runtime.java:491)
>> at java.base/java.lang.Runtime.exec(Runtime.java:366)
>> at com.redhat.exhort.tools.Operations.runProcessGetFullOutput(Operations.java:194)
>> ... 7 more
>> Caused by: java.io.IOException: error=2, No such file or directory
>> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
>> at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
>> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
>> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
>> ... 12 more
>>
>> So I definetly need a way to simply disable *Dockefile* validations.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#733 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/BKMT6CNE2XQSLTBX6ISVXNLZU5GCDAVCNFSM6AAAAABMSAMJOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZG4YTGOJUGI>
>> .
>> You are receiving this because you are subscribed to this thread.Message
>> ID:
>> <fabric8-analytics/fabric8-analytics-vscode-extension/issues/733/2329713942
>> @github.com>
>>
>
|
Just for the record... Trying to config Dockerfile analysis is a nightmare if you have a "not that easy" Dockerfiles. After applying the patch mentioned before, installing syft and skopeo, adding credentials (as some Docker images are in private repositories) to skopeo (via Exception in thread "main" java.lang.RuntimeException: time="2024-09-05T12:49:53+02:00" level=fatal msg="Error parsing image name \"docker://base:latest\": reading manifest latest in docker.io/library/base: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:268)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27)
[Warn - 12:49:53 PM] Component Analysis Error: Error: Command failed: /usr/lib/jvm/21.0/bin/java -DRHDA_TOKEN=55b60dea-beb6-4c09-8242-19daa77e741b -DRHDA_SOURCE=vscode -DEXHORT_SYFT_PATH=syft -DEXHORT_SKOPEO_PATH=skopeo -DEXHORT_DOCKER_PATH=docker -DEXHORT_PODMAN_PATH=podman -jar /home/user/.vscode-server/extensions/redhat.fabric8-analytics-0.9.5/dist/../javaApiAdapter/exhort-java-api-adapter-1.0-SNAPSHOT-jar-with-dependencies.jar json ghcr.io/rubensa/my-data-api-devcontainer base
Exception in thread "main" java.lang.RuntimeException: time="2024-09-05T12:49:53+02:00" level=fatal msg="Error parsing image name \"docker://base:latest\": reading manifest latest in docker.io/library/base: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
at com.redhat.exhort.image.ImageUtils.getImageDigests(ImageUtils.java:268)
at com.redhat.exhort.image.ImageRef.checkImageDigest(ImageRef.java:121)
at com.redhat.exhort.image.ImageRef.<init>(ImageRef.java:48)
at com.redhat.exhort.ImageRefInput.<init>(ImageRefInput.java:10)
at com.redhat.exhort.Main.parseArguments(Main.java:121)
at com.redhat.exhort.Main.main(Main.java:27) So, to me, the only way to use the rest of analysis (I mainly use it for maven dependencies analysis) is to be able to disable Dockerfile analysis. |
Describe the bug
Each time I open a Dockerfile in Visual Studio Code, I get a notification with an error message like
(The error message means it cannot find the file)
To Reproduce
Steps to reproduce the behavior:
Save this Dockerfile:
Open it in Visual Studio Code
Error popup appears:
Expected behavior
Do not show any error messages if skopeo is not found, without the error message I wouldn’t even know of this extension, I did not install it myself
VSCode(please complete the following information):
Additional context
Some time ago I could work with these Dockerfiles without a problem.
The text was updated successfully, but these errors were encountered: