Patch install error copying & caxcgsvr.exe "cannot access the file" XCOM for Windows
search cancel

Patch install error copying & caxcgsvr.exe "cannot access the file" XCOM for Windows

book

Article ID: 245126

calendar_today

Updated On:

Products

XCOM Data Transport - Windows

Issue/Introduction

XCOM for Windows patch LU06212 install fails with "An error occurred copying one or more of the CA XCOM Data Transport system files"


Current patch level is LU05925 i.e. version:
CA XCOM Data Transport r11.6 22050 SP03 64bit for Windows Family (CPIC & TCP/IP)

From the %TEMP%\xcompatchinstaller.log file:

Line #26:cmd /c copy "C:\Program Files\CA\XCOM\Maint64\Patch\\caxcgsvr.exe" "C:\Program Files\CA\XCOM\\caxcgsvr.exe" /y
        0 file(s) copied.
The process cannot access the file because it is being used by another process.
...
Line #26:cmd /c copy "C:\Program Files\CA\XCOM\Maint64\Work\\caxcgsvr.exe" "C:\Program Files\CA\XCOM\\caxcgsvr.exe" /y
        0 file(s) copied.
The process cannot access the file because it is being used by another process.
...
{07/01/2022-14:16:47}An error occured while copying one or more of the CA XCOM Data Transport system files. Please refer to C:\Users\USERNAME\AppData\Local\Temp\2\xcompatchinstaller.log for details on the error(s). Maintenance installation will be terminated, correct the error and re-run the maintenance installation.

Ensured XCOM_HOME environment variable is set.
After multiple failures prior to running the patch have:
Stopped and disabled the XCOMD Scheduler Service, queue is clear.
Stopped and disable the Network List Service and Network Location Awareness service.
Restarted server and run these checks:
netstat -ano |findstr ":804"     - none of the XCOM ports are active
tasklist | findstr /I "caxcgsvr"  - nothing displays
tasklist | findstr /I "xcom"        - nothing displays 

What could be causing the problem?

Environment

XCOM™ Data Transport® for Windows

Resolution

There have been previously instances reported where caxcgsvr.exe remains when the XCOMD service is stopped and causes a similar patch install problem but that is easily explained by the process caxcgsvr.exe existing and running so it could be stopped to resolve the problem. In this scenario that situation does not apply.

Support tested the sequence customer is using i.e. install LU06212 on top of LU05925 ("r11.6 22050 SP03 64bit") on a Windows Server 2016 VM and encountered no problems. So it sounds like some environment specific problem e.g. perhaps something like anti-virus software could be locking the file caxcgsvr.exe.

The root cause of the problem was not found, but customer used successful workaround of renaming caxcgsvr.exe to caxcgsvr-old.exe before the patch install.

The successful xcompatchinstaller.log shows the expected error trying to backup the original caxcgsvr.exe to Work and Backup directories because the file does not exist i.e.

Error file not found line #26:\caxcgsvr.exe

However it also shows the new version of caxcgsvr.exe being copied in successfully for "Line #26" which previously failed i.e.

Line #26:cmd /c copy "C:\Program Files\CA\XCOM\Maint64\Patch\\caxcgsvr.exe" "C:\Program Files\CA\XCOM\\caxcgsvr.exe" /y
      1 file(s) copied.