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

User is getting the error "Source directory does not exists" along with (6) Command Line source validation error .

 

Action Plan

  1. Check the command to find out if all the parameters passed are correct
        1. Modify the command to point to the proper source directory.  This must exist and be where the current source resides.  It should be separate from the working directory.
        2. Check the command whether the Directory of Perl installation ie 
          perlInstallDir is mentioned correctly. The default is:  C:\Program Files\Cast\HighlightAgent\perl .
        3. If an error "Directory containing perl script for analyzer should exist" is thrown  then follow CAST HIGHLIGHT - CLI - Running the HighlightAutomation.jar results in error "Directory containing perl script for analyzer should exist"  This happens when HighlightAutomation.jar is run from outside the directory which has the jar.
        4. --workingDir is the directory where the scan results and analysis log files are stored in a Highlight created  temporary folder ("HLTemporary").  This should be a unique directory for each analysis to store the analysis results
        5. If the command returns either "syntax of the command is incorrect " or "argument cannot be parsed", then please re-verify your command syntax and arguments and correct as needed.
  2. Use the latest version of the CLI. As the platform evolves (new features, new API endpoints, etc.) are added, the command line also uses some of these functionalities. 

 

Ticket

43479

Related Pages

CAST HIGHLIGHT - CLI - Error Codes

CAST HIGHLIGHT - CLI - Error code 3 - Command Line techno discovery 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 9 - Command Line unziping jars or zip 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)

 

Have more questions? Submit a request

Comments

Powered by Zendesk