You may experience an error while upgrading CA Directory via automation script while it works just fine when you perform a manual upgrade. i.e. executing 'dxsetup.exe' from command prompt.
1. Either get error message pop up-
Can't create output file:
C:\.\..\dxserver\dxagent\python-embed-amd64\lib\site-package\win32\servicemanager.pyd
2. Or the dxagent process fails to terminate after the install is done until manually killed. This can be seen in Windows Task Manager.
Reviewing the log, you may see:
Python could not import the service's module
Traceback (most recent call last):
File "C:\Program Files\CA\Directory\dxserver\dxagent\DxagentService.py", line 23, in <module>
import win32serviceutil
File "C:\Program Files\CA\Directory\dxserver\dxagent\python-embed-amd64\lib\site-packages\win32\lib\win32serviceutil.py", line 9, in <module>
import win32service, win32api, win32con, winerror
ImportError: No module named 'win32service'
Release : 12.6, 14.x
Component : CA Directory
The DXAgent in the Environment might be corrupted.
The DXAgent in your Environment might be corrupted. To update the DXAgent files, follow the steps below to get them updated.
Now, manually extract the missing files from the DATA1.cab in the installer.
The Data1.cab contains a file which starts with ca_dxagent_static.exe (something like ca_dxagent_static.exe.B5FA3F68_D6E0_4F16_9C6F_B0C63D712195). The file holds the dxagent related files.
1)Take a backup of the dxagent folder (%DXHOME%\dxagent).
2)Close applications like Event Viewer if they are running.
3)From the Data1.cab file extract the file with the name that starts with ca_dxagent_static.exe (something like ca_dxagent_static.exe.B5FA3F68_D6E0_4F16_9C6F_B0C63D712195).
4)Create a new folder and copy the file ca_dxagent_static.exe.B5FA3F68_D6E0_4F16_9C6F_B0C63D712195 in that folder
5)Rename the file ca_dxagent_static.exe.B5FA3F68_D6E0_4F16_9C6F_B0C63D712195 to ca_dxagent_static.exe
6)Open a command prompt and cd to the created folder
7) Run the below command:
ca_dxagent_static.exe /auto .
8)The above command creates the needed dxagent files.
9)Copy all the files in the current folder to the dxagent folder (%DXHOME/dxagent)
Note: Some files need to be replaced. Select yes to replace the files.
10)All the new Directory 14.1 SP7 DxAgent files will be copied to the dxagent path now.
11)Copy the dxagent/dxagent_config.py file, which is stored as a backup (the file is present in the dxagent folder, which we took as a backup in step 1).
12)Go to the %DXHOME\dxagent\doc\fonts folder
13)Run the below command
ca-dxagent-font-static.exe /auto .
14)The above command creates the needed font files
15)Now start the DXAgent service and test the functionality
Note: If there is any issue with the certificates, run the setup_dxagent.bat file to create new certificates.