-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot download DB: process hangs on ~30Mb; error message: PROTOCOL_ERROR; received from peer #2382
Comments
Hi. Sorry to hear you're having trouble downloading the vulnerability database with grype. I cannot reproduce on my Debian server in Germany, running multiple times. It's possible you're hitting a different CDN endpoint to me, however.
Are you behind any kind of challenging firewall or proxy? I appreciate that the |
Thank you for the quick response! The situations is getting a bit weird.
Looks like the error occurs only with Debian VMs. They are running behind an OPNSense gateway. There are no proxies in the network: When I get the error, I get it everytime: it is unconditional. |
I have seen this inside a Windows VM (qemu) on top of Ubuntu on a laptop in my office in the UK, with no weird networking. But that is when the wifi at the office is playing up. Now, when the network is not sluggish, I get no problem. I just tested inside a proxmox VM on top of my debian box, which is about as close to your environment as I can get at the moment. It took about 10 seconds, but most of that was the unpack after the download.
When things are super bad on our infrastructure/cdn, we typically get more shouting. I'm trying not to diminish the issue you're seeing, just pointing out we haven't had a lot of people shouting. Let's see if we get any more reports. |
I have also tried Grype for Windows running on my notebook, which is routed directly via ISP (the same IP and DNS as VM 2): everything works fine.
|
Not that I am aware of, other than using external tools. As a last resort, maybe use wireshark on the host, and monitor the network of the guest VM, and see what it's doing? |
The issue was with OPNSense gateway. @popey , thank you very much for your help and assistance. |
Hello! I was trying to update a vulnerability database and faced with the error:
ERROR unable to update vulnerability database: unable to update vulnerability database: unable to download db: stream error: stream ID 1; PROTOCOL_ERROR; received from peer
. This error occurs every time I try to update the DB and it started approximately a week ago.What happened:
When trying to update the vulnerability database process hangs on 27-30Mb and after that the following error occurs:
[0061] ERROR unable to update vulnerability database: unable to update vulnerability database: unable to download db: stream error: stream ID 1; PROTOCOL_ERROR; received from peer
.However I can download the archive file manually - it loads without any issues.
Full log output:
What you expected to happen:
I expect the vulnerability DB to be downloaded and updated without any errors.
How to reproduce it (as minimally and precisely as possible):
grype db delete
.grype db update
.Environment:
grype version
: 0.86.1cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: