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

Execution failed for task ':generateDepTrees' using jf audit command for gradle project. #171

Open
ssantaa9 opened this issue Sep 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ssantaa9
Copy link

Describe the bug

I get the error Execution failed for task ':generateDepTrees' using the jf audit command in some gradle projects. I tried with Jfrog CLI version from 2.55.0 to 2.67.0 (from other issues looks to be since 2.36.1 version), and I get the same error. The error looks to be with generateDepTrees plugin, since I tried only executing the plugin and the same error appears.

Current behavior

10:19:52 [Debug] JFrog CLI version: 2.67.0
10:19:52 [Debug] OS/Arch: linux/amd64
10:19:52 [Debug] Trace ID for JFrog Platform logs: 84c73eca43d1b8a1
10:19:52 [Debug] Sending HTTP GET request to: https://<artifactory-server>/xsc/api/v1/system/version
10:19:53 [🔵Info] Log path: /home/ubuntu/.jfrog/logs/jfrog-cli.2024-09-10.10-19-53.11851.log

💬The ‘jf audit’ command also supports JFrog Advanced Security features, such as 'Contextual Analysis', 'Secret Detection', 'IaC Scan' and ‘SAST’.
This feature isn't enabled on your system. Read more - https://jfrog.com/xray/

Vulnerable Dependencies
┌───────────────────────────────────────────────────────────────────────────────┐
│ 🔧 Couldn't determine a package manager or build tool used by this project 🔧 │
└───────────────────────────────────────────────────────────────────────────────┘
10:20:28 [Debug] Sending an error report to JFrog analytics...
10:20:28 [Debug] Sending HTTP GET request to: https://<artifactory-server>/xsc/api/v1/system/version
10:20:29 [Debug] failed to check availability of Xsc service:server response: 404 Not Found
{
  "errors": [
    {
      "status": 404,
      "message": "Not Found"
    }
  ]
}
Reporting to JFrog analytics is skipped...
10:20:29 [🔵Info] Trace ID for JFrog Platform logs: 84c73eca43d1b8a1
10:20:29 [🚨Error] audit command in '<path/to/project>' failed:
failed while building 'gradle' dependency tree:
error running gradle-dep-tree: exit status 1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateDepTrees'.
> java.util.ConcurrentModificationException (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

Reproduction steps

No response

Expected behavior

No response

JFrog CLI-Security version

Jfrog CLI version from 2.55.0 to 2.67.0 (from other issues looks to be since 2.36.1 version)

JFrog CLI version (if applicable)

No response

Operating system type and version

Ubuntu 20.04.6 LTS

JFrog Xray version

No response

@ssantaa9 ssantaa9 added the bug Something isn't working label Sep 10, 2024
@moyolawal
Copy link

Getting the same issue as well. Running on windows. Wonder when this will get fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants