Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create portal site #332

Open
Ayushyadav19 opened this issue Nov 3, 2022 · 2 comments
Open

Unable to create portal site #332

Ayushyadav19 opened this issue Nov 3, 2022 · 2 comments

Comments

@Ayushyadav19
Copy link

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
Copy link
Contributor

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
Copy link
Author

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_cloud_settings": false helped us in resolving the issue.

Thank You
Ayush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants