Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
300 stars 116 forks source link

Unable to create portal site #332

Open Ayushyadav19 opened 1 year ago

Ayushyadav19 commented 1 year ago

Hi @cameronkroeker,

We are installing ArcGIS v10.9.1 on RHEL 7.9. We are encountering errors in creating the portal site. I am attaching the chef script/role file and the log file for your reference.

portalinstall-nov2_2.log BEDLinux.txt

Additionally, we have added the hostname before running the chef script using the command - hostnamectl set-hostname arcgis-enterprise.local

Please have a look at the files. Any suggestions/recommendations will be highly appreciated.

Thanks Ayush

cameronkroeker commented 1 year ago

Hi @Ayushyadav19,

Looks like the initial portal create site failure was due to portal index configuration:

[2022-11-02T17:56:25+00:00] INFO: Creating portal site...
[2022-11-02T17:56:25+00:00] DEBUG: Request: GET https://arcgis-enterprise.local:7443/arcgis/portaladmin/?f=json
[2022-11-02T17:56:25+00:00] DEBUG: Response: 200 {"status":"error","messages":["The portal site has not been initialized. Please create a new site and try again."],"resources":["license"],"isPortalLicensed":true,"isLicenseFileRequired":true,"isUserTypeLicensing":true,"version":"10.9.1"}
[2022-11-02T17:56:25+00:00] DEBUG: Request: POST https://arcgis-enterprise.local:7443/arcgis/portaladmin/createNewSite
[2022-11-02T18:16:51+00:00] DEBUG: Response: 200 {"error":{"code":500,"message":"Index Service configuration failed.","details":null}}

I am not quite sure what would cause that error. Perhaps there are more clues in the portal logs. In the portal logs maybe try focusing on the logs from 2022-11-02T17:56:25 to 2022-11-02T18:16:51.

After this initial attempt failed, portal didn't revert itself back to "create_site" mode, but rather put itself into "upgrade" mode:

[2022-11-02T18:16:51+00:00] INFO: Retrying execution of arcgis_enterprise_portal[Create Portal Site], 4 attempts left
[2022-11-02T18:26:51+00:00] DEBUG: https://arcgis-enterprise.local:7443/arcgis/portaladmin HTTP response code: 302
[2022-11-02T18:26:51+00:00] DEBUG: URL https://arcgis-enterprise.local:7443/arcgis/portaladmin became available after 0.02 seconds.
[2022-11-02T18:26:51+00:00] DEBUG: Request: GET https://arcgis-enterprise.local:7443/arcgis/portaladmin/?f=json
[2022-11-02T18:26:51+00:00] DEBUG: Response: 200 {"status":"error","messages":["The portal site has not been upgraded. Please upgrade the site and try again."],"isUpgrade":true,"resources":["license"],"isPortalLicensed":true,"isLicenseFileRequired":false,"isUserTypeLicensing":true,"version":"10.9.1"}
[2022-11-02T18:26:51+00:00] INFO: Completing portal upgrade...

Now that portal is in upgrade mode it won't be able to create site properly. I recommend uninstalling portal, removing the install dir/content dir, and trying again.

Thanks, Cameron K.

Ayushyadav19 commented 1 year ago

Hi @cameronkroeker,

We have resolved the issue. The issue was with the hostname and the preferredidentifier parameters. Setting these two properties as - "preferredidentifier": "hostname", and _"configure_cloudsettings": false helped us in resolving the issue.

Thank You Ayush