Closed jsf9k closed 6 months ago
It might be helpful if we modified this script to output some info about the JSON file if there is an error like this (or maybe always), I'm thinking things like file length or contents.
I ran the sudo -u cyhy cyhy-nvdsync --use-network
command thirteen times this morning without encountering a single error.
From an email @dav3r sent on Feb. 28, 2024:
It looks like whatever caused this issue has been resolved since we haven't gotten this alarm since Friday.
@dav3r - Feel free to go ahead and close this issue if you think that is appropriate.
It appears that whatever was causing this failure has been resolved at the source, without any changes needed by us, so I am closing this issue.
🐛 Summary
The
cyhy-nvdsync
process occasionally fails due to aValueError
exception thrown fromjson.load()
. When run later the command succeeds.To reproduce
I am unable to reproduce this bug, but you can see instances of it in
/var/log/syslog
on thedatabase1
instance:Expected behavior
If the file published by NIST is corrupted, then replaced with an uncorrupted version, or if there are multiple download nodes and one of them contains a bad copy, then that would explain the behavior. If that is not the case then the observed behavior is unexplained.
Any helpful log output or screenshots
Here is a full stacktrace from a failure in
/var/log/syslog
:Note that there is likely some interleaving due to both standard output and standard error being redirected to the same file.