Skip to main content
1-Visitor
August 27, 2020
Question

Stuck on resync

  • August 27, 2020
  • 1 reply
  • 1121 views

I have created a automation using C# that call out this function. the code is suppose to resync the sandboxpath provided.

public bool bResyncSandbox(string sandboxPath, ref string err)
        {
            string sOutput = null; //For debug
            bool result = false;
            if (this.Connection)
            {

string sCommandText = "si resync " +
                                      " --hostname=" + this.Server +
                                      " --port=" + this.Port +
                                      " --user=" + this.Username +
                                      " --password=" + this.Password +
                                      " --nooverwriteUnchanged " +
                                      "--yes " +
                                      "--confirm " +
                                      "--sandbox=" +
                                      sandboxPath + "\\project.pj";

 if (0 == iProcessHandler("cmd.exe", "/c " + sCommandText, ref sOutput, ref err))
                {
                    result = true;
                }
            }
            else
            {
                //Error Handling
            }
            return result;

 

the result of sCommandText is as follow (port ,username and password have been star out )"si resync  --hostname=ims-id --port=**** --user=******\t --password=******* --nooverwriteUnchanged --yes --confirm --sandbox=C:\\Users\\admin\\Desktop\\ACGC\\Sandbox\\AC\\project.pj"

 

the issues is that the code when called out get stuck on the command  "if (0 == iProcessHandler("cmd.exe", "/c " + sCommandText, ref sOutput, ref err))" and does not return back to the program at all (for an indefinite amount of time) manual resync on IMS for the sandbox folder work perfectly fine and also if the user manually type into a cmd "si resync  --hostname=ims-id --port=**** --user=****** --password=********* --nooverwriteUnchanged --yes --sandbox=C:\Users\admin\Desktop\ACGC\Sandbox\GC\project.pj" the resync work too. I have no idea what the issue here. Please Help 🙂

    1 reply

    11-Garnet
    September 4, 2020

    Hi @boonhuat 

     

    I suspect some CLI operation is running at background and its waiting for the input. Integrity will not process next command, until the previous obtains input. To make sure this,

     

    - Restart Integrity (make sure it ends in task manager) and give a try

    - Check whether any si, im or rq command is running in task manager

    - Try executing the command manually in command prompt to make sure command formation is perfect.

     

    Regards,

    Sathish Kumar Kamaraj