Error updating DSS to 12.4.1 - PermissionError: [Errno 13] Permission denied for web_apps directory
I am looking to upgrade my instance of DSS on an Azure VM from 11.3.1 to 12.4.1. When running the installation command "dataiku-dss-12.4.1/installer.sh -d dss -u", I run into the following error:
11399 -> 11400
- Delete the lower and upper bound of the data drift CI: they were wrong. (Wrapped)
- Migrate webapp working dirs from tmp/ to dedicated web_apps/ folder
******************************************
* MIGRATION FAILED
******************************************
* Attempting to rollback
Backing up partially-migrated: dss-version.json -> /home/dataiku/dss/_broken_migration_backup_20240105-224151/dss-version.json
Restoring backup: _pre_migration_backup_20240105-224151/dss-version.json -> dss-version.json
Backing up partially-migrated: bin/env-default.sh -> /home/dataiku/dss/_broken_migration_backup_20240105-224151/bin__env-default.sh
Restoring backup: _pre_migration_backup_20240105-224151/bin__env-default.sh -> bin/env-default.sh
Backing up partially-migrated: install.ini -> /home/dataiku/dss/_broken_migration_backup_20240105-224151/install.ini
Restoring backup: _pre_migration_backup_20240105-224151/install.ini -> install.ini
Backing up partially-migrated: databases -> /home/dataiku/dss/_broken_migration_backup_20240105-224151/databases
Restoring backup: _pre_migration_backup_20240105-224151/databases -> databases
Backing up partially-migrated: config -> /home/dataiku/dss/_broken_migration_backup_20240105-224151/config
Restoring backup: _pre_migration_backup_20240105-224151/config -> config
Restore complete, removing marker file
Traceback (most recent call last):
File "/home/dataiku/dataiku-dss-12.4.1/scripts/dkuinstall/migrate_auto.py", line 26, in <module>
migrate_dss.migrate(sys.argv[1])
File "/home/dataiku/dataiku-dss-12.4.1/scripts/dkuinstall/migrate_dss.py", line 102, in migrate
reraise(*sys.exc_info())
File "/home/dataiku/dataiku-dss-12.4.1/python36.packages/six.py", line 719, in reraise
raise value
File "/home/dataiku/dataiku-dss-12.4.1/scripts/dkuinstall/migrate_dss.py", line 69, in migrate
migration.execute(dip_home, node_type)
File "/home/dataiku/dataiku-dss-12.4.1/scripts/dkuinstall/migration_base.py", line 172, in execute
current_operation.execute(diphome)
File "/home/dataiku/dataiku-dss-12.4.1/scripts/dkuinstall/steps.py", line 9654, in execute
os.rename(webapp_folder, new_webapp_folder)
PermissionError: [Errno 13] Permission denied: '/home/dataiku/dss/tmp/TEST/web_apps/heKpJXW' -> '/home/dataiku/dss/web_apps/TEST/heKpJXW'
[service@digital-shift.co@design-node-2 dataiku]$ dataiku-dss-12.4.1/installer.sh -d dss -p 10000
I am unsure why this is happening, and would love some advice.
Thanks in advance!
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,141 Neuron
Well the error is pretty clear. You have a permissioning error. Check the user that owns /home/dataiku/dss/tmp/TEST/web_apps/heKpJXW, the one that owns /home/dataiku/dss/ and the one you are executing the upgrade as. They should all be the same. If they are not the same account then you need to find out why.