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

AWS is not working on Mac x64 #864

Open
janvcap-mac opened this issue Dec 6, 2024 · 1 comment
Open

AWS is not working on Mac x64 #864

janvcap-mac opened this issue Dec 6, 2024 · 1 comment
Labels
bug Something isn't working macOS specific for Apple MacOS

Comments

@janvcap-mac
Copy link

Expected behavior

As an IDEasy aws user on Mac x64 I expect that ide aws runs properly.

Actual behavior

bash-3.2$ ide aws
Trying to download aws-2.22.12-mac-x64.pkg from https://awscli.amazonaws.com/AWSCLIV2-2.22.12.pkg
Downloading 100% │███████████████████████│ 38/38MiB (0:03:27 / 0:00:00) ,2MiB/s
Checksum b25e87592be9513a8d1f1556891d76b2e6cc6e6a1ab39eb00749cbc380004120 is correct.
Extracting PKG file /Users/Username/Downloads/ide/default/aws-2.22.12-mac-x64.pkg to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-aws-2.22.12-mac-x64.pkg
Extracting TAR file /Users/Username/IdeasyTestProjects/_ide/tmp/ide-pkg-/aws-cli.pkg/Payload to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-aws-2.22.12-mac-x64.pkg
Extracting 100% │█████████████████████████│ 38/38MiB (0:00:00 / 0:00:00) ?MiB/s
Step 'ide (aws)' failed: java.lang.IllegalStateException: Failed to extract /Users/Username/IdeasyTestProjects/_ide/tmp/ide-pkg-/aws-cli.pkg/Payload to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-aws-2.22.12-mac-x64.pkg
 Step 'Install aws (*)' failed: java.lang.IllegalStateException: Failed to extract /Users/Username/IdeasyTestProjects/_ide/tmp/ide-pkg-/aws-cli.pkg/Payload to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-aws-2.22.12-mac-x64.pkg
2 step(s) failed out of 2 steps.
An unexpected error occurred!
We are sorry for the inconvenience.
Please check the error below, resolve it and try again.
If the error is not on your end (network connectivity, lack of permissions, etc.) please file a bug:
https://github.com/devonfw/IDEasy/issues/new?assignees=&labels=bug&projects=&template=bug.md&title=IllegalStateException%3A+Failed+to+extract+%2FUsers%2FUsername%2FIdeasyTestProjects%2F_ide%2Ftmp%2Fide-pkg-%2Faws-cli.pkg%2FPayload+to+%2FUsers%2FUsername%2FIdeasyTestProjects%2F_ide%2Ftmp%2Fextract-aws-2.22.12-mac-x64.pkg
java.lang.IllegalStateException: Failed to extract /Users/Username/IdeasyTestProjects/_ide/tmp/ide-pkg-/aws-cli.pkg/Payload to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-aws-2.22.12-mac-x64.pkg
	at com.devonfw.tools.ide.io.FileAccessImpl.extractArchive(FileAccessImpl.java:703)
	at com.devonfw.tools.ide.io.FileAccessImpl.extractTar(FileAccessImpl.java:640)
	at com.devonfw.tools.ide.io.FileAccessImpl.extractPkg(FileAccessImpl.java:748)
	at com.devonfw.tools.ide.io.FileAccessImpl.extract(FileAccessImpl.java:560)
	at com.devonfw.tools.ide.tool.LocalToolCommandlet.installTool(LocalToolCommandlet.java:231)
	at com.devonfw.tools.ide.tool.LocalToolCommandlet.installTool(LocalToolCommandlet.java:181)
	at com.devonfw.tools.ide.tool.LocalToolCommandlet.installTool(LocalToolCommandlet.java:166)
	at com.devonfw.tools.ide.tool.LocalToolCommandlet.install(LocalToolCommandlet.java:79)
	at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:166)
	at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:152)
	at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:139)
	at com.devonfw.tools.ide.tool.ToolCommandlet.run(ToolCommandlet.java:130)
	at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:867)
	at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:798)
	at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
	at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
	at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
	at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.io.IOException: Corrupted TAR archive.
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:1480)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:534)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:431)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry(TarArchiveInputStream.java:396)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry(TarArchiveInputStream.java:49)
	at com.devonfw.tools.ide.io.FileAccessImpl.extractArchive(FileAccessImpl.java:675)
	... 17 more
Caused by: java.lang.IllegalArgumentException: Invalid byte 46 at offset 6 in '000000./' len=8
	at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:516)
	at org.apache.commons.compress.archivers.tar.TarUtils.verifyCheckSum(TarUtils.java:863)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeaderUnwrapped(TarArchiveEntry.java:1503)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:1478)
	... 22 more


Error: IDEasy failed with exit code 255

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Run ide aws

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac x64
  • IDEasy: 2024.12.001-beta-SNAPSHOT
@janvcap-mac janvcap-mac added the bug Something isn't working label Dec 6, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Dec 6, 2024
@hohwille hohwille changed the title Was is not working on Mac x64 AWS is not working on Mac x64 Dec 9, 2024
@hohwille
Copy link
Member

hohwille commented Dec 9, 2024

Could you test manually extracting the archive in the shell using GNU TAR?
tar xvfz Payload (you need to find that file in tmp or rerun the xar -C «my-tmp-dir» -xf AWSCLIV2-2.22.12.pkg).

@alfeilex alfeilex added the macOS specific for Apple MacOS label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS specific for Apple MacOS
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants