Is this folder missing from your 11.0 or 11.1 ArcGIS Portal install too?
C:\Program Files\ArcGIS\Portal\customizations
While trying to run the "Change the Portal for ArcGIS account" command, configureserviceaccount.bat
We get this error:
Starting RunAs user configuration
Failed in setting directory permissions for: C:\Program Files\ArcGIS\Portal\customizations.
RunAs configuration completed.
Error exporting user Configuration file.
Noticed similar post here from https://community.esri.com/t5/arcgis-enterprise-portal-questions/need-help-changing-portal-for-arcgi...
Reference:
Yes it is. Both 11.0 and 11.1. This was the last path that had my config file:
C:\Program Files\ArcGIS\Portal\customizations\10.9.1\framework\webapps\arcgis#home\js\arcgisonline\config.js
Which is funny because the tech help document here:
https://support.esri.com/en-us/knowledge-base/how-to-upgrade-to-arcgis-enterprise-11-x-000029452
tells you to:
So I guess now any portal config changes are done through the sharing api? But then how do we reset the account if the bat you ran from the utility needs this 'customizations' direcotry?
That must have slipped past the rollout team.
If that customizations directory is no longer needed,
The bat file calls the ProductConfiguration.xml file
and, we could probably just delete lines 89 - 95 about customizations
and then,
The "Change the Portal for ArcGIS account" command, configureserviceaccount.bat
Would just blow past and succeed.
We'll have to see if Esri chimes in on this here before other agencies stumble into this issue
tip from @saraswathiemani2
Did esri send you the missing config.js file for 11.1?
Nope. I created a customizations folder and the utility ran successfully and changed username.
We tried that tip but it did not complete successfully at first, but with a different error
RunAs configuration completed.
Error exporting user Configuration file.
Then we tried again without the --writeconfig... and it worked fine
Windows Server 2022 does not have a c:\temp directory out of the box
Reference command line from esri doc:
configureserviceaccount.bat --username mydomain\username --password difficultpsswd --writeconfig c:\temp\domainaccountconfig.xml
Then we tried again after creating a folder the username can write to and including the --writeconfig... and it worked fine too
I'm not sure what the status is with the config.js file
Hello @BillFox , this problem is described in defect BUG-000157773. The \customizations directory does indeed not exist in Enterprise 11+ and the message is shown when it tries to set permissions on that directory. But all other permissions are applied successfully, and this does not seem to cause any problems.
Thank you @ChrisUnderwood
Is the config.js file toast now too?