Quantcast
Channel: VMware Communities : Discussion List - Site Recovery Manager
Viewing all articles
Browse latest Browse all 3691

Timeout issue during Create file from Resource

$
0
0

Hello!

 

I hope you can help me to find the solution related my issue.

 

Details:

     - I have a file (as a Resource) what I would like to copy form the vRO to the guest OS (Windows)

     - filesize is 400kb

     - error message: "java.net.SocketTimeoutException: connect timed out"

 

The code (I have bolded the mentioned section):

// Copy file to VM

System.log("Copying file to " + vm.name + " as " + targetFile);

var fileManager = guestOperationsManager.fileManager;

var attr = new VcGuestFileAttributes();

file = new File(tempLocalFile);

var uri = fileManager.initiateFileTransferToGuest(vm , guestAuth ,targetFile, attr, file.length, true);

   System.log("putFile URI is " + uri);

if (fileManager.putFile(tempLocalFile, uri)) {

    System.log("File successfully created on VM");

} else {

    System.log("Error creating file on VM");

}

 

The timeout is 30sec and I couldn't find any relevant information regarding where can I increase this.

 

My question is that where can I increase this "counter" OR how can I create a script or how can I modify this code for that the OUT will be VC:Task to vim3WaitTaskEnd and not to boolean?

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 3691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>