Extra "db" string in the trivy cache path. #7380
Replies: 5 comments 9 replies
-
It's not expected. @afdesk Can you please take a look? |
Beta Was this translation helpful? Give feedback.
-
Hi @CsorbaRobertAlfa! thanks for the report! $ ls -l ~/Library/Caches/trivy
total 0
drwxr-xr-x 4 user staff 128 27 Aug 00:25 db
drwx------ 3 user staff 96 26 Aug 14:02 fanal
drwxr-xr-x@ 4 user staff 128 16 Aug 12:45 java-db
drwxr-xr-x@ 4 user staff 128 19 Aug 19:47 policy
drwx------ 4 user staff 128 27 Aug 01:15 subpath a new folder has created without read access for another users. |
Beta Was this translation helpful? Give feedback.
-
I reopened this discussion for a while I'm retesting it |
Beta Was this translation helpful? Give feedback.
-
@CsorbaRobertAlfa I managed to reproduce your error messages. it seems there are no files in your subfolder, so Trivy can't check a version. I see you use a custom repository for the script. trivy -v --cache-dir ~/Library/Caches/trivy -d
2024-09-02T19:13:11+06:00 DEBUG Cache dir dir="/Library/Caches/trivy"
2024-09-02T19:13:11+06:00 DEBUG Failed to get Java DB metadata err="unable to open a file: open ~/Library/Caches/trivy/java-db/metadata.json: no such file or directory"
2024-09-02T19:13:11+06:00 DEBUG Failed to open the check metadata err="open ~/Library/Caches/trivy/policy/metadata.json: no such file or directory"
2024-09-02T19:13:11+06:00 DEBUG Failed to get policy metadata err="open ~/Library/Caches/trivy/policy/metadata.json: no such file or directory"
Version: 0.54.1
Vulnerability DB:
Version: 2
UpdatedAt: 2024-09-02 12:13:01.826120224 +0000 UTC
NextUpdate: 2024-09-02 18:13:01.826119422 +0000 UTC
DownloadedAt: 2024-09-02 13:13:03.334095 +0000 UTC
$ ls -lsa ~/Library/Caches/trivy
total 0
0 drwxr-xr-x 4 amf staff 128
0 drwx------+ 98 amf staff 3136
0 drwxr-xr-x 4 amf staff 128
0 drwx------ 3 amf staff 96 |
Beta Was this translation helpful? Give feedback.
-
In version 0.55.2 I only see the following error messages.
|
Beta Was this translation helpful? Give feedback.
-
Description
I use the trivy server with the following systemd unit file:
I noticed an extra string has been added to the trivy cache path. (see below in the debug output)
Desired Behavior
Actual Behavior
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
Client/Server
Debug Output
Operating System
OracleLinux 8.10
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions