Skip to content
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

CVEDownloads - ERROR during db_mgmt_json.py #626

Closed
skxo opened this issue Mar 17, 2021 · 4 comments
Closed

CVEDownloads - ERROR during db_mgmt_json.py #626

skxo opened this issue Mar 17, 2021 · 4 comments

Comments

@skxo
Copy link

skxo commented Mar 17, 2021

Hello,
on 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux,
I have the following error when I try to run db_mgmt_json.py -p

$ sudo ./sbin/db_mgmt_json.py -p

2021-03-17 12:11:24,725 - CVEDownloads - INFO - CVE database population started
2021-03-17 12:11:24,725 - CVEDownloads - INFO - Starting CVE database population starting from year: 2002
2021-03-17 12:11:24,774 - DatabaseIndexer - INFO - Success to create index [('id', 1)] on cves
2021-03-17 12:11:24,783 - DatabaseIndexer - INFO - Success to create index [('vulnerable_configuration', 1)] on cves
2021-03-17 12:11:24,791 - DatabaseIndexer - INFO - Success to create index [('vulnerable_product', 1)] on cves
2021-03-17 12:11:24,801 - DatabaseIndexer - INFO - Success to create index [('Modified', 1)] on cves
2021-03-17 12:11:24,810 - DatabaseIndexer - INFO - Success to create index [('Published', 1)] on cves
2021-03-17 12:11:24,817 - DatabaseIndexer - INFO - Success to create index [('last-modified', 1)] on cves
2021-03-17 12:11:24,827 - DatabaseIndexer - INFO - Success to create index [('cvss', 1)] on cves
2021-03-17 12:11:24,834 - DatabaseIndexer - INFO - Success to create index [('cvss3', 1)] on cves
2021-03-17 12:11:24,843 - DatabaseIndexer - INFO - Success to create index [('summary', 'text')] on cves
2021-03-17 12:11:24,853 - DatabaseIndexer - INFO - Success to create index [('vendors', 1)] on cves
2021-03-17 12:11:24,862 - DatabaseIndexer - INFO - Success to create index [('products', 1)] on cves
2021-03-17 12:11:24,870 - DatabaseIndexer - INFO - Success to create index [('vulnerable_product_stems', 1)] on cves
2021-03-17 12:11:24,879 - DatabaseIndexer - INFO - Success to create index [('vulnerable_configuration_stems', 1)] on cves
Downloading files: 0%| | 0/20 [00:00<?, ?it/s]2021-03-17 12:11:25,440 - CVEDownloads - ERROR - Did not receive last-modified header in the response; setting to default (01-01-1970) and force update! Headers received: {'content-length': '93', 'cache-control': 'no-cache', 'content-type': 'text/html', 'connection': 'close'}
2021-03-17 12:11:25,441 - CVEDownloads - ERROR - Unhandled Content-Type encountered: text/html from url
Downloading files: 55%|█████████████████████████████████████████████ | 11/20 [00:02<00:01, 4.56it/s

I use the default configuration.ini.sample
Thanks for your help

@P-T-I
Copy link
Member

P-T-I commented Mar 17, 2021

Looks like a connection error of some kind; is this happening every time you try to populate?

@skxo
Copy link
Author

skxo commented Mar 17, 2021

yes, and the percentage of the Downloading files can be different before to stop. I will check using a different network but cannot understand why...

@P-T-I
Copy link
Member

P-T-I commented Mar 23, 2021

@skxo Any luck so far?

@skxo
Copy link
Author

skxo commented Mar 23, 2021

Hi, I used a different computer connected to a different network. I was able to populate.
Consider as closed, thanks for the follow up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants