Hi,
We are seeing some weird exception while trying to run Snapshot backup
using elasticsearch-cloud-aws plugin.
We are running following code which was working fine on ES 1.1 and ES 1.4.1
clusters:
PutRepositoryResponse putRepositoryResponse =
client.admin().cluster().preparePutRepository("test-repo")
.setType("s3").setSettings(ImmutableSettings.settingsBuilder()
.put("base_path", getBasePath())
.put("region", getRegion())
).get();
But now it's throwing following exception on ES 1.4.1 cluster :
Caused by: org.elasticsearch.transport.TransportSerializationException:
Failed to deserialize exception response from stream
- at
org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:173)* - at
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)* - at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)* - at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)* - at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)* - at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)* - at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)* - at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)* - at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* - at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* - ... 1 more*
Caused by: java.lang.ClassCastException: cannot assign instance of
com.amazonaws.AmazonServiceException$ErrorType to field
com.amazonaws.AmazonServiceException.errorMessage of type java.lang.String
in instance of com.amazonaws.services.s3.model.AmazonS3Exception - at
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2083)* - at
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1261)* - at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1996)* - at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)*
- at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)* - at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)*
- at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)* - at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:500)* - at java.lang.Throwable.readObject(Throwable.java:914)*
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
- at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)* - at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* - at java.lang.reflect.Method.invoke(Method.java:606)*
- at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)* - at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)*
- at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)* - at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)*
- at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)* - at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:500)* - at java.lang.Throwable.readObject(Throwable.java:914)*
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
- at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)* - at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* - at java.lang.reflect.Method.invoke(Method.java:606)*
- at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)* - at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)*
- at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)* - at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)*
- at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)*
- at
org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:171)* - at
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)* - at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)* - at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)* - at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)* - at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)* - at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)* - at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)* - at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)* - at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)* - at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)* - at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)* - at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* - at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* - at java.lang.Thread.run(Thread.java:745)*
Weird part is that the S3 Repository is Created Successfully but
preparePutRepository call fails with an exception.
Not sure, what's going on, any help will be much appreciated ?
Thanks
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/62eed5de-3e0f-4ece-9422-24b2023d5672%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.