Skip to main content

Hello,

I use a post-job script and I got an error code … terminated with exit code 11”  Is there a table with all the exit code definitions?

 

Thanks

Dieter

 

 

Hello,

I use a post-job script and I got an error code … terminated with exit code 11”  Is there a table with all the exit code definitions?

 

Thanks

Dieter

 

 

Hi, it’s the script returning the error code so within your script there should be an error code definition there. Is this a script you wrote yourself or got from the internet for example?


Normally the script will give the return code. Then you should find the meaning in your OS manuals.


OK. Exit Code 11 is an exit code from the script and no issue by Veeam, isn’t it?


OK. Exit Code 11 is an exit code from the script and no issue by Veeam, isn’t it?

Correct, when I write scripts I tend to store a value for my errors and default it to zero. If I encounter an error I change the error code value and exit my application, returning that variable.

 

If this script is one provided by Veeam then they will have definitions for these codes. The only one I can think of that meets this criteria is their SQL Server checker script.

 

Are you using a Veeam supplied script or a third party one?


Thank you very much. I will check the manual for robocopy

 

Best regards

Dieter

 


The return code from Robocopy is a bitmap, defined as follows:

Hex Decimal Meaning if set
0×00 0

No errors occurred, and no copying was done.

The source and destination directory trees are completely synchronized.

0×01 1 One or more files were copied successfully (that is, new files have arrived).
0×02 2

Some Extra files or directories were detected. No files were copied.

Examine the output log for details.

0×04 4

Some Mismatched files or directories were detected.

Examine the output log. Housekeeping might be required.

0×08 8

Some files or directories could not be copied (copy errors occurred and the retry limit was exceeded).

Check these errors further.

0×10 16 Serious error. Robocopy did not copy any files. Either a usage error or an error due to insufficient access privileges on the source or destination directories.

 

These can be combined, giving a few extra exit codes:

Hex Decimal Meaning if set
0x03 3

(2+1) Some files were copied. Additional files were present.

No failure was encountered.

0x05 5

(4+1) Some files were copied. Some files were mismatched.

No failure was encountered.

0x06 6

(4+2) Additional files and mismatched files exist.

No files were copied and no failures were encountered.

This means that the files already exist in the destination directory

0x07 7 Files were copied, a file mismatch was present, and additional files were present.

 

With all codes 8 and higher an error has occured

 11 should than be 8+2+1 - so, some files or directories could not be copied...
 


Thank you very much. That will help.

Best regards


Don’t forget to mark @JMeixner ‘s answer as an answer for the next person that needs help!


… Learned something new again. Thanks!


Comment