Select to view content in your preferred language

Portal Index Issue after Upgrade from ArcGIS Enterprise 11.1 to 11.3 - invalid_alias_name_exception

124
4
a week ago
Labels (1)
MaxBöcke3
Emerging Contributor

Hey community

after upgrading the AGE environment we've got the issue that the Portal index couldn't be rebuild.

MaxBcke3_0-1736858160624.png

You can see in the pic above that 123 users are missing. We cannot find them in the Portal UI.
After executing the reindex, the log shows the following:

<Msg time="2024-11-29T11:36:31,579" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> Deleting Index ago-users</Msg>

<Msg time="2024-11-29T11:36:31,686" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> Deleted Index ago-users</Msg>

<Msg time="2024-11-29T11:36:31,686" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> Deleting Index ago-users</Msg>

<Msg time="2024-11-29T11:36:31,688" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> Exception method [DELETE], host [https://localhost:7220], URI [/ago-users], status line [HTTP/1.1 404 Not Found]

{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [ago-users]","index":"ago-users","resource.id":"ago-users","resource.type":"index_or_alias","index_uuid":"_na_"}],"type":"index_not_found_exception","reason":"no such index [ago-users]","index":"ago-users","resource.id":"ago-users","resource.type":"index_or_alias","index_uuid":"_na_"},"status":404}</Msg>

<Msg time="2024-11-29T11:36:31,688" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> Deleted Index ago-users</Msg>

<Msg time="2024-11-29T11:36:31,918" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID="">  Creating  alias ago-users for index ago-users</Msg>

<Msg time="2024-11-29T11:36:31,921" type="DEBUG" code="219999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="0.0" requestID=""> method [PUT], host [https://localhost:7220], URI [/ago-users/_alias/ago-users], status line [HTTP/1.1 400 Bad Request]

{"error":{"root_cause":[{"type":"invalid_alias_name_exception","reason":"Invalid alias name [ago-users], an index exists with the same name as the alias","index":"ago-users","index_uuid":"qtOUCPcAQ9eJ3X6fCOhlrA"}],"type":"invalid_alias_name_exception","reason":"Invalid alias name [ago-users], an index exists with the same name as the alias","index":"ago-users","index_uuid":"qtOUCPcAQ9eJ3X6fCOhlrA"},"status":400}</Msg>

<Msg time="2024-11-29T11:36:31,921" type="DEBUG" code="9999" source="Sharing" process="11056" thread="1" methodName="" machine="MASCHINENNAME" user="" elapsed="" requestID="">org.opensearch.client.ResponseException: method [PUT], host [https://localhost:7220], URI [/ago-users/_alias/ago-users], status line [HTTP/1.1 400 Bad Request]

{"error":{"root_cause":[{"type":"invalid_alias_name_exception","reason":"Invalid alias name [ago-users], an index exists with the same name as the alias","index":"ago-users","index_uuid":"qtOUCPcAQ9eJ3X6fCOhlrA"}],"type":"invalid_alias_name_exception","reason":"Invalid alias name [ago-users], an index exists with the same name as the alias","index":"ago-users","index_uuid":"qtOUCPcAQ9eJ3X6fCOhlrA"},"status":400}

       at org.opensearch.client.RestClient.convertResponse(RestClient.java:376)

       at org.opensearch.client.RestClient.performRequest(RestClient.java:346)

       at org.opensearch.client.RestClient.performRequest(RestClient.java:321)

       at com.esri.gw.index.reindex.PortalElasticSearchManager.c(PortalElasticSearchManager.java:603)

       at....

What we've already done:

1. Reconfigure index >> >> no success

2. Reindex >> no success

It seems to be are basic ElsaticSearch/OpenSearch Issue.

Any ideas for a workaround?

 

Thanks

Max

 

0 Kudos
4 Replies
Dan_Brumm
Frequent Contributor

I have the same issue. I have a ticket open with ESRI and if they figure anything out, I will let you know.   We just upgraded to 11.4

Daniel Brumm
GIS Nerd
0 Kudos
MaxBöcke3
Emerging Contributor

We've also opened a Ticket at Esri Support. They recommend we should conduct an clean reinstallation of the portal application what isn't an really good approach from our point of view.

The admintool "Reconfigure" doesn't work. The process stops and the index can't be reconfigured and reindexed. Now we have to fiugure out if it's an error that prevents operation of the entire system.

Best Case is, that we get some proper information to fix the issue 🙂

0 Kudos
Dan_Brumm
Frequent Contributor

That is what they recommended to us as well. We are going to run ours tomorrow or next week. 

Daniel Brumm
GIS Nerd
0 Kudos
MaxBöcke3
Emerging Contributor

At Port 7220, an opensearch cluster is running. The index is password-protected. A further approach is to compare the index content with the Postgresql content. Access to the Opensearch DB could be realized via curl requests. I guess, its an umlaut or special character issue... Can Esri provide the password - in the config file merely a bcrypt hash is stored...

0 Kudos