CAST HIGHLIGHT - CLI - perl: out: ERROR : unable to open folder

While running a code scan with the Highlight code scanner CLI got the error perl: out: ERROR: unable to open 

 

INFO perl: out: ERROR: unable to open C:/Source_path/ABC.dll
INFO perl: out: Can't use an undefined value as a SCALAR reference at C:\highlightcodescan_d09a7949-d043-4058-b56c-103b0da04686\5.7.19\perl\technos/../technos/config.pm line 693.
INFO perl: out: Running Perl Discoverer

ERROR AnalysisPipeline: Discover failed
java.lang.Exception: Discovery child process failed with exit status 2
at com.castsoftware.highlight.discover.Discover.process(Discover.java:67)
at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:255)
at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:96)
at com.castsoftware.highlight.CommandLine.run(CommandLine.java:596)
at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:14)
ERROR console: (3) Command Line techno discovery error

 

Workaround/ Action Plan

The issue occurs because of access rights to the source folder.

To solve:

  1. Check If the folder is in use by another user.
  2. Run CLI with admin rights.
  3. Check if you can rename the folder.
  4. Rerun the CLI scan,
  5. If you still see the error don't hesitate to contact CAST Support.

 

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

 

Ticket

49842

Have more questions? Submit a request

Comments

Powered by Zendesk