KB Article #177706

Sysupgrade fails when /temp is mounted as noexec

Problem

-- When sysupgrade is run on a system where /temp is mounted as noexec, it may fail with an exception like the following:


ERROR unkown exception
ERROR Exception from: sysupgrade. Description Traceback (most recent call last):
File "/Axway-7.3.1/apigateway/upgrade/scripts/sysupgrade_utils.py", line 255 in wrap
result = fn()
File "/Axway-7.3.1/apigateway/upgrade/scripts/sysupgrade_export.py", line 36, in _Export__run
userInput.getCredentialsFromPipe()
File "/Axway-7.3.1/apigateway/upgrade/scripts/sysupgrade_userinput.py", line 60, in getCredentialsFromPipe
credentials = raw_input("")
EOFError: raw_input()

Resolution

* You can either temporarily remount /temp without the noexec option to complete the upgrade process, or you can add a VMArg line to sysupgrade.xml, -Djava.io.tmpdir=/some/other/tempdir where /some/other/tempdir is a path to a directory that is not on a noexec partition and which we can use to write and execute temporary scripts.