Hello, I am trying to backup the Solr index data using collection API.
I have \collection2_shard1_replica1\data\index\segments_6 in my data folder, but when I try to backup files, It expects \collection2_shard1_replica1\data\index\segments_5 which is not there in data folder, hence giving exception. Now when I reindex, I have segments_7 instead of segments_6. But at this time Backup API is expecting segments_6. Please help. Here is exception that I get : <response> <lst name="responseHeader"> <int name="status">500</int> <int name="QTime">479</int> </lst> <lst name="failure"> <str name="172.25.7.50:8983_solr"> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://172.25.7.50:8983/solr: Failed to backup core=collection2_shard1_replica1 because java.nio.file.NoSuchFileException: D:\solr-6.4.0\solr-6.4.0\example\cloud\node1\solr\collection2_shard1_replica1\data\index\segments_5 </str> </lst> <str name="Operation backup caused exception:"> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not backup all replicas </str> <lst name="exception"> <str name="msg">Could not backup all replicas</str> <int name="rspCode">500</int> </lst> <lst name="error"> <lst name="metadata"> <str name="error-class">org.apache.solr.common.SolrException</str> <str name="root-error-class">org.apache.solr.common.SolrException</str> </lst> <str name="msg">Could not backup all replicas</str> <str name="trace"> org.apache.solr.common.SolrException: Could not backup all replicas at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:287) at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:218) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:166) at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:664) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:296) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:534) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Thread.java:745) </str> <int name="code">500</int> </lst> </response> -- View this message in context: http://lucene.472066.n3.nabble.com/Backup-not-working-tp4331094.html Sent from the Solr - User mailing list archive at Nabble.com.