Closed royoan closed 5 years ago
if you cat
your ./klar
file, it looks like you might be getting that download poorly (it's downloading the klar-2.4.0-linux-amd64
executable as what's being passed to klar - which is weird (see the redirect. Try manually downloading and running first, and confirming that it works that way. If that works, then your next step is to try to determine why you were getting redirected.
If that doesn't work, I've definitely had issues with Klar handling HTTP errors from clair poorly. I just ran into it last week as my clair server bounced when I wasn't expecting it and I got that error due to a 503 response received. If that's the case, make sure you can get to the Clair API directly yourself first. Then punch it with Klar.
if you
cat
your./klar
file, it looks like you might be getting that download poorly (it's downloading theklar-2.4.0-linux-amd64
executable as what's being passed to klar - which is weird (see the redirect. Try manually downloading and running first, and confirming that it works that way. If that works, then your next step is to try to determine why you were getting redirected.If that doesn't work, I've definitely had issues with Klar handling HTTP errors from clair poorly. I just ran into it last week as my clair server bounced when I wasn't expecting it and I got that error due to a 503 response received. If that's the case, make sure you can get to the Clair API directly yourself first. Then punch it with Klar.
Thanks, I'm not use it now
Hi I downloal the klar from git cd /root curl https://github.com/optiopay/klar/releases/download/v2.4.0/klar-2.4.0-linux-amd64 -o ./klar PATH=$PATH:/root/klar then run:
How to run the klar ?