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

New bug when Populating the database #1085

Open
hsninbil opened this issue Apr 13, 2024 · 3 comments
Open

New bug when Populating the database #1085

hsninbil opened this issue Apr 13, 2024 · 3 comments
Labels

Comments

@hsninbil
Copy link

hsninbil commented Apr 13, 2024

I reinstall Populating the database of CVE-Search, but no update

root@lab-virtual-machine:/opt/cve/cve-search# ./sbin/db_mgmt_cpe_dictionary.py -p

@oh2fih
Copy link
Contributor

oh2fih commented Apr 13, 2024

Cool story, bro. 🤷‍♂️ You didn't provide any information on your environment nor the versions of CVE-Search & CveXplore you are using. The stack trace was a good start and gave some hints on what might have happened, but you removed it.

During the last two weeks, while fixing bugs and making improvements, I have been running these command several times with the recent dev versions and they are definitely working on, e.g., Ubuntu 22.04, both with most recent pip dependencies from pip and even with some older stable libraries from Ubuntu 22.04 LTS repositories. Hence, there must be something wrong with your undisclosed environment, but without the details no-one can but guess.

@adulau
Copy link
Member

adulau commented Apr 13, 2024

You previous message contained some insights. I bet it's your pyopenssl library which is too old, have you tried

python3 -m pip install pip --upgrade
pip install pyopenssl --upgrade

@rlintu
Copy link

rlintu commented May 15, 2024

I can't either populate the database. Environment cve-search 5.0.3, Debian 12. In Debian the MongoDB is pretty old 4.4.27 but I don't get any error messages related to that. API key is fine "NVD NIST API Key found!". No error messages during the population process (db_mgmt_cpe_dictionary.py -p;db_mgmt_json.py -p;db_updater.py -c). However, there are 2 warnings during update:

WARNING  - No records found in the mongodb cpe collection.
WARNING  - No records found in the mongodb cves collection.

Only notable thing in update_populate.log is
DBUpdater - INFO - Skipping non-configured source: cpeother

UPDATE
The reason was that in an example .cvexplore/.env file you have to remove <<>> characters
around NVD_API_KEY.

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

No branches or pull requests

4 participants