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

Unstable connection to nist database #3710

Closed
smiklosovic opened this issue Oct 7, 2021 · 7 comments
Closed

Unstable connection to nist database #3710

smiklosovic opened this issue Oct 7, 2021 · 7 comments
Labels

Comments

@smiklosovic
Copy link

Hi @jeremylong ,

I am from Apache Cassandra project and we would like to use Ant plugin as part of our build pipeline.

It works but every now and then, we are getting this error and it makes it pretty unstable to run the builds.

Are we doing something wrong or nist is unstable?

This is our setup: https://github.com/apache/cassandra/blob/trunk/.build/build-owasp.xml

Thanks

/home/jenkins/jenkins-slave/workspace/Cassandra-devbranch-artifacts/jdk/jdk_1.8_latest/label/cassandra/.build/build-owasp.xml:80: One or more exceptions occurred during analysis:
15:14:52 org.owasp.dependencycheck.exception.ExceptionCollection: One or more exceptions occurred during analysis:
15:14:52 UpdateException: Unable to download meta file: https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.meta
15:14:52 caused by DownloadFailedException: Download failed, unable to retrieve 'https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.meta'; Error downloading file https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.meta; unable to connect.
15:14:52 caused by DownloadFailedException: Error downloading file https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.meta; unable to connect.
15:14:52 caused by DownloadFailedException: Error retrieving https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.meta; received response code 503; Service Unavailable
15:14:52 NoDataException: No documents exist
15:14:52 at org.owasp.dependencycheck.Engine.throwFatalExceptionCollection(Engine.java:1103)
15:14:52 at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:612)
15:14:52 at org.owasp.dependencycheck.taskdefs.Check.callExecuteAnalysis(Check.java:1844)
15:14:52 at org.owasp.dependencycheck.taskdefs.Check.execute(Check.java:1801)
15:14:52 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
15:14:52 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
15:14:52 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:14:52 at java.lang.reflect.Method.invoke(Method.java:498)
15:14:52 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
15:14:52 at org.apache.tools.ant.Task.perform(Task.java:350)
15:14:52 at org.apache.tools.ant.Target.execute(Target.java:449)
15:14:52 at org.apache.tools.ant.Target.performTasks(Target.java:470)
15:14:52 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
15:14:52 at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
15:14:52 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
15:14:52 at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
15:14:52 at org.apache.tools.ant.Main.runBuild(Main.java:834)
15:14:52 at org.apache.tools.ant.Main.startAnt(Main.java:223)
15:14:52 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
15:14:52 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

@williamroboly
Copy link

I get the same output using the docker approach.

[ERROR] Unable to download meta file: https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2006.meta

Thoughts?

@jeremylong
Copy link
Collaborator

This is unfortunately caused by the NVD's rate limiting that was enabled in September. I am currently working on a resolution that will include increased wait times and additional data caching. One of the best options for people using the CLI, Ant, or docker image would be to switch to using the owasp/dependency-check-action:latest docker image. This is built nightly and contains a full up-to-date dependency-check database. Other then having an up-to-date database it works exactly like the standard ODC docker image.

@jeremylong
Copy link
Collaborator

We should have a new release within 1-2 days that will resolve the issue with downloading from the NVD.

@jeremylong
Copy link
Collaborator

ODC 6.4.1 was released and should resolve the issues you were facing.

@smiklosovic
Copy link
Author

We should have a new release within 1-2 days that will resolve the issue with downloading from the NVD.

Awesome news! Thank you very much. Can't wait to hook this stuff into our pipeline again.

@darmbrust
Copy link

Just a note - we are still seeing these random download failures with 6.5.3, in a docker build pipeline.
Can you give more specifics on how to get the pre-built DB into our own docker image?

@jeremylong
Copy link
Collaborator

Sorry for the delayed response - you can use: https://hub.docker.com/r/owasp/dependency-check-action

It is built nightly and contains the full NVD database.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants