Warning savedobjects-service Unable to connect to Elasticsearch Error Request Timeout after 30000ms

New to ELK and setting up in rhel 7.5 OS. Kibana is throwing error while setting up on master.

Deleted below indices and tried again, but same error.

red open .kibana_task_manager_1 jmlrFCiCT-qOt_hsevBM1g 1 1
red open .apm-agent-configuration ugLrtPV6QLmqXwkWXF9oMw 1 1
red open .kibana_1 FbvYSkyoTO-cXVF3DUxUEQ 1 1

Elastic search
{
"name" : "master-1",
"cluster_name" : "sjc-v2",
"cluster_uuid" : "g-MOWUQGQMmgOUaCP0cdYA",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}

Kibana logs

log [03:46:58.923] [info][plugins-service] Plugin "case" is disabled.
log [03:47:03.170] [info][plugins-system] Setting up [37] plugins: [taskManager,siem,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canvas,timelion,features,security,apm_oss,translations,reporting,uiActions,data,navigation,status_page,share,newsfeed,kibana_legacy,management,dev_tools,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,home,spaces,cloud,apm,graph,eui_utils,bfetch]
log [03:47:03.172] [info][plugins][taskManager] Setting up plugin
log [03:47:03.187] [info][plugins][siem] Setting up plugin
log [03:47:03.188] [info][licensing][plugins] Setting up plugin
log [03:47:03.190] [info][infra][plugins] Setting up plugin
log [03:47:03.191] [info][encryptedSavedObjects][plugins] Setting up plugin
log [03:47:03.192] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
log [03:47:03.197] [info][code][plugins] Setting up plugin
log [03:47:03.198] [info][plugins][usageCollection] Setting up plugin
log [03:47:03.199] [info][metrics][plugins] Setting up plugin
log [03:47:03.200] [info][canvas][plugins] Setting up plugin
log [03:47:03.206] [info][plugins][timelion] Setting up plugin
log [03:47:03.207] [info][features][plugins] Setting up plugin
log [03:47:03.208] [info][plugins][security] Setting up plugin
log [03:47:03.209] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
log [03:47:03.209] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
log [03:47:03.228] [info][apm_oss][plugins] Setting up plugin
log [03:47:03.228] [info][plugins][translations] Setting up plugin
log [03:47:03.229] [info][data][plugins] Setting up plugin
log [03:47:03.234] [info][plugins][share] Setting up plugin
log [03:47:03.235] [info][home][plugins] Setting up plugin
log [03:47:03.241] [info][plugins][spaces] Setting up plugin
log [03:47:03.246] [info][cloud][plugins] Setting up plugin
log [03:47:03.247] [info][apm][plugins] Setting up plugin
log [03:47:03.251] [info][graph][plugins] Setting up plugin
log [03:47:03.253] [info][bfetch][plugins] Setting up plugin
log [03:47:03.259] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
log [03:47:03.301] [info][savedobjects-service] Starting saved objects migrations
log [03:47:03.312] [info][savedobjects-service] Creating index .kibana_task_manager_1.
log [03:47:03.316] [info][savedobjects-service] Creating index .kibana_1.
Could not create APM Agent configuration: Request Timeout after 30000ms
log [03:47:33.313] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms
log [03:47:35.817] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_task_manager_1/6jHlllmtTmGSJI3vco_KJw] already exists, with { index_uuid="6jHlllmtTmGSJI3vco_KJw" & index=".kibana_task_manager_1" }
log [03:47:35.818] [warning][savedobjects-service] Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_task_manager_1 and restarting Kibana.
log [03:47:35.828] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_1/xvwnY15cQaStFRV-qjMbaA] already exists, with { index_uuid="xvwnY15cQaStFRV-qjMbaA" & index=".kibana_1" }
log [03:47:35.829] [warning][savedobjects-service] Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_1 and restarting Kibana.

Kibana config

server.port: 80
server.host: "10.120.0.51"

It looks like you already have an ES running. is that running from master as well and is it a clean version?
The best guide to running Kibana from master is here: https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md

Yes, its a fresh installation both elasticsearch and kibana, downloaded in a week. Both doesn't have any data.

Please close this, this was due to selinux

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.