CAST HIGHLIGHT - CLI - Error code 3 - Command Line techno discovery error

While running the highlight scan for an application it is giving (3) Command Line techno discovery error.

 

Action Plan

  1. Make sure you are using the latest CLI/Code Reader version
  2. Check if it is a Perl installation issue.
    1. One potential indication of this is if the following line is present in the HLAutomation.log.  See also below for more information:
      INFO perl: error: Cannot run program ""C:\Program Files\CAST\HighlightAgent\strawberry\perl\bin\perl.exe"": CreateProcess error=2, The system cannot find the file specified .  OR

      Perl Command:null
      Perl analyzer dir:E:\softwares\Highlight-Automation-Command\perl
      Analysing...
      Start discovering
      Discovery child process failed with exit status -1

      This errors indicates that Perl is not found or a compatible version of Perl is not installed or the Perl installation directory is not specified correctly in the command line.
              • Check whether perl directory is called in the command line.

              • Check the environment variables where the Perl path is pointed to - it should be pointed to the right Perl path.

              • To install a compatible version of Perl, do one of the following: For Windows Install the Code reader and get perl from there. Or  Install a compatible version of Perl with the appropriate modules and then use the --perlInstallDir flag. Please refer Highlight Automated Code Scan (Command Line) for other OS's. For the pre-requistes to install code reader please check https://doc.casthighlight.com/codereader/readm
              • To check whether the path or the directory where Perl is installed is mentioned correctly ie perlInstallDir is specified correctly check the command line.

                Below is the default path: 

                --perlInstallDir (optional) Directory of perl installation (default: C:\Users\{user}\AppData\Local\CAST Highlight Code Reader\strawberry\perl).

                Please refer Highlight Automated Code Scan (Command Line) .
              • Check if there is any issue in the syntax used.

                Ensure that the path to perl is in "", as there are some spaces in the path, the value should be surrounded by ""
                E.g., --perlInstallDir "E:\Software\CAST Highlight Code Reader\strawberry\perl" Please refer CAST HIGHLIGHT - CLI - [error]Arrêt de PowerShell. Code de sortie : '1'.

              • Check if the intended paths for --perlInstallDir and --analyzerDir  are set correctly.
                --perlInstallDir
                is the location of the perl installation
                --analyzerDir
                is for the location of the CLI perl analyzers
                The code reader installs perl in the strawberry perl directory and the CLI directory holds the CLI perl analyzers. Please refer Highlight Automated Code Scan (Command Line).
  3. Check if it is a network issue.
      1. Check whether the machine from where the command line is running can access the remote files. 
      2. Check the length of network path. Use a shorter path (<255 characters) to see if it solves the issue
  4. Check if there are any permission issues.
      1. If there are errors like perl: out: ERROR: unable to open please refer CAST HIGHLIGHT - CLI - perl: out: ERROR : unable to open folder
  5. Check the file path size. Check if there are errors like INFO perl: out: ERROR : unable to open, INFO perl: out: ERROR when checking size and ERROR AnalysisPipeline: Discover failed in the HLAutomation.log available at the workingdir of the scan. To solve this either reduce the length of the local file path  or reconfigure the server to allow file names over 260 characters NB : Windows long paths are now supported (requires Perl/CLI upgrade).  Support for Windows long path is enabled from version 5.6.7

Tickets

26277, 43072, 42816, 43168, 48243, 47499, 49800, 47558, 48833, 51019, 49185

 

 

Related Articles

CAST HIGHLIGHT - CLI - Error Codes

CAST HIGHLIGHT - CLI - Error code 2 - Command Line options parse error

CAST HIGHLIGHT - CLI - Error code 4 - Command Line analysis error

CAST HIGHLIGHT - CLI - Error code 5 - Command Line result upload error

CAST HIGHLIGHT - CLI - Error code 6 - Command Line source dir or output dir validation error

CAST HIGHLIGHT - CLI - Error code 9 - Command Line unziping jars or zip error

CAST HIGHLIGHT - Code Reader - ERROR console: (3) Command Line techno discovery error

CAST HIGHLIGHT - CLI - Docker - Results Upload - Upload failed with code 5 when using Docker

CAST HIGHLIGHT - CLI - ERROR: Failed to fetch company with id when using  --basicAuth

CAST HIGHLIGHT - CLI - Scan fails for an application with an error Failed to fetch company with id XXXSTDERR

CAST HIGHLIGHT - CLI - ERROR Failed to upload submission for application result id='XXXXXX' with company [name='XXX',id='XXXX'] and application [name='XXX',id=XXXXX] message: 400 highlight.server.client.campaignApplication.update.NoAnalysis

CAST HIGHLIGHT - Results Upload - CLI - UTF-8 "\xE7" does not map to Unicode at perl/FileList.pm line xx

Highlight Automated Code Scan (Command Line)

CAST HIGHLIGHT - Code reader - Perl: error: Cannot run program "CAST Highlight Code Reader\strawberry\perl\bin\perl.exe"": CreateProcess error=2, The system cannot find the file specified

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk