Trivy: Error scan after update to v0.9.0

Created on 4 Jun 2020  路  3Comments  路  Source: aquasecurity/trivy

Description
Unable to scan (public and private repo) after update to v0.9.0

What did you expect to happen?
I have updated trivy to the latest version. When trying to scan image via remote server, an error message appears.
I have also downgraded the version to 0.7.0, the scanner running fine without issue.

What happened instead?
Cannot scan any image in public or private repo.

Output of run with -debug:
trivy client --remote https://trivy.xxxx.xx:443 --token 'xxxxxxxx' dendipradigta/overseer-bridge-slack:1.0.6 -d
2020-06-03T13:17:23.225+0700 DEBUG Severities: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
2020-06-03T13:17:23.225+0700 DEBUG cache dir: /Users/dendipradigta/Library/Caches/trivy
2020-06-03T13:17:27.459+0700 DEBUG Vulnerability type: [os library]
2020-06-03T13:17:28.497+0700 FATAL error in image scan:
github.com/aquasecurity/trivy/internal/client.run
/home/circleci/project/internal/client/run.go:76

  • failed analysis:
    github.com/aquasecurity/trivy/pkg/scanner.Scanner.ScanImage
    /home/circleci/project/pkg/scanner/scan.go:87
  • unable to get missing layers:
    github.com/aquasecurity/fanal/analyzer.Config.Analyze
    /go/pkg/mod/github.com/aquasecurity/[email protected]/analyzer/analyzer.go:111
  • unable to fetch missing layers:
    github.com/aquasecurity/trivy/pkg/cache.RemoteCache.MissingLayers
    /home/circleci/project/pkg/cache/remote.go:48
  • twirp error bad_route: no handler for path "/twirp/trivy.cache.v1.Cache/MissingLayers"
(paste your output here)

Output of trivy -v:
Version: 0.9.0

(paste your output here)

Additional details (base image name, container registry info...):

kinbug

Most helpful comment

@dendi It looks like the server (--remote https://trivy.xxxx.xx:443) is not use the same version as client. How about upgrade both server and client to 0.9.0 and try again?

All 3 comments

@dendi It looks like the server (--remote https://trivy.xxxx.xx:443) is not use the same version as client. How about upgrade both server and client to 0.9.0 and try again?

@mozillazg Thank you for the help!

@dendi Yes, would you try upgrading the server to 0.9.0? I'll write the caution in the changelog. Thanks.

Thanks all. I have updated both server and client. All running as expected. Will close this thread.

thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nycalex picture nycalex  路  6Comments

abedra picture abedra  路  4Comments

AdamMichaelLong picture AdamMichaelLong  路  4Comments

jonrau1 picture jonrau1  路  6Comments

knqyf263 picture knqyf263  路  3Comments