Hmm, i tried, and Im recieveing unauthorized, but right now i have logs, but there is no useful information about the logs, also i did restart the elasticsearch and i have this error now:
Ror is being stuck at loading, with this logs:
Elasticsearch log:
[2020-08-26T07:56:47,439][WARN ][stderr ] [alibaba-ire-all-01] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
[2020-08-26T07:56:47,440][WARN ][stderr ] [alibaba-ire-all-01] SLF4J: Defaulting to no-operation (NOP) logger implementation
[2020-08-26T07:56:47,440][WARN ][stderr ] [alibaba-ire-all-01] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
RoR log:
[2020-08-26T07:56:27,477][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: Available SSL protocols: TLSv1.2,TLSv1.1,TLSv1
[2020-08-26T07:56:27,983][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,983][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,983][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,984][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,984][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:27,984][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:27,985][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,985][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:27,986][INFO ][tech.beshu.ror.es.ssl.SSLNetty4InternodeServerTransport] [alibaba-ire-all-01] >> internode SSL channel initializing
[2020-08-26T07:56:27,987][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:27,984][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:27,993][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] Using custom truststore: 'truststore.jks'
[2020-08-26T07:56:28,196][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: attempting with JKS keystore..
[2020-08-26T07:56:28,197][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: ssl.key_alias not configured, took first alias in keystore: alibaba
[2020-08-26T07:56:28,199][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: Discovered key from JKS
[2020-08-26T07:56:28,203][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: Discovered cert chain from JKS
[2020-08-26T07:56:28,215][INFO ][tech.beshu.ror.es.ssl.SSLNetty4HttpServerTransport] [alibaba-ire-all-01] ROR SSL HTTP: Using SSL provider: JDK
[2020-08-26T07:56:28,455][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: Available ciphers: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA
[2020-08-26T07:56:28,455][INFO ][tech.beshu.ror.utils.SSLCertParser$] [alibaba-ire-all-01] ROR SSL: Available SSL protocols: TLSv1.2,TLSv1.1,TLSv1
[2020-08-26T07:56:47,314][INFO ][tech.beshu.ror.boot.Ror ] [alibaba-ire-all-01] Loading ReadonlyREST settings from index failed: cannot find index
[2020-08-26T07:56:47,314][INFO ][tech.beshu.ror.boot.Ror ] [alibaba-ire-all-01] Loading ReadonlyREST settings from file: /usr/share/elasticsearch/config/readonlyrest.yml
ES response:
{"error":{"root_cause":[{"reason":"Waiting for ReadonlyREST start"}],"reason":"Waiting for ReadonlyREST start","status":503}}
I did changes in readonlyrest.yml i changed the custom jwt header to Authorization, and now my es is being stuck forever, without any info.