You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error while uploading the scan results to server:
[ERROR] [2022-03-09 09:11:00,752 +0000] - Failed to send request to WhiteSource server: Illegal arguments: Invalid dependency info, DependencyInfo@8556f1ec[groupId= null,artifactId= xz,version= 5.2.5,filename= xz-5.2.5-h7b6447c_0,dependencyType= CONDA ] Dependency type 'CONDA' is not allowed to be with empty sha1
[DEBUG] [2022-03-09 09:11:00,752 +0000] - Failed to send request to WhiteSource server: Illegal arguments: Invalid dependency info, DependencyInfo@8556f1ec[groupId= null,artifactId= xz,version= 5.2.5,filename= xz-5.2.5-h7b6447c_0,dependencyType= CONDA ] Dependency type 'CONDA' is not allowed to be with empty sha1
org.whitesource.agent.client.WssServiceException: Illegal arguments: Invalid dependency info, DependencyInfo@8556f1ec[groupId= null,artifactId= xz,version= 5.2.5,filename= xz-5.2.5-h7b6447c_0,dependencyType= CONDA ] Dependency type 'CONDA' is not allowed to be with empty sha1
at org.whitesource.agent.client.WssServiceClientImpl.extractResultData(WssServiceClientImpl.java:492)
at org.whitesource.agent.client.WssServiceClientImpl.service(WssServiceClientImpl.java:339)
at org.whitesource.agent.client.WssServiceClientImpl.updateInventory(WssServiceClientImpl.java:199)
at org.whitesource.agent.client.WhitesourceService.update(WhitesourceService.java:371)
at org.whitesource.request.ProjectsSender.update(ProjectsSender.java:791)
at org.whitesource.request.ProjectsSender.sendRequest(ProjectsSender.java:296)
at org.whitesource.request.ProjectsSender.sendProjects(ProjectsSender.java:165)
at org.whitesource.fs.Main.sendScanResults(Main.java:209)
at org.whitesource.fs.Main.main(Main.java:95)
[INFO] [2022-03-09 09:11:00,752 +0000] - Support token: 03e500d6fae8d4cf897be53ab3c1b80311646817060686
Looks like following is the reason why the above error occurs :
[DEBUG] [2022-03-09 09:10:31,594 +0000] - CondaDependencyResolver - calcSha1 - failed to calculate sha1 for xz:5.2.5
java.io.FileNotFoundException: /opt/conda/miniconda/pkgs/xz-5.2.5-h7b6447c_0 (Is a directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:212)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:154)
at org.whitesource.agent.hash.HashCalculator.calculateHash(HashCalculator.java:172)
at org.whitesource.agent.hash.HashCalculator.calculateSHA1(HashCalculator.java:161)
at org.whitesource.agent.DependencyCalculator.calculateSHA1(DependencyCalculator.java:140)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.calcSha1(CondaDependencyResolver.java:379)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.createDepInfo(CondaDependencyResolver.java:370)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.createAllDepInfos(CondaDependencyResolver.java:343)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.buildCondaTree(CondaDependencyResolver.java:274)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.collect(CondaDependencyResolver.java:155)
at org.whitesource.agent.dependency.resolver.conda.CondaDependencyResolver.resolveDependencies(CondaDependencyResolver.java:126)
at org.whitesource.agent.dependency.resolver.DependencyResolutionService.resolveDependenciesOfResolver(DependencyResolutionService.java:382)
at org.whitesource.agent.dependency.resolver.DependencyResolutionService.resolveDependencies(DependencyResolutionService.java:207)
at org.whitesource.agent.FileSystemScanner.createProjects(FileSystemScanner.java:255)
at org.whitesource.fs.scanOrigins.GeneralScanOrigin.getProjects(GeneralScanOrigin.java:189)
at org.whitesource.fs.scanOrigins.GeneralScanOrigin.scan(GeneralScanOrigin.java:98)
at org.whitesource.fs.scanOrigins.ScanOrigin.runOriginScan(ScanOrigin.java:36)
at org.whitesource.fs.FileSystemAgent.createProjects(FileSystemAgent.java:176)
at org.whitesource.fs.Main.scanProjects(Main.java:116)
at org.whitesource.fs.Main.main(Main.java:90)
Seems to me that "/opt/conda/miniconda/pkgs/xz-5.2.5-h7b6447c_0" is expected to be a file as per
Hi @yashali, tickets can be opened in the support portal. If you don't currently have an account to log into the support portal, kindly reach out to one of your admins.
I have set "conda.resolveDependencies=true" for whitesource scan with Unified Agent and also have this environment.yml in my repository:
I get this error while uploading the scan results to server:
Looks like following is the reason why the above error occurs :
Seems to me that "/opt/conda/miniconda/pkgs/xz-5.2.5-h7b6447c_0" is expected to be a file as per
agents/wss-agent-hash-calculator/src/main/java/org/whitesource/agent/hash/HashCalculator.java
Line 172 in af982a6
Do we need to handle such a case? Or am I missing something?
The text was updated successfully, but these errors were encountered: