KB Article #178491
sysupgrade export throws this error: upgrade/scripts/sysupgrade.py", line 24, in <module> sys.exit(task.run())"
Problem
During a single-node export I've got this error:
[r@merlot ~]$ app/api752migrfromapi731bt2/apigateway/upgrade/bin/
README.txt sysupgrade sysupgrade.bat sysupgrade.xml
[r@merlot ~]$ app/api752migrfromapi731bt2/apigateway/upgrade/bin/sysupgrade export --old_install_dir /home/r/app/api731bt2/apigateway/
Traceback (most recent call last):
File "/home/r/app/api752migrfromapi731bt2/apigateway/upgrade/scripts/sysupgrade.py", line 24, in <module>
sys.exit(task.run())
File "/home/r/app/api752migrfromapi731bt2/apigateway/upgrade/scripts/sysupgrade.py", line 24, in <module>
sys.exit(task.run())
File "/home/r/app/api752migrfromapi731bt2/apigateway/upgrade/scripts/sysupgrade_control.py", line 62, in run
elif cmd == "export" and not self.__prepareToStartExport():
File "/home/r/app/api752migrfromapi731bt2/apigateway/upgrade/scripts/sysupgrade_control.py", line 147, in _Control__prepareToStartExport
self.__backupOriginalConfig()
File "/home/r/app/api752migrfromapi731bt2/apigateway/upgrade/scripts/sysupgrade_control.py", line 296, in _Control__backupOriginalConfig
shutil.copytree(srcPath, destPath)
File "/home/r/app/api752migrfromapi731bt2/apigateway/system/lib/jython/Lib/shutil.py", line 114, in copytree
names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/conf'
[r@merlot ~]$ app/api752migrfromapi731bt2/apigateway/upgrade/bin/sysupgrade export --old_install_dir /home/r/app/api731bt2/apigateway/
Resolution
You have to change directory to /upgrade/bin folder:
[r@merlot bin]$ ./sysupgrade export --old_install_dir /home/r/app/api731bt2/apigateway/Installing export component to old system
-----------------------------------------
OK
=====================================
API Gateway System Upgrade - Export
=====================================
Output directory: /home/r/app/api752migrfromapi731bt2/apigateway/upgrade/bin/out
Upgrading from: 7.3.1 to 7.5.2
This is a single node system.
================
Exporting data
================
Please enter Admin Node Manager user name [admin]: admin
Please enter Admin Node Manager password: ********
Please confirm Admin Node Manager password: ********
Exporting data from old system. This can take some time. Please wait...