Index Service Configuration Failed

11512
16
Jump to solution
07-23-2019 10:33 AM
CarbonCounty_Utah
New Contributor III

I'm trying to do a fresh install of Portal for ArcGIS on Windows Server 2016. The install goes fine but I keep getting an error when trying to create the portal site and initial admin account. I get an error saying "There was an error creating your initial administrator account. Index Service configuration failed. For more information, please view the log messages located in the content directory specified during setup."

I have already tried uninstalling and reinstalling Portal on the server. I also checked the files from this thread https://community.esri.com/thread/223779-i-cannot-create-a-portal-admin-account-with-arcgis-enterpri....

I attached a screenshot of the error I'm getting as well as a copy of the log from Portal.

If anyone has any ideas what the problem might be I would appreciate the help!

0 Kudos
16 Replies
JonathanQuinn
Esri Notable Contributor

Looks like the index service is having trouble resolving the hostname of the machine:

Failed to resolve host [_site_, SERVERNAME, _local_]

...

Caused by: java.net.UnknownHostException: SERVERNAME: Name or service not known

Any issues running ifconfig/pings/hostname on the machine, and not returning the expected information?

0 Kudos
AndrewClark2
New Contributor III

Hi Jonathan,

I have fixed another problem, but ran into this error message.

2020-02-26 18:20:03.002 UTC [10957] FATAL:  no pg_hba.conf entry for host "[local]", user "centos", database "centos", SSL off

Seems to be a common issue with PostGres, and the recommendation seems to be as follows:

Edit pg_hba.conf under Master data directory and make the following changes:
local all <user_name> trust
host all <user_name> 0.0.0.0/0 trust
host all <user_name> ::/0 trust

Unfortunately, when I try that the pg_hba.conf file resets as soon as the "Create Portal" command, so the changes are undone.

Any help you can give me would be greatly appreciated.

Thanks,

Andrew

0 Kudos
AndrewClark2
New Contributor III

I got it working again. There must have been some residual memory of the previous settings, as I uninstalled portal and reinstalled it and everything created perfectly.

Thanks for your help!

Andrew

0 Kudos
JonathanQuinn
Esri Notable Contributor

Glad you got it working! Couple things I need to point out though:

1) Modifying internal files is not supported and risky. The pg_hba.conf file was getting updated because Portal is expecting and writes certain contents to it

2) The 2020-02-26 18:20:03.002 UTC [10957] FATAL:  no pg_hba.conf entry for host "[local]", user "centos", database "centos", SSL off errors are expected. Portal is checking the status of the database, but prior to 10.8, doesn't check with a username nor DB, so it assumes the install user. These can be ignored. This is fixed at 10.8.

3) The trust setting allows you to connect to the database without a password, which is a security risk. Allowing anyone to connect from anywhere (0.0.0.0 and ::/0) is certainly not something you want to do.

GreggRoemhildt2
New Contributor III

Hi @JonathanQuinn I saw your post and am running into a similar issue where the indexer service won't start properly. I've enabled debug logs and am seeing this message:

 

java.net.ConnectException: Connection refused at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:849) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:259) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246) at com.esri.arcgis.portal.ElasticSearchManager.a(ElasticSearchManager.java:487) at com.esri.arcgis.portal.ElasticSearchManager.createIndexWithMappingsAndSettings(ElasticSearchManager.java:621) at com.esri.arcgis.portal.Indexer.c(Indexer.java:1535) at com.esri.arcgis.portal.Indexer.run(Indexer.java:426) at com.esri.arcgis.portal.Indexer.main(Indexer.java:207) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) at java.base/java.lang.Thread.run(Unknown Source)

 

The server I'm running is a supported Ubuntu Ubuntu 20.04.5 LTS. I'm installing a single machine deployment on an AWS instance using ArcGIS Enterprise 11 installers.

Any tips on this one?

0 Kudos
JonathanQuinn
Esri Notable Contributor

Connection refused would indicate that the the index service is not running. Have you verified whether you see a java.exe process running on the machine? If not, the logs under <install directory>\framework\runtime\ds\usr\logs may help identify why it can't start. You can post some logs here, but these types of problems are a bit challenging to troubleshoot so it may be best to contact Support.

0 Kudos
Chenna_KishoreMallemala
New Contributor II

If you have antivirus installed on the server, disable it and try. it worked for me while installing 10.7.1