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

docs(dev-container): fix Unable to access jarfile openapi-generator-cli/versions/5.2.0.jar #1317

Closed
petermetz opened this issue Sep 9, 2021 · 0 comments · Fixed by #1318
Closed
Assignees
Labels
bug Something isn't working Developer_Experience documentation Improvements or additions to documentation
Milestone

Comments

@petermetz
Copy link
Contributor

Describe the bug

When I rebuild the dev container the configure script fails with some strange error about the open api generator jar not being accessible.

To Reproduce

Run the dev container, rebuild it with the latest code.
Watch it crash at the post create step (e.g. the code that runs after the container itself booted successfully).

Expected behavior

Does not crash.

Logs/Stack traces

[1402943 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '*********/cactus' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\*********\.vscode\extensions\ms-vscode-remote.remote-containers-0.194.0\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='C:\Users\*********\AppData\Local\Programs\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_MAIN='c:\Users\*********\.vscode\extensions\ms-vscode-remote.remote-containers-0.194.0\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\\.\pipe\ssh-askpass-851ea02ea5b44fd29a45cd08a7be1a72ccbfd5f3-sock' DOCKER_CONTEXT='default' VSCODE_SSH_ASKPASS_COUNTER='23' docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=da5b6037-e23c-410c-99ee-b494946279061631221168476' '59da60a5e5f6f4fe96ac9b846815d66a1ee40697c03069011e496c86956f6315' '/home/vscode/.vscode-server/bin/e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff/node' '-e' '
lerna ERR! yarn run codegen exited 1 in '@hyperledger/cactus-plugin-keychain-aws
-sm'
lerna ERR! yarn run codegen stdout:
$ run-p 'codegen:*'

> @hyperledger/cactus-plugin-keychain-aws-sm@0.9.0 codegen:openapi
> npm run generate-sdk


> @hyperledger/cactus-plugin-keychain-aws-sm@0.9.0 generate-sdk
> openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-a
xios -o ./src/main/typescript/generated/openapi/typescript-axios/

Download 5.2.0 ...
Downloaded 5.2.0
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
lerna ERR! yarn run codegen stderr:
/workspaces/cactus/node_modules/@openapitools/openapi-generator-cli/main.js:621
                error ? reject(new Error(stderr)) : resolve(stdout);
                               ^

Error: Error: Unable to access jarfile /workspaces/cactus/node_modules/@openapit
ools/openapi-generator-cli/versions/5.2.0.jar

    at /workspaces/cactus/node_modules/@openapitools/openapi-generator-cli/main.
js:621:32
    at ChildProcess.exithandler (node:child_process:333:5)
    at ChildProcess.emit (node:events:394:28)
    at maybeClose (node:internal/child_process:1067:16)
    at Socket.<anonymous> (node:internal/child_process:453:11)
    at Socket.emit (node:events:394:28)
    at Pipe.<anonymous> (node:net:661:12)
ERROR: "codegen:openapi" exited with 1.
error Command failed with exit code 1.
lerna ERR! yarn run codegen exited 1 in '@hyperledger/cactus-plugin-keychain-aws
-sm'
lerna WARN complete Waiting for 7 child processes to exit. CTRL-C to exit immedi
ately.
ERROR: "codegen" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
[1406584 ms] Error: Command failed: /bin/sh -c bash -i -c '~/bin/post-create-commands.sh'
        at Eg (c:\Users\*********\.vscode\extensions\ms-vscode-remote.remote-containers-0.194.0\dist\extension\extension.js:168:15)
        at async wg (c:\Users\*********\.vscode\extensions\ms-vscode-remote.remote-containers-0.194.0\dist\extension\extension.js:161:2474)
        at async c:\Users\*********\.vscode\extensions\ms-vscode-remote.remote-containers-0.194.0\dist\extension\extension.js:143:8042
[1413865 ms] Port forwarding 54691 > 37677 > 37677 stderr: Remote close
[1413913 ms] Port forwarding 54691 > 37677 > 37677 terminated with code 0 and signal null.
[1420999 ms] Start: Run in container: cat /proc/3684/environ
[1427644 ms] Port forwarding 54691 > 37677 > 37677: Local close

Screenshots

If applicable, add screenshots to help explain your problem.

Cloud provider or hardware configuration:

Dev container / dev machine

Operating system name, version, build:

Ubuntu 20.04

@petermetz petermetz added bug Something isn't working documentation Improvements or additions to documentation Developer_Experience labels Sep 9, 2021
@petermetz petermetz added this to the v0.10.0 milestone Sep 9, 2021
@petermetz petermetz self-assigned this Sep 9, 2021
petermetz added a commit to petermetz/cacti that referenced this issue Sep 9, 2021
…li/versions/5.2.0.jar hyperledger-cacti#1317

The OpenAPI generator versions were out of sync, unified it on 5.2.0 and now the dev container
does not have any issue configuring itself upon a successful boot.

Fixes hyperledger-cacti#1317

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit that referenced this issue Sep 12, 2021
…li/versions/5.2.0.jar #1317

The OpenAPI generator versions were out of sync, unified it on 5.2.0 and now the dev container
does not have any issue configuring itself upon a successful boot.

Fixes #1317

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
RafaelAPB pushed a commit to RafaelAPB/blockchain-integration-framework that referenced this issue Mar 9, 2022
…li/versions/5.2.0.jar hyperledger-cacti#1317

The OpenAPI generator versions were out of sync, unified it on 5.2.0 and now the dev container
does not have any issue configuring itself upon a successful boot.

Fixes hyperledger-cacti#1317

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Developer_Experience documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant