I'm having an odd issue. I'm currently working to have our our elasticsearch index snapshot indices to Azure for backup purposes. I have this working in our development and pre-production environments but our production environment is fighting me.
Elasticesarch 6.8.6
plugin version 7.2
#Install of plugin
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install repository-azure
#Add Values to elasticsearch keystore ( with our values , I even used the --stdin to confirm the input )
/usr/share/elasticsearch/bin/elasticsearch-keystore add azure.client.default.account
/usr/share/elasticsearch/bin/elasticsearch-keystore add azure.client.default.access_key
curl -XPUT "http://192.168.0.100:9200/_snapshot/my_azure_repository" -H 'Content-Type: application/json' -d'
{
"type": "azure",
"settings": {
"container": "containername",
"compress": true
}
}'
When I go to reload the secure settings I receive the message below saying it can't read the values.
If I was to restart the service it would crash on startup. Any thoughts?
[2020-03-04T20:06:56,216][WARN ][o.e.a.a.c.n.r.TransportNodesReloadSecureSettingsAction] [hDr7QDN] Reload failed for plugin [AzureRepositoryPlugin]
org.elasticsearch.common.settings.SettingsException: Neither a secret key nor a shared access token was set.
at org.elasticsearch.repositories.azure.AzureStorageSettings.buildConnectString(AzureStorageSettings.java:230) ~[?:?]
at org.elasticsearch.repositories.azure.AzureStorageSettings.(AzureStorageSettings.java:166) ~[?:?]
at org.elasticsearch.repositories.azure.AzureStorageSettings.getClientSettings(AzureStorageSettings.java:333) ~[?:?]
at org.elasticsearch.repositories.azure.AzureStorageSettings.loadRegular(AzureStorageSettings.java:309) ~[?:?]
at org.elasticsearch.repositories.azure.AzureStorageSettings.load(AzureStorageSettings.java:283) ~[?:?]
at org.elasticsearch.repositories.azure.AzureRepositoryPlugin.reload(AzureRepositoryPlugin.java:80) ~[?:?]
at org.elasticsearch.action.admin.cluster.node.reload.TransportNodesReloadSecureSettingsAction.lambda$nodeOperation$1(TransportNodesReloadSecu$
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) [?:1.8.0_242]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) [?:1.8.0_242]
at org.elasticsearch.action.admin.cluster.node.reload.TransportNodesReloadSecureSettingsAction.nodeOperation(TransportNodesReloadSecureSetting$
at org.elasticsearch.action.admin.cluster.node.reload.TransportNodesReloadSecureSettingsAction.nodeOperation(TransportNodesReloadSecureSetting$
at org.elasticsearch.action.support.nodes.TransportNodesAction.nodeOperation(TransportNodesAction.java:138) [elasticsearch-6.8.6.jar:6.8.6]
at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:259) [elasticsea$
at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:255) [elasticsea$
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$1.doRun(SecurityServerTransportI$
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.6.jar:6.8.6]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTr$
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:66) [elasticsearch-6.8.6.jar:6.8.6]
at org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:692) [elasticsearch-6.8.6.jar:6.8.6]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751) [elasticsearch-6.8.6$
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.6.jar:6.8.6]