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

Latest (3.7.2) linux amd64 binary not working #1023

Closed
nklmilojevic opened this issue Mar 9, 2022 · 7 comments
Closed

Latest (3.7.2) linux amd64 binary not working #1023

nklmilojevic opened this issue Mar 9, 2022 · 7 comments

Comments

@nklmilojevic
Copy link
Contributor

-bash: ./sops-v3.7.2.linux.amd64: cannot execute binary file: Exec format error

Did something go wrong in the CI process? macOS binary is completely fine.

@FnTm
Copy link
Contributor

FnTm commented Mar 9, 2022

@nklmilojevic this may be a silly question, but are you trying to do bash ./sops-v3.7.2.linux.amd64?
Because it seems to work when you just invoke it without trying to make bash parse it as a script:

root@36faa215eb37:/# bash sops-v3.7.2.linux.amd64
sops-v3.7.2.linux.amd64: sops-v3.7.2.linux.amd64: cannot execute binary file
root@36faa215eb37:/# ./sops-v3.7.2.linux.amd64 -h
NAME:
   sops - sops - encrypted file editor with AWS KMS, GCP KMS, Azure Key Vault, age, and GPG support

USAGE:
   sops is an editor of encrypted files that supports AWS KMS and PGP
  [..]

@nklmilojevic
Copy link
Contributor Author

@FnTm It is not a silly question, all suggestions are welcome :)

 5.4.0-1019-gcp #19-Ubuntu SMP Tue Jun 23 15:46:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ wget https://github.com/mozilla/sops/releases/download/v3.7.2/sops-v3.7.2.linux.amd64
Saving to: ‘sops-v3.7.2.linux.amd64’

sops-v3.7.2.linux.amd64                                 100%[==============================================================================================================================>]  24.39M  28.2MB/s    in 0.9s

2022-03-09 21:35:58 (28.2 MB/s) - ‘sops-v3.7.2.linux.amd64’ saved [25573664/25573664]

$ chmod +x sops-v3.7.2.linux.amd64
$ ./sops-v3.7.2.linux.amd64 --version
-bash: ./sops-v3.7.2.linux.amd64: cannot execute binary file: Exec format error

Don't know why is it trying to use bash to execute when I'm clearly executing the binary itself. Am I missing someting obvious?

@cw-sakamoto
Copy link

It seems to be built with the wrong architecture.

% file ~/Downloads/sops-v3.7.2.linux.amd64
~/Downloads/sops-v3.7.2.linux.amd64: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=BV9XBEHJegT6xOjMgkdr/vnn6LGCxeAwZUWOu7MBs/BUhtoJEVbcXWaliWIqXY/aGyuk_ewS-IqGheG3Sag, not stripped

@FnTm
Copy link
Contributor

FnTm commented Mar 10, 2022

This commit seems like it could have something to do with this issue - c586534

@FnTm
Copy link
Contributor

FnTm commented Mar 10, 2022

Looked at things with fresh eyes, and I think this is what's happening:

That is why I think that particular build is not as expected.

@philomory
Copy link

Is a new release planned to address this, or is a fix just going to have to wait until the other issues in the 3.7.3 milestone are also complete? Alternatively, could someone manually attach the 3.7.2 amd64 build to the existing github release?

yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this issue Mar 11, 2022
sops 3.7.2, released yesterday, had a corrupted linux
binary getsops/sops#1023.
This causes all our actions needing sops to fail.
We pin to 3.7.1 until sops upstream fixes it
mdgreenwald/mozilla-sops-action#105 (comment)
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this issue Mar 11, 2022
sops 3.7.2, released yesterday, had a corrupted linux
binary getsops/sops#1023.
This causes all our actions needing sops to fail.
We pin to 3.7.1 until sops upstream fixes it
mdgreenwald/mozilla-sops-action#105 (comment)
@ajvb
Copy link
Contributor

ajvb commented Mar 11, 2022

Thank you @FnTm for the fix in #1026

New binaries have been uploaded.

@ajvb ajvb closed this as completed Mar 11, 2022
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

5 participants