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

Invalid cross-device link (DependencyCheck v3.3.0) #1404

Closed
freecode1973 opened this issue Jul 27, 2018 · 2 comments
Closed

Invalid cross-device link (DependencyCheck v3.3.0) #1404

freecode1973 opened this issue Jul 27, 2018 · 2 comments

Comments

@freecode1973
Copy link

freecode1973 commented Jul 27, 2018

I tried to switch to newest dependency-check-maven plugin, which results in following error:

[ERROR] Failed to execute goal org.owasp:dependency-check-maven:3.3.0:update-only (owasp-dependency-update) on project jenkins-maintenance: An exception occurred while downloading updates. Please see the log file for more details. Failed to initialize the RetireJS repo: /tmp/dctempfe32b35b-0b68-41f7-b514-c7c417e4b4fb/jsrepository.json -> /var/local/share/owasp-cache-3.3.0/jsrepository.json: Invalid cross-device link -> [Help 1]

  • Directory /tmp is located on a fast, local hard disk (SSD).
  • /var/local/share is in this case an NFS share. I also tried to use local workspace for cve database directory or inside maven repository but same error occures. (With database I mean the directory set by dataDirectory property. Deleting this directory will not help)
  • System is a RedHat linux, with Jenkins as build system

The problem does not occur if database and temporary directory are located on same hard disc partition.

Is it possible to use soft links instead of hard links ? Alternatively...how to overwrite the temporary directory used by dependency-check-maven plugin, without affecting other maven modules (so I could set it to same disk where database is stored).

@freecode1973 freecode1973 changed the title Invalid cross-device link Invalid cross-device link (DependencyCheck v3.3.0) Jul 27, 2018
@jeremylong
Copy link
Owner

Thanks, this is a duplicate of #1394 - although I had originally thought this was a windows only bug. A fix will be published with the next release.

The only way to change the temp directory for a maven build would be to set the temp.directory system variable:

mvn -Dtemp.directory=/path/to/tmp verify

@lock
Copy link

lock bot commented Sep 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants