Problem Description:


When upgrading infoworks to a newer version upgrade.sh script can fail with the following error trace


2020-06-15 16:15:05,520 - common.tasks.copy_binaries - DEBUG : 241 - Deleting /home/dev/infoworks/resources/nginx-portable

2020-06-15 16:15:05,715 - taskflow.engines.action_engine.completer - DEBUG : 215 - Applying resolver 'RevertAll(strategy=REVERT_ALL)' to resolve failure 'Failure: PermissionError: [Errno 13] Permission denied: '9'' of atom 'Copy Binaries==1.0'

2020-06-15 16:15:06,008 - taskflow.engines.action_engine.builder - DEBUG : 248 - Discarding failure 'Failure: PermissionError: [Errno 13] Permission denied: '9'' (in response to outcome 'executed') under completion units request during completion of atom 'Copy Binaries==1.0' (intention is to REVERT)

2020-06-15 16:15:06,032 - common.tasks.copy_version_files - INFO : 78 - Reverting: Copy Version Files

2020-06-15 16:15:06,033 - common.tasks.copy_version_files - INFO : 79 - [REVERT] Reverting licensing and version metadata

2020-06-15 16:15:06,033 - common.tasks.copy_version_files - INFO : 80 - [REVERT] Deleting existing licensing information


Root cause:


During the upgrade process there are few folders that gets copied from the existing home directory to a new target directory that'll be the home directory after the upgrade process completes.


Solution/Workaround:


Software install owner should always be the owner of all files & folders under infoworks home directory. As a privileged user change ownership recursively for all files & folders under infoworks home directory


For example, 


If infoworks home directory is /opt/infoworks/, software owner user / group is - infoworks-user / infoworks-group


chown -R  infoworks-user:infoworks-group /opt/infoworks/



Applicable Infoworks DataFoundry versions:


All infoworks versions