Select to view content in your preferred language

Enterprise 11.1, Change the Portal for ArcGIS account fails, the install is missing this folder C:\Program Files\ArcGIS\Portal\customizations

934
7
06-01-2023 11:53 AM
BillFox
MVP Frequent Contributor

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...

@ReidWebb, @saraswathiemani2 

Reference:

https://enterprise.arcgis.com/en/portal/11.0/administer/windows/changing-the-portal-for-arcgis-accou...

 

0 Kudos
7 Replies
DavidColey
Frequent Contributor

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:

  • Back up the config.js file if you've configured advanced portal options by modifying the properties in the file. You can use the backed-up file as a reference to customize your portal's behavior through the ArcGIS Portal Directory (Sharing API) after the upgrade.

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?

BillFox
MVP Frequent Contributor

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

BillFox
MVP Frequent Contributor

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.

0 Kudos
BillFox
MVP Frequent Contributor

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

0 Kudos
BillFox
MVP Frequent Contributor

I'm not sure what the status is with the config.js file

0 Kudos
ChrisUnderwood
Esri Contributor

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.

0 Kudos
BillFox
MVP Frequent Contributor

Thank you @ChrisUnderwood 

Is the config.js file toast now too?

0 Kudos