question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect to the dependency-check database

See original GitHub issue

Describe the bug

I’d previously been running dependencyCheck quite happily on my Mac. But now I’ve switched to running a Fedora VM under QubesOS it no longer seems to work.

I get the error

[error] (*:dependencyCheck) org.owasp.dependencycheck.exception.ExceptionCollection: One or more exceptions occurred during analysis:
[error]         Unable to connect to the dependency-check database

Version of sbt-dependency-check used

The problem occurs using version 0.2.10 (which is what I was using on my mac) and 1.3.0 of the the plugin.

Log file

https://gist.github.com/mgladdish/3971948c0fd101d9a1ab67fd7f4d6307

To Reproduce

Steps to reproduce the behavior:

  1. execute the dependencyCheck target

Expected behavior

The dependencyCheck task to run without errors, and produce a report.

Additional context

I’ve seen similar errors logged on the “parent” project, e.g. https://github.com/jeremylong/DependencyCheck/issues/1783. I tried dependencyCheckPurge and deleting my .ivy2/cache/org.owasp/dependency-check-utils/jars/data directory. Neither of which helped.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
albuchcommented, Aug 14, 2019

Unfortunately the default for sbt/scala is to only show the exception stacktrace and not showing the stacktraces and messages of the underlying causes. The root cause in this case is wrapped two times in new Exceptions. I’m preparing a fix to log those exceptions including their root cause. This should help you pinpoint where your platform specific issue comes from.

0reactions
albuchcommented, Oct 9, 2019

@mgladdish I’m going to close this issue for now. if you need more assistance please leave a comment

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ERROR] Unable to connect to the dependency-check database
I just upgraded dependency-check from 5.3.2 to 6.0.0 using brew. Afterwards I get the error from the bug title using the cli.
Read more >
Unable to connect to the dependency-check database
I'm seeing this with the maven plugin. [ERROR] Failed to execute goal org.owasp:dependency-check-maven:3.0.2:check (default-cli) on project MY_PROJECT: Fatal ...
Read more >
Unable to connect to the dependency-check database with ...
I find a workaround for it. Copy the odc.mv.db file located in org/owasp/dependency-check-data in your maven project for example.
Read more >
Using a Database Server - dependency-check
Using a Database Server. WARNING: This discusses an advanced setup and you may run into issues. Out of the box dependency-check uses a...
Read more >
OWASP Dependency-Check
Dependency -Check is a Software Composition Analysis (SCA) tool suite that ... vulnerabilities (such as those at the National Vulnerability Database).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found