Hi, Backup can take time, so consider calling it asynchronously - https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-AsynchronousCalls <https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-AsynchronousCalls>
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 7. sep. 2016 kl. 15.06 skrev Praveen Babu <subramani....@gmail.com>: > > Hi Jan Høydahl, > > I have followed your suggestion. That issue got resolved. Now I a facing > another issue . > Backup command getting disconnect in 180 sec. > > > curl ' > http://localhost:8983/solr/admin/collections?action=BACKUP&name=top_bk1&collection=topapp&location=/home/ubuntu/nfs > ' > > > <?xml version="1.0" encoding="UTF-8"?> > <response> > <lst name="responseHeader"><int name="status">500</int><int > name="QTime">181162</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">backup the collection time out:180s</str><str > name="trace">org.apache.solr.common.SolrException: backup the collection > time out:180s > at > org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:278) > at > org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:204) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156) > at > org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:663) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) > 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:1160) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092) > 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:518) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244) > 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.produceAndRun(ExecuteProduceConsume.java:246) > at > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) > at java.lang.Thread.run(Thread.java:745) > </str><int name="code">500</int></lst> > > > Regards, > S.Praveen > Technical Architech > LinkedIn: > https://www.linkedin.com/in/praveen-babu-73232889?trk=nav_responsive_tab_profile > > > > > On Wed, Sep 7, 2016 at 1:43 AM, Jan Høydahl <jan....@cominvent.com> wrote: > >> Hi Praveen. >> >> From the exception "Directory to contain snapshots doesn't exist: >> /home/ubuntu/top4_bk”, we can tell >> that you are not using a shared file system, e.g NFS, for your backup. If >> you read the Reference Guide docs >> you will see that this is a prerequisite. >> >> What happens is that the Overseer will first create the backup folder on >> the shared file system, and >> then each shard will put its backup inside of there. But since you do not >> use a shared file system, >> that folder only exists on the node running the Overseer, not all the >> other shards. >> >> -- >> Jan Høydahl, search solution architect >> Cominvent AS - www.cominvent.com >> >>> 6. sep. 2016 kl. 14.41 skrev Praveen Babu <subramani....@gmail.com>: >>> >>> Hi, >>> >>> I am unable to backup the solr collection. Please help >>> >>> >>> >>> curl ' >>> http://localhost:8983/solr/admin/collections?action=BACKUP&name=top4_bk& >> collection=topapp&location=/home/ubuntu/ >>> ' >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> <response> >>> >>> <lst name="responseHeader"><int name="status">500</int><int >>> name="QTime">39</int></lst><lst name="failure"><str >>> name="10.95.160.232:8983_solr">org.apache.solr.client.solrj. >> impl.HttpSolrClient$RemoteSolrException:Error >>> from server at http://<localhost>:8983/solr <http://10.95.160.232:8983/ >> solr>: >>> Failed to backup core=topapp_shard5_replica2 because >>> org.apache.solr.common.SolrException: Directory to contain snapshots >>> doesn't exist: /home/ubuntu/top4_bk</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:273) >>> >>> at >>> org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody( >> CollectionsHandler.java:204) >>> >>> at >>> org.apache.solr.handler.RequestHandlerBase.handleRequest( >> RequestHandlerBase.java:156) >>> >>> at >>> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest( >> HttpSolrCall.java:663) >>> >>> at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445) >>> >>> at >>> org.apache.solr.servlet.SolrDispatchFilter.doFilter( >> SolrDispatchFilter.java:257) >>> >>> at >>> org.apache.solr.servlet.SolrDispatchFilter.doFilter( >> SolrDispatchFilter.java:208) >>> >>> at >>> org.eclipse.jetty.servlet.ServletHandler$CachedChain. >> doFilter(ServletHandler.java:1668) >>> >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doHandle( >> ServletHandler.java:581) >>> >>> 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:1160) >>> >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doScope( >> ServletHandler.java:511) >>> >>> at >>> org.eclipse.jetty.server.session.SessionHandler. >> doScope(SessionHandler.java:185) >>> >>> at >>> org.eclipse.jetty.server.handler.ContextHandler. >> doScope(ContextHandler.java:1092) >>> >>> 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:518) >>> >>> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) >>> >>> at >>> org.eclipse.jetty.server.HttpConnection.onFillable( >> HttpConnection.java:244) >>> >>> 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. >> produceAndRun(ExecuteProduceConsume.java:246) >>> >>> at >>> org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run( >> ExecuteProduceConsume.java:156) >>> >>> at >>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( >> QueuedThreadPool.java:654) >>> >>> at >>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run( >> QueuedThreadPool.java:572) >>> >>> at java.lang.Thread.run(Thread.java:745) >>> >>> </str><int name="code">500</int></lst> >>> >>> </response> >>> Regards, >>> S.Praveen >>> Technical Architech >>> LinkedIn: >>> https://www.linkedin.com/in/praveen-babu-73232889?trk=nav_ >> responsive_tab_profile >> >>