GoogleCloudPlatform / berglas

A tool for managing secrets on Google Cloud
https://cloud.google.com/secret-manager
Apache License 2.0
1.24k stars 96 forks source link

berglas: cannot execute binary file: Exec format error #175

Closed case-k-git closed 2 years ago

case-k-git commented 2 years ago

I have got under the error since yesterday 2021-11-17.

berglas: cannot execute binary file: Exec format error

I am using berglas for long time by downloading like this

curl -o ./berglas https://storage.googleapis.com/berglas/main/linux_amd64/berglas

since yesterday executing berglas command has been failed. seems to be gzip file

 file ./berglas
./berglas: gzip compressed data, from Unix

changing filename extension I could unzip the file. finally I could use the berglas command

mv berglas berglas.gz
gzip -d berglas.gz
file ./berglas
./berglas: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

this is weird because redownloading berglas could be work but some times got this error again.

first time I thought someone upload wrong file but it seems to be not

does any one know why this happen?

case-k-git commented 2 years ago

duplicate issue so close this one https://github.com/GoogleCloudPlatform/berglas/issues/174