While running the typescript analysis using highlight CLI it fails with following error
$ sudo docker run -ti --rm --user 1000 -v /data/devops-jenkins-slave_home/workspace/be_CI/src:/data/app docker.io/casthighlight/hl-agent-cli:latest --sourceDir /data/app --workingDir /tmp --applicationId 00
928 --companyId 0000 --snapshotLabel admin1.0.43-0000 --basicAuth ***** --serverUrl https://rpa.casthighlight.com/ --technologies TypeScript
User: uid=1000 gid=0(root)
+ java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -jar /opt/hlt/HighlightAutomation.jar --analyzerDir /opt/hlt/perl --sourceDir /data/app --workingDir /tmp --applicationId 0000 --companyId 00 --snapshotLabel admin1.0.43-0000--basicAuth ***** --serverUrl https://rpa.casthighlight.com/ --technologies TypeScript
Command Line version : 5.1.22-RELEASE
Preparing analysis...
Preparation stage completed.
Analysing...
Start discovering
Start analyzing
Processing technos: TypeScript
Processing: TypeScript
Analysis child process failed with exit status 3
[ERR4] HighlightAutomation --analyzerDir /opt/hlt/perl --sourceDir /data/app --workingDir /tmp --applicationId 0000 --companyId 0000 --snapshotLabel admin:1.0.43-0000 --basicAuth ***** --serverUrl https://rpa.casthighlight.com/ --technologies TypeScript failed with code 4
java.lang.Exception: Analysis child process failed with exit status 3
at com.castsoftware.highlight.analyze.Analyze.process(Analyze.java:198)
at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:116)
at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:37)
at com.castsoftware.highlight.CommandLine.run(CommandLine.java:254)
at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:11)
Workaround or Action Plan
As a work around you can do the following
1. The workingDir should be configured anywhere outside of /tmp
2. The container with the scanner should be started as root user
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Zendesk Ticket Number
23421
Comments