PidgeyL / cve-search

cve-search is a tool to import CVE (Common Vulnerabilities and Exposures) and CPE (Common Platform Enumeration) into a MongoDB to facilitate search and processing of CVEs.
http://adulau.github.com/cve-search/
Other
24 stars 4 forks source link

Error on updating (exploitdb) #117

Closed lvets closed 8 years ago

lvets commented 8 years ago

Good morning, I've tried updating my install with python3 ./db_updater.py -c -i -v and I get the following error:

Starting redis-nist-ref
Not modified
redis-nist-ref has 0 elements (0 update)
Starting exploitdb
Traceback (most recent call last):
  File "/home/user/Source/cve-search/sbin/db_mgmt_exploitdb.py", line 59, in <module>
    db.bulkUpdate('exploitdb', exploits)
  File "/home/user/Source/cve-search/sbin/../lib/DatabaseLayer.py", line 69, in bulkUpdate
    bulk.execute()
  File "/usr/local/lib/python3.4/dist-packages/pymongo/bulk.py", line 582, in execute
    return self.__bulk.execute(write_concern)
  File "/usr/local/lib/python3.4/dist-packages/pymongo/bulk.py", line 416, in execute
    raise InvalidOperation('No operations to execute')
pymongo.errors.InvalidOperation: No operations to execute
exploitdb has 35093 elements (0 update)
Starting ensureindex
[+]Success to create index id on cpe
[+]Success to create index id on cpeother
[+]Success to create index id on cves
[+]Success to create index vulnerable_configuration on cves
[+]Success to create index Modified on cves
[+]Success to create index [('summary', 'text')] on cves
[+]Success to create index id on vfeed
[+]Success to create index id on vendor
[+]Success to create index id on d2sec
[+]Success to create index id on mgmt_whitelist
[+]Success to create index id on mgmt_blacklist
[+]Success to create index related_weakness on capec
[+]Success to create index id on exploitdb

Any idea what might be going on?

PidgeyL commented 8 years ago

Hi! I updated the script to keep an eye out for empty bulk operations, so this should be fixed. I did not get this issue though, could you check if it's fixed in the latest version? Thanks

lvets commented 8 years ago

Yep, it works now, thanks! :)