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

sca-codeinsight-reports-cyclonedx fails with Revenera SCA - Code Insight 2024 R2 (7.28.0 Build 97) #6

Open
h5b opened this issue Nov 26, 2024 · 0 comments

Comments

@h5b
Copy link

h5b commented Nov 26, 2024

Install location Code Insight version
/opt/Flexera/codeInsight/custom_report_scripts Code Insight Version: ode Insight 2024 R2 (7.28.0 Build 97)

Using sca-codeinsight-reports-cyclonedx report plugin with Revenera SCA - Code Insight 2024 R2 (7.28.0 Build 97) fails with missing files according to logfile catalina.out:

024-11-26 14:36:07 +0100 ERROR [TaskExecutorThread-1687] [SchedulerDriverImpl] Error executing task: com.palamida.datamodel.model.SchedulerTaskImpl@3ee647ff[task ID=1687,server ID=1,type=Report - SBOM Report - SPDX,description=Custom report of project <PROJECT>,state=active,context=#Tue Nov 26 14:36:07 CET 2024 
includeChildProjects=True
includeFileDetails=True
reportId=8
includeNonRuntimeInventory=False
includeUnassociatedFiles=False
,parent=,message=<null>]
com.palamida.datamodel.ScheduleException: Error while executing the custom scriptCannot run program "/opt/Flexera/codeInsight/custom_report_scripts/sca-codeinsight-reports-spdx/create_report.sh": error=2, No such file or directory
        at com.palamida.appsec.tasks.CustomReportTaskExecutor.execute(CustomReportTaskExecutor.java:46) ~[appsec-core-7.28.0-97.jar:?]
        at com.palamida.scheduler.SchedulerDriverImpl$TaskExecutorRunner.run(SchedulerDriverImpl.java:352) [scheduler-7.28.0-97.jar:?]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_422]
2024-11-26 14:36:07 +0100 INFO  [SchedulerDriver] [SchedulerDriverImpl] SchedulerDriver(1) Done waiting for active task to finish
2024-11-26 14:36:12 +0100 INFO  [http-nio-8080-exec-46] [SchedulerServiceImpl] Adding report generation task. Project Id: 108
2024-11-26 14:36:12 +0100 INFO  [http-nio-8080-exec-46] [SchedulerServiceImpl] Notifying server of scheduled task: server = Core Server, ID = 1
2024-11-26 14:36:12 +0100 INFO  [SchedulerDriver] [SchedulerDriverImpl] SchedulerDriver(1) Waiting for active task to finish
2024-11-26 14:36:12 +0100 INFO  [TaskExecutorThread-1688] [SchedulerDriverImpl] Starting task: com.palamida.datamodel.model.SchedulerTaskImpl@163d3a7f[task ID=1688,server ID=1,type=Report - Third Party Notices Report,description=Custom report of project <PROJECT>,state=active,context=#Tue Nov 26 14:36:12 CET 2024 
includeChildProjects=True
reportId=9
includeComponentVersions=True
,parent=,message=<null>]
2024-11-26 14:36:12 +0100 INFO  [TaskExecutorThread-1688] [CustomReportServiceImpl] Generating Custom Report for ProjectId :108 and otherProjectId :null started
2024-11-26 14:36:12 +0100 INFO  [TaskExecutorThread-1688] [UserServiceImpl] Created Jwt Token for user: a73651 with id: 132
2024-11-26 14:36:12 +0100 ERROR [TaskExecutorThread-1688] [CustomReportServiceImpl] Cannot run program "/opt/Flexera/codeInsight/custom_report_scripts/sca-codeinsight-reports-third-party-notices/create_report.sh": error=2, No such file or directory
2024-11-26 14:36:12 +0100 ERROR [TaskExecutorThread-1688] [CustomReportTaskExecutor] Custom Report for project 108 did not complete successfully
com.palamida.datamodel.ScheduleException: Error while executing the custom scriptCannot run program "/opt/Flexera/codeInsight/custom_report_scripts/sca-codeinsight-reports-third-party-notices/create_report.sh": error=2, No such file or directory
        at com.palamida.appsec.service.impl.CustomReportServiceImpl.executeScript(CustomReportServiceImpl.java:116) ~[appsec-core-7.28.0-97.jar:?]
        at com.palamida.appsec.service.impl.CustomReportServiceImpl.generateCustomReport(CustomReportServiceImpl.java:61) ~[appsec-core-7.28.0-97.jar:?]
        at com.palamida.appsec.service.impl.CustomReportServiceImpl$$FastClassBySpringCGLIB$$2fe3ca97.invoke(<generated>) ~[appsec-core-7.28.0-97.jar:?]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283) ~[spring-tx-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at com.palamida.datamodel.util.RetryTransactionProxyFactoryBean$RetryInterceptor.doProceed(RetryTransactionProxyFactoryBean.java:64) ~[datamodel-7.28.0-97.jar:?]
        at com.palamida.datamodel.util.RetryTransactionProxyFactoryBean$RetryInterceptor.invoke(RetryTransactionProxyFactoryBean.java:41) ~[datamodel-7.28.0-97.jar:?]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671) ~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at com.palamida.appsec.service.impl.CustomReportServiceImpl$$EnhancerBySpringCGLIB$$813e72d0.generateCustomReport(<generated>) ~[appsec-core-7.28.0-97.jar:?]
        at com.palamida.appsec.tasks.CustomReportTaskExecutor.execute(CustomReportTaskExecutor.java:43) [appsec-core-7.28.0-97.jar:?]
        at com.palamida.scheduler.SchedulerDriverImpl$TaskExecutorRunner.run(SchedulerDriverImpl.java:352) [scheduler-7.28.0-97.jar:?]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_422]
2024-11-26 14:36:12 +0100 ERROR [TaskExecutorThread-1688] [SchedulerDriverImpl] Error executing task: com.palamida.datamodel.model.SchedulerTaskImpl@163d3a7f[task ID=1688,server ID=1,type=Report - Third Party Notices Report,description=Custom report of project <PROJECT>,state=active,context=#Tue Nov 26 14:36:12 CET 2024 
includeChildProjects=True
reportId=9
includeComponentVersions=True
,parent=,message=<null>]
com.palamida.datamodel.ScheduleException: Error while executing the custom scriptCannot run program "/opt/Flexera/codeInsight/custom_report_scripts/sca-codeinsight-reports-third-party-notices/create_report.sh": error=2, No such file or directory
        at com.palamida.appsec.tasks.CustomReportTaskExecutor.execute(CustomReportTaskExecutor.java:46) ~[appsec-core-7.28.0-97.jar:?]
        at com.palamida.scheduler.SchedulerDriverImpl$TaskExecutorRunner.run(SchedulerDriverImpl.java:352) [scheduler-7.28.0-97.jar:?]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_422]
2024-11-26 14:36:12 +0100 INFO  [SchedulerDriver] [SchedulerDriverImpl] SchedulerDriver(1) Done waiting for active task to finish
2024-11-26 14:36:55 +0100 DEBUG [http-nio-8080-exec-55] [FileSystem] In getScanLogs method of the Scan server to retrieve the scanner logs
@h5b h5b changed the title Fails with Revenera SCA - Code Insight 2024 R2 (7.28.0 Build 97) sca-codeinsight-reports-cyclonedx fails with Revenera SCA - Code Insight 2024 R2 (7.28.0 Build 97) Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant