SAP Knowledge Base Article - Preview

3692392 - Issue During SAP TREX Patch Upgrade to 710.84.0

Symptom

During SAP TREX Patch Upgrade to 710 Revision 84, getting the below error while running the update command.

Action: Updating installer tools -- failed. >>>ERROR:activateNewVersion failed: [WinError 183] Cannot create a file when that file already exists: '<driver>:\\usr\\sap\\TXP\\TRX03\\exe'
Exception description:
Traceback (most recent call last):
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\setuplib.py", line 7937, in activateNewVersion
    shutil.copytree(trex_new_link,os.path.join(instanceDirectory))
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\Python\lib\shutil.py", line 557, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\Python\lib\shutil.py", line 458, in _copytree
    os.makedirs(dst, exist_ok=dirs_exist_ok)
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\Python\lib\os.py", line 223, in makedirs
    mkdir(name, mode)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: '<driver>:\\usr\\sap\\TXP\\TRX03\\exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\\support\_install.py", line 3571, in main
    Updater().mainTrexAction()
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\\support\_install.py", line 2108, in mainTrexAction
    self.updateInstance(step)
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\\support\_install.py", line 2549, in updateInstance
    self.memberSarTrek.activateNewVersion()  # no problem on repeated call
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\setuplib.py", line 2363, in activateNewVersion
    activateNewVersion(self.ds.getSysExePlatformDirAbs(),self.ds.getInstanceExeDir(),self.logger)
  File "<driver>:\patch\tx_trex_content\TX_WINDOWS_X86_64\support\setuplib.py", line 7942, in activateNewVersion
    raise SetupException('activateNewVersion failed: '+str(e))
setuplib.SetupException: >>>ERROR:activateNewVersion failed: [WinError 183] Cannot create a file when that file already exists: '<driver>:\\usr\\sap\\TXP\\TRX03\\exe'


Read more...

Environment

Search and Classif. (TREX) 710

Product

SAP NetWeaver all versions

Keywords

delete executables, locked,  TREXAdminTool , KBA , BC-TRX-INS , TREX Installation , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.