none
Return code for binary robocopy is not 0. This may indicate that binary didn't execute successfully. RRS feed

  • Question

  • Hello,

    I'm having the following error message in the fast search set up log:

    Return code for binary robocopy is not 0. This may indicate that binary didn't execute successfully

    6/15/2012 10:42:49 AM Info ChangeDeployment - Database connection string - jdbc:sqlserver://xxxx.xxxxx.xxxx.xxx\;DatabaseName=FASTSearchAdminDatabase, Instance ID - FASTSearch-H8B9H7E5
    6/15/2012 10:42:49 AM Verbose ReplaceTokensInDeploymentProfile - Copying input deployment file C:\FASTSearch\Deploy\deployment.xml as C:\FASTSearch\etc\config_data\deployment\deployment.xml.
    6/15/2012 10:42:49 AM Verbose InstallAction - Successfully updated deployment.xml
    6/15/2012 10:42:49 AM Verbose InstallAction - Copying default templates
    6/15/2012 10:42:49 AM Verbose CopyDefaultTemplate - Copying default templates ...
    6/15/2012 10:42:49 AM Verbose Utility.Execute - Starting process robocopy with working directory - , write output - False, file - , user - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - -------------------------------------------------------------------------------
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    ROBOCOPY     ::     Robust File Copy for Windows                              
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - -------------------------------------------------------------------------------
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -   Started : Fri Jun 15 10:42:49 2012
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    Source : C:\FASTSearch\META\config\profiles\default\static\etc\config_data\QRServer\clusterfiles\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -      Dest : C:\FASTSearch\etc\config_data\QRServer\webcluster\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -     Files : *.*
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	    
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -   Options : *.* /S /E /COPY:DAT /R:1000000 /W:30 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - ------------------------------------------------------------------------------
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	                   1	C:\FASTSearch\META\config\profiles\default\static\etc\config_data\QRServer\clusterfiles\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	*EXTRA Dir        -1	C:\FASTSearch\etc\config_data\QRServer\webcluster\dp.00000000.000000000\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	*EXTRA Dir        -1	C:\FASTSearch\etc\config_data\QRServer\webcluster\procserver\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	*EXTRA Dir        -1	C:\FASTSearch\etc\config_data\QRServer\webcluster\qrserver\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	*EXTRA Dir        -1	C:\FASTSearch\etc\config_data\QRServer\webcluster\templates\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	    Older     		    2326	preload
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -   0%  
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 100%  
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	                   0	C:\FASTSearch\META\config\profiles\default\static\etc\config_data\QRServer\clusterfiles\etc\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	                   0	C:\FASTSearch\META\config\profiles\default\static\etc\config_data\QRServer\clusterfiles\etc\qrserver\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		     756	fieldspec.xml
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		     868	ManagedPropertyBoosts.xml
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		      26	reload_configfiles
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		      38	resultfield.map
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		     455	sources.xml
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	                   2	C:\FASTSearch\META\config\profiles\default\static\etc\config_data\QRServer\clusterfiles\etc\qrserver\tango\
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 	  *EXTRA File 		    7864	configuration.attributes.xml
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - ------------------------------------------------------------------------------
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -                Total    Copied   Skipped  Mismatch    FAILED    Extras
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -     Dirs :         4         0         4         0         0         4
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    Files :         3         1         2         0         0         6
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    Bytes :     2.9 k     2.2 k       680         0         0     9.7 k
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    Times :   0:00:00   0:00:00                       0:00:00   0:00:00
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output - 
    6/15/2012 10:42:49 AM Verbose Utility.Execute - robocopy Output -    Ended : Fri Jun 15 10:42:49 2012
    6/15/2012 10:42:49 AM Warning Utility.Execute - Return code for binary robocopy is not 0. This may indicate that binary didn't execute successfully
    6/15/2012 10:42:49 AM Verbose Utility.Execute - Finished executing robocopy

    I can log in remotely with hte user being used to the SQL 2008 server. I manually created a db on that server being logged into it.

    I really don't see what I am doing wrong, and would greatly appreciate your help,

    thank you


    Olivier

    Friday, June 15, 2012 4:56 PM

All replies

  • It's a shame the result code was not written out as well, as that would point us in the right direction.

    From the always amazing ss64.com, Robocopy Exit Codes:

        Hex   Decimal  Meaning if set
        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.
    
        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×04   4       Some Mismatched files or directories were detected.
                       Examine the output log. Some housekeeping may be needed.
    
        0×02   2       Some Extra files or directories were detected.
                       Examine the output log for details. 
    
        0×01   1       One or more files were copied successfully (that is, new files have arrived).
    
        0×00   0       No errors occurred, and no copying was done.
                       The source and destination directory trees are completely synchronized. 

    As you can see, error code 0x01 (1) indicates a file was copied, which could be an expected result given your log says 1 file was copied.

    Error 0x08 (8) could also be valid -- some files did not copy, though the log shows no attempt to retry failed files when your robocopy parameters indicate 1000000 retries with a 30 second wait between attempts. 

    Given this information, I would suspect the error code returned was 1, which is OK. The logging for Utility.Execute displays the error "the return code is not 0" as it assumes anything other than 0 indicates failure (as is usually the practice). In Robocopy's case, a return value of 0 means it did nothing at all so you would expect this error in your logs any time Robocopy actually did what you wanted it to do (that is, copy some files).


    Jason Warren
    Infrastructure Specialist

    Friday, June 15, 2012 6:05 PM
  • Thank you Jason,

    I would be glad to provide you with any information you may wish. Please let me know I will post it.

    May I aks where hte "result code was not written out" is located?

    thank you,


    Olivier


    • Edited by olivier20 Friday, June 15, 2012 6:17 PM
    Friday, June 15, 2012 6:17 PM
  • What I meant is that it is unfortunate that the log did not capture and record the specific error code that was returned by Robocopy as it would prove what happened without doubt.

    I don't believe there is any more information needed. It looks as though Robocopy copied a file and returned a value of 1. SharePoint interpreted the value of 1 as an error (hence the Warning) when a value of 1 is expected if Robocopy copies a file.


    Jason Warren
    Infrastructure Specialist

    Friday, June 15, 2012 6:39 PM
  • thank you,

    I was looking through hte huge log file trying to find what went wrong with my post fast search for sharepooint installation wizard, that was about all I could find.


    Olivier

    Friday, June 15, 2012 7:04 PM