Wednesday, December 4, 2013

Error: "-26668: Could not update controller sync file" during a load test in load runner

When running a script under the Controller and "Snapshot on error" is selected or when running in VuGen and the Run-Time Browser is opened, replay needs to write a "sync" file for the application (Vugen/Controller). The file should be called "ctrlsink.dat" and placed in the scenario result directory. The error occurs when the opening of the sync file using fopen(filename, "w") fails.The solution is

Verify the disk space and permissions

1. Verify if there is enough disk space is available. (Check the environment variable "temp" location, better to have it other than the default user temp location like a temp folder on D-drive or C-drive)
2. Verify if the user has enough permissions to open a file in the specified directory.
3. If specified directory is on a remote machine, check if there was a network/remote machine failure

Note: If you are using LR8.0 or 8.1 make sure you have installed all your feature packs or patches.