nats-io / natscli

The NATS Command Line Interface
Apache License 2.0
472 stars 96 forks source link

Broken nats-cli arm64 binary #1029

Closed jamm3e3333 closed 3 months ago

jamm3e3333 commented 5 months ago

Observed behavior

When I installed the latest version (v0.1.4) of nats cli in arm64 linux image and trying to use nats-cli it says "Segmentation fault" so I assume that smth is wrong with the binary. I tried to install it like this:

# curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh && mv nats /usr/local/bin/

  ==> Downloading github.com/nats-io/natscli/nats@latest
  ==> Resolved version latest to 0345fb1
  ==> Downloading binary for linux arm64
  ==>   URL: https://binaries.nats.dev/binary/github.com/nats-io/natscli/nats?os=linux&arch=arm64&version=0345fb1
  ==> Installing nats to .
  ==> Installation complete
  #nats --version
Segmentation fault

when I install nats-cli v0.1.3 everything works fine

Expected behavior

I want it to work, that's all xD

Server and client version

nats-server version: 2.9.15 (not sure about that) nats-cli version: v0.1.4

Host environment

No response

Steps to reproduce

No response

ripienaar commented 5 months ago

Hmm, I dont have any arm64 machines, can you try the official released binary from the releases page? Same story?

mprimi commented 3 months ago

I bumped into this one yesterday. It's not an issue with this project but rather of nats-binaries, the downloaded binary is half the expected size, meaning probably the backend store for the latest version is corrupted.

@wallyqs can you nuke the cache? @jamm3e3333 if you download the previous commit (by SHA) rather than main, it will probably work (it did for me)

wallyqs commented 3 months ago

Thanks for the report, I think this should be resolved now.