You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/02/05 12:34:20 UTC

[GitHub] [solr-operator] echarles opened a new issue #404: Can not use the collections API to backup to S3

echarles opened a new issue #404:
URL: https://github.com/apache/solr-operator/issues/404


   Hi, I have a running solrcloud on my EKS cluster and can successfully use `SolrBackup` to create backups to a S3 bucket. As `solr-cloud` does not (yet) ship out-of-the-box solution to restore from a backup, I have tried to use the core Solr Collections API documented on https://solr.apache.org/guide/8_11/collection-management.html#restore. This throws a error `msg":"specified location s3://my-bucket does not exist`...
   
   To understand if the issue was due an incompatiblity e.g. on format, folder... I have tried to use the core Solr Collection API to create a backup to S3 https://solr.apache.org/guide/8_11/collection-management.html#backup and https://solr.apache.org/guide/8_11/making-and-restoring-backups.html#s3backuprepository with the following request.
   
   ````bash
   curl http://localhost:8983/solr/admin/collections -d '
   action=BACKUP&
   repository=s3-bu&
   collection=backups&
   location=s3://datalayer-backups&
   name=backup-dir'
   ```
   
   This results in the following error
   
   ````
   {
     "responseHeader":{
       "status":500,
       "QTime":59},
     "error":{
       "metadata":[
         "error-class","org.apache.solr.common.SolrException",
         "root-error-class","org.apache.solr.common.SolrException"],
       "msg":"specified location s3://my-bucket/ does not exist.",
       "trace":"org.apache.solr.common.SolrException: specified location s3://my-bucket/ does not exist.\n\tat org.apache.solr.handler.admin.CollectionsHandler$CollectionOperation.lambda$static$33(CollectionsHandler.java:1134)\n\tat org.apache.solr.handler.admin.CollectionsHandler$CollectionOperation.execute(CollectionsHandler.java:1453)\n\tat org.apache.solr.handler.admin.CollectionsHandler.invokeAction(Col
   ```
   
   I have precreated the `backup-id` in my S3 bucket, tried various format for the collection (removed `s3://` prefix) without luck.
   
   Are my parameters wrong, do I have an issues with my env (env works with `SolrBackup` and K8ssandra backup/restore) or is there a issue to fix in the source code?
   
   Thx!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] echarles commented on issue #404: Can not use the collections API to backup to S3

Posted by GitBox <gi...@apache.org>.
echarles commented on issue #404:
URL: https://github.com/apache/solr-operator/issues/404#issuecomment-1030657018


   I have tested on my laptop with a local and receive the same error. This is thus not related to the operator. I let this open a bit before closing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] echarles closed issue #404: Can not use the collections API to backup to S3

Posted by GitBox <gi...@apache.org>.
echarles closed issue #404:
URL: https://github.com/apache/solr-operator/issues/404


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] echarles commented on issue #404: Can not use the collections API to backup to S3

Posted by GitBox <gi...@apache.org>.
echarles commented on issue #404:
URL: https://github.com/apache/solr-operator/issues/404#issuecomment-1030658641


   There is a very recent thread on the solr mailing list on that exactly https://lists.apache.org/list?users@solr.apache.org:lte=1M:S3%20backup
   
   I am unblocked, closing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org