ERROR WHILE RELOADING THE LOCALHOST:9200 and says Unsecured and the CONNECTION GETS CLOSED AUTOMATICALLY


image

Hello Team,
I have installed the kibana on windows by extracting the zip files.
Everything seems to be running well but when I try to connect through the python script it says the error with SSL CERTIFICATE ERROR.
Also when i reload the localhost:9200 on the chrome it automatically says http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55153}.

When I see the address bar it says unsecured and there is no lock symbol.

Can you please help me with this issue? and give me the detailed step-by-step process to get off this error.

Welcome to our community! :smiley:

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them.

Hello Warkolm, Thanks.

How can i show the results and issues that I'm facing on my local server ?
can you tell me the medium please ?

The best way is to copy the text

warkolm, WHEN I TRY TO RELOAD THE LOCALHOST FROM THE BROWSER IT SAYS SUCCESSFULLY LOADED WHEN I RUN THE BAT BUT WHEN I RELOAD IT SAYS CLOSING CONNECTION: with the comments below:

**[2022-07-03T14:57:18,023][INFO ][o.e.i.g.DatabaseNodeService] [NB397-CH] successfully loaded geoip database file [GeoLite2-City.mmdb]
**[2022-07-03T14:57:36,685][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [NB397-CH] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55153}
**[2022-07-03T14:57:36,685][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [NB397-CH] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55152}

ALSO WHEN I TRY TO CONNECT TO ES USING PYTHON JYPTER NOTEBOOK I SEE THIS ERROR:

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

SSLError: HTTPSConnectionPool(host='localhost', port=9200): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

I ALSO SEE THAT THE ADDRESS BAR HAS THE NOT SECURE TAG AND SAYS YOUR CONNECTION TO THIS SITE IS NOT SECURE.

Can you please minimise using capital letters, it makes it very hard to read.

Please post your Elasticsearch log.

here is the error log Warkolm.

at java.lang.Thread.run(Thread.java:833) [?:?]

[2022-07-03T14:57:17,028][INFO ][o.e.x.t.t.TransformTask ] [NB397-CH] [endpoint.metadata_united-default-8.3.0] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":1,"progress":{"docs_indexed":0,"docs_processed":0},"should_stop_at_checkpoint":false}].
[2022-07-03T14:57:17,028][INFO ][o.e.x.t.t.TransformTask ] [NB397-CH] [endpoint.metadata_current-default-8.3.0] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":1,"progress":{"docs_indexed":0,"docs_processed":0},"should_stop_at_checkpoint":false}].
[2022-07-03T14:57:17,078][INFO ][o.e.x.t.t.TransformPersistentTasksExecutor] [NB397-CH] [endpoint.metadata_united-default-8.3.0] successfully completed and scheduled task in node operation
[2022-07-03T14:57:17,142][INFO ][o.e.x.t.t.TransformPersistentTasksExecutor] [NB397-CH] [endpoint.metadata_current-default-8.3.0] successfully completed and scheduled task in node operation
[2022-07-03T14:57:17,217][WARN ][o.e.x.t.t.TransformIndexer] [NB397-CH] [endpoint.metadata_united-default-8.3.0] failed to detect changes for transform. Skipping update till next check.
org.elasticsearch.action.search.SearchPhaseExecutionException:
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:729) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:475) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.start(AbstractSearchAsyncAction.java:218) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:1031) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:747) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.lambda$executeRequest$6(TransportSearchAction.java:390) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:112) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:77) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.executeRequest(TransportSearchAction.java:478) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:277) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:103) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:79) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:245) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:575) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.DlsFlsLicenseRequestInterceptor.intercept(DlsFlsLicenseRequestInterceptor.java:100) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.BulkShardRequestInterceptor.intercept(BulkShardRequestInterceptor.java:86) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.ShardSearchRequestInterceptor.intercept(ShardSearchRequestInterceptor.java:26) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.IndicesAliasesRequestInterceptor.intercept(IndicesAliasesRequestInterceptor.java:123) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.SearchRequestInterceptor.intercept(SearchRequestInterceptor.java:26) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.ResizeRequestInterceptor.intercept(ResizeRequestInterceptor.java:96) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:573) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.interceptor.UpdateRequestInterceptor.intercept(UpdateRequestInterceptor.java:27) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.runRequestInterceptors(AuthorizationService.java:569) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.handleIndexActionAuthorizationResult(AuthorizationService.java:554) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$10(AuthorizationService.java:448) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:945) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:909) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$authorizeIndexAction$3(RBACEngine.java:352) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:41) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService$CachingAsyncSupplier.getAsync(AuthorizationService.java:993) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeIndexAction(RBACEngine.java:343) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:441) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:378) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$2(AuthorizationService.java:263) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:139) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:185) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:47) [x-pack-core-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$buildThenMaybeCacheRole$6(CompositeRolesStore.java:353) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromDescriptors(CompositeRolesStore.java:475) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildThenMaybeCacheRole(CompositeRolesStore.java:334) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$buildRoleFromRoleReference$3(CompositeRolesStore.java:272) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:127) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authc.service.ServiceAccountService.getRoleDescriptorForPrincipal(ServiceAccountService.java:179) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.RoleDescriptorStore.resolveServiceAccountRoleReference(RoleDescriptorStore.java:129) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.core.security.authz.store.RoleReference$ServiceAccountRoleReference.resolve(RoleReference.java:178) [x-pack-core-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:266) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:50) [x-pack-core-8.3.1.jar:?]
at java.lang.Iterable.forEach(Iterable.java:75) [?:?]
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:50) [x-pack-core-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:200) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:175) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:136) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:265) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:127) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:94) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114) [x-pack-security-8.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:54) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:165) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:113) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:91) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.ParentTaskAssigningClient.doExecute(ParentTaskAssigningClient.java:55) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) [elasticsearch-8.3.1.jar:?]
at org.elasticsearch.xpack.core.ClientHelper.executeWithHeadersAsync(ClientHelper.java:311) [x-pack-core-8.3.1.jar:?]
at org.elasticsearch.xpack.transform.checkpoint.TimeBasedCheckpointProvider.sourceHasChanged(TimeBasedCheckpointProvider.java:80) [transform-8.3.1.jar:8.3.1]
at org.elasticsearch.xpack.transform.transforms.TransformIndexer.sourceHasChanged(TransformIndexer.java:1017) [transform-8.3.1.jar:8.3.1]
at org.elasticsearch.xpack.transform.transforms.TransformIndexer.onStart(TransformIndexer.java:366) [transform-8.3.1.jar:8.3.1]
at org.elasticsearch.xpack.core.indexing.AsyncTwoPhaseIndexer.lambda$maybeTriggerAsyncJob$5(AsyncTwoPhaseIndexer.java:229) [x-pack-core-8.3.1.jar:?]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) [elasticsearch-8.3.1.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Search rejected due to missing shards [[metrics-endpoint.metadata_current_default][0]]. Consider using allow_partial_search_results setting to bypass this error.
at org.elasticsearch.action.search.AbstractSearchAsyncAction.run(AbstractSearchAsyncAction.java:246) ~[elasticsearch-8.3.1.jar:?]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:470) [elasticsearch-8.3.1.jar:?]
... 108 more
[2022-07-03T14:57:17,288][INFO ][o.e.i.g.DatabaseNodeService] [NB397-CH] successfully loaded geoip database file [GeoLite2-Country.mmdb]
[2022-07-03T14:57:17,361][INFO ][o.e.i.g.DatabaseNodeService] [NB397-CH] successfully loaded geoip database file [GeoLite2-ASN.mmdb]
[2022-07-03T14:57:17,450][INFO ][o.e.c.r.a.AllocationService] [NB397-CH] current.health="YELLOW" message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana-event-log-8.3.1-000001][0]]])." previous.health="RED" reason="shards started [[.kibana-event-log-8.3.1-000001][0]]"
[2022-07-03T14:57:18,023][INFO ][o.e.i.g.DatabaseNodeService] [NB397-CH] successfully loaded geoip database file [GeoLite2-City.mmdb]
[2022-07-03T14:57:36,685][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [NB397-CH] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55152}
[2022-07-03T14:57:36,685][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [NB397-CH] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55153}

@Tarun_Kumar_Yerra

I am assuming You installed with default security... correct?

Elasticsearch is running on
https://localhost:9200. ...https

with a self signed cert that is why the browser complains. If you are not familiar with self signed certificates perhaps you should read up on them.

you can validate this by running this from the terminal the certs directory will be in the config directory either /etc/elasticsearch or wherever you untared the zip/tar.gz

curl --cacert /path/config/certs/http_ca.crt -u elastic https://localhost:9200

Then in your python / jupiter notebook you are trying to connect to

http://localhost:9200

on http not on https that will not work because elasticsearch is running https.

You will need to connect with elasticsearch on https, tell your python it to ignore ssl validation or point to the CA and you will need to provide the credentials usename (elastic) and password you got at startup.

For how to point to the see here

es = Elasticsearch(
    "https://...",
    ca_certs="/path/config/certs/http_ca.crt"
)

or turn off certificate verification...

es = Elasticsearch(
    "https://...",
    verify_certs=False
)

And yes please stop the CAPS it is the equivalent of yelling at us...
Please take the time to format your code / logs using the </> button... it helps us help you

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