Closed lvets closed 9 years ago
Thanks for finding (yet another) bug I fixed the typoes (a misplaced space). I fixed the bug. Now for the reason why it only happened the second time, the "last modified" variable was set in the database. Please do the following to fix this:
mongo
in the terminal to open the mongo interfaceuse cvedb
to go to the cve-search databasedb.info.update({db:"cve"},{"last-modified" : "Fri, 28 Aug 2015 18:07:38 GMT"})
to reset the variable to last weekI don't think this issue is fixed :)
I did a git pull in the cve-search directory, Did the 5 steps:
user@machine:~/Source/cve-search$ mongo
MongoDB shell version: 2.4.9
connecting to: test
>
>
> use cvedb
switched to db cvedb
> db.info.update({db:"cve"},{"last-modified" : "Fri, 28 Aug 2015 18:07:38 GMT"})
> quit
function quit() { [native code] }
> quit()
user@machine:~/Source/cve-search$
When I try the update again, I still get the same message:
Starting cves
Traceback (most recent call last):
File "/home/laurens/Source/cve-search/sbin/db_mgmt.py", line 225, in <module>
dbLayer.updateCVE(item)
File "/home/laurens/Source/cve-search/sbin/../lib/DatabaseLayer.py", line 43, in updateCVE
colCVE.update({"id": cve['id']}, {"$set": {"cvss": cve['cvss'], "summary": cve['summary'], "references": cve[' references'],
KeyError: ' references'
cves has 72182 elements (0 update)
Starting cpe
That's odd, seems like my push did not complete. I did fix the bug, and tested on my pc. It's the space before references. There is also another typo. I'll push again when I'm home
try again please :)
That works, thanks! :)
Hello,
I get following traceback when updating my db:
However, when I run the updater again, I don't get the error anymore... Any idea what might be going on?