You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Sathish Ponnusamy <sa...@gmail.com> on 2024/08/07 17:45:44 UTC

Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

We have 3+3 solr/zk node setup in GCP environment with SSL enabled. While
trying to backup the collection in the GCS bucket we are facing the below
issue. Please find the steps for the same. How to resolve the PKIX error
for the Solr Backup API?
*Setup:*

   - Solr is enabled with SSL
   - Backup repo is set GCS Bucket
   - GCP VM GCP Cloud Storage both are in the same GCP project. The VM SA
   account has storage object admin permissions.

*Steps:*



Step -1- Perform the backup using the backup API

http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
_bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000



Step – 2: Check the  status of the backup

              https://{{hostname}}
/solr/admin/collections?action=REQUESTSTATUS&requestid=1000



*Getting below error*

{

    "responseHeader": {

        "status": 0,

        "QTime": 2

    },

    "Operation backup caused exception:":
"com.google.cloud.storage.StorageException:com.google.cloud.storage.StorageException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target",

    "exception": {

        "msg": "PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target",

        "rspCode": -1

    },

    "status": {

        "state": "failed",

        "msg": "found [1000] in failed tasks"

    }

}


Regards
Sathish Ponnusamy

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Sathish Ponnusamy <sa...@gmail.com>.
Hi All,

We have used google FUSE to mount the *GCS bucket *as a shared file system
to all our solr nodes and are able to do backup and restore successfully.
But with the GCS backup repository issue remains the same.

Sathish Ponnusamy

Chennai
m: + 91 9962331981


On Wed, Aug 14, 2024 at 10:13 AM Sathish Ponnusamy <sa...@gmail.com>
wrote:

> Hi Neeraj, Thank you for your input. We have done the backup and restore
> setup with GCS bucket and it is working successfully without any issues in
> case the solr is not ssl enabled.  The given problem occurs when solr is
> ssl enabled also we would like to choose a GCS bucket to reduce the storage
> cost. Incase of a GCP filestore that will have significant cost as compared
> to GCS bucket.
>
> Sathish Ponnusamy
>
> Chennai
> m: + 91 9962331981
>
>
> On Wed, Aug 14, 2024 at 9:48 AM Neeraj giri <gi...@gmail.com>
> wrote:
>
>> Hi,
>> I have first hand experience in setting up solr backup, and I don’t
>> recommend GCS bucket for backup. A better and more reliable way is to use
>> GCP Filestore, its a shared file system which you need to mount on all the
>> nodes. Post that you simply need to give path address in solr backup
>> command.
>> Regards,
>>
>> Neeraj giri
>>
>>
>> On Wed, 14 Aug 2024 at 9:34 AM, Sathish Ponnusamy <sathishrpt24@gmail.com
>> >
>> wrote:
>>
>> > Hi Ross,
>> >
>> > Thanks for the input., Still we are struggling to solve this issue. In
>> this
>> > case solr will connect to the GCS bucket in the backend to backup the
>> data,
>> > how can I get the SSL Key of google cloud storage?
>> >
>> > Sathish Ponnusamy
>> >
>> > Chennai
>> > m: + 91 9962331981
>> >
>> >
>> >
>> > On Sun, Aug 11, 2024 at 3:58 AM Ross Merrifield <
>> rosswmerrifield@gmail.com
>> > >
>> > wrote:
>> >
>> > > Haven't seen this particular issue, but from the error msg it seems
>> like
>> > > you need to import the remote end's SSL key into your JDK's keystore.
>> > >
>> > > There's lots of guides online showing how to do this e.g.
>> > > https://www.java-samples.com/showtutorial.php?tutorialid=210
>> > >
>> > > Ross
>> > >
>> > > On Fri, Aug 9, 2024 at 11:57 PM Sathish Ponnusamy <
>> > sathishrpt24@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi, Just checking again if anyone came across below issue?
>> > > >
>> > > > Regards
>> > > > Sathish P
>> > > >
>> > > > On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <
>> sathishrpt24@gmail.com>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > We have 3+3 solr/zk node setup in GCP environment with SSL
>> enabled.
>> > > While
>> > > > > trying to backup the collection in the GCS bucket we are facing
>> the
>> > > below
>> > > > > issue. Please find the steps for the same. How to resolve the PKIX
>> > > error
>> > > > > for the Solr Backup API?
>> > > > > *Setup:*
>> > > > >
>> > > > >    - Solr is enabled with SSL
>> > > > >    - Backup repo is set GCS Bucket
>> > > > >    - GCP VM GCP Cloud Storage both are in the same GCP project.
>> The
>> > VM
>> > > SA
>> > > > >    account has storage object admin permissions.
>> > > > >
>> > > > > *Steps:*
>> > > > >
>> > > > >
>> > > > >
>> > > > > Step -1- Perform the backup using the backup API
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
>> > > > > _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
>> > > > >
>> > > > >
>> > > > >
>> > > > > Step – 2: Check the  status of the backup
>> > > > >
>> > > > >               https://{{hostname}}
>> > > > > /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
>> > > > >
>> > > > >
>> > > > >
>> > > > > *Getting below error*
>> > > > >
>> > > > > {
>> > > > >
>> > > > >     "responseHeader": {
>> > > > >
>> > > > >         "status": 0,
>> > > > >
>> > > > >         "QTime": 2
>> > > > >
>> > > > >     },
>> > > > >
>> > > > >     "Operation backup caused exception:":
>> > > > "com.google.cloud.storage.StorageException:com.google
>> > > > .cloud.storage.StorageException:
>> > > > > PKIX path building failed:
>> > > > > sun.security.provider.certpath.SunCertPathBuilderException:
>> unable to
>> > > > find
>> > > > > valid certification path to requested target",
>> > > > >
>> > > > >     "exception": {
>> > > > >
>> > > > >         "msg": "PKIX path building failed:
>> > > > > sun.security.provider.certpath.SunCertPathBuilderException:
>> unable to
>> > > > find
>> > > > > valid certification path to requested target",
>> > > > >
>> > > > >         "rspCode": -1
>> > > > >
>> > > > >     },
>> > > > >
>> > > > >     "status": {
>> > > > >
>> > > > >         "state": "failed",
>> > > > >
>> > > > >         "msg": "found [1000] in failed tasks"
>> > > > >
>> > > > >     }
>> > > > >
>> > > > > }
>> > > > >
>> > > > >
>> > > > > Regards
>> > > > > Sathish Ponnusamy
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Sathish Ponnusamy <sa...@gmail.com>.
Hi Neeraj, Thank you for your input. We have done the backup and restore
setup with GCS bucket and it is working successfully without any issues in
case the solr is not ssl enabled.  The given problem occurs when solr is
ssl enabled also we would like to choose a GCS bucket to reduce the storage
cost. Incase of a GCP filestore that will have significant cost as compared
to GCS bucket.

Sathish Ponnusamy

Chennai
m: + 91 9962331981


On Wed, Aug 14, 2024 at 9:48 AM Neeraj giri <gi...@gmail.com> wrote:

> Hi,
> I have first hand experience in setting up solr backup, and I don’t
> recommend GCS bucket for backup. A better and more reliable way is to use
> GCP Filestore, its a shared file system which you need to mount on all the
> nodes. Post that you simply need to give path address in solr backup
> command.
> Regards,
>
> Neeraj giri
>
>
> On Wed, 14 Aug 2024 at 9:34 AM, Sathish Ponnusamy <sa...@gmail.com>
> wrote:
>
> > Hi Ross,
> >
> > Thanks for the input., Still we are struggling to solve this issue. In
> this
> > case solr will connect to the GCS bucket in the backend to backup the
> data,
> > how can I get the SSL Key of google cloud storage?
> >
> > Sathish Ponnusamy
> >
> > Chennai
> > m: + 91 9962331981
> >
> >
> >
> > On Sun, Aug 11, 2024 at 3:58 AM Ross Merrifield <
> rosswmerrifield@gmail.com
> > >
> > wrote:
> >
> > > Haven't seen this particular issue, but from the error msg it seems
> like
> > > you need to import the remote end's SSL key into your JDK's keystore.
> > >
> > > There's lots of guides online showing how to do this e.g.
> > > https://www.java-samples.com/showtutorial.php?tutorialid=210
> > >
> > > Ross
> > >
> > > On Fri, Aug 9, 2024 at 11:57 PM Sathish Ponnusamy <
> > sathishrpt24@gmail.com>
> > > wrote:
> > >
> > > > Hi, Just checking again if anyone came across below issue?
> > > >
> > > > Regards
> > > > Sathish P
> > > >
> > > > On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <
> sathishrpt24@gmail.com>
> > > > wrote:
> > > >
> > > > >
> > > > > We have 3+3 solr/zk node setup in GCP environment with SSL enabled.
> > > While
> > > > > trying to backup the collection in the GCS bucket we are facing the
> > > below
> > > > > issue. Please find the steps for the same. How to resolve the PKIX
> > > error
> > > > > for the Solr Backup API?
> > > > > *Setup:*
> > > > >
> > > > >    - Solr is enabled with SSL
> > > > >    - Backup repo is set GCS Bucket
> > > > >    - GCP VM GCP Cloud Storage both are in the same GCP project. The
> > VM
> > > SA
> > > > >    account has storage object admin permissions.
> > > > >
> > > > > *Steps:*
> > > > >
> > > > >
> > > > >
> > > > > Step -1- Perform the backup using the backup API
> > > > >
> > > > >
> > > >
> > >
> >
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> > > > > _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
> > > > >
> > > > >
> > > > >
> > > > > Step – 2: Check the  status of the backup
> > > > >
> > > > >               https://{{hostname}}
> > > > > /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
> > > > >
> > > > >
> > > > >
> > > > > *Getting below error*
> > > > >
> > > > > {
> > > > >
> > > > >     "responseHeader": {
> > > > >
> > > > >         "status": 0,
> > > > >
> > > > >         "QTime": 2
> > > > >
> > > > >     },
> > > > >
> > > > >     "Operation backup caused exception:":
> > > > "com.google.cloud.storage.StorageException:com.google
> > > > .cloud.storage.StorageException:
> > > > > PKIX path building failed:
> > > > > sun.security.provider.certpath.SunCertPathBuilderException: unable
> to
> > > > find
> > > > > valid certification path to requested target",
> > > > >
> > > > >     "exception": {
> > > > >
> > > > >         "msg": "PKIX path building failed:
> > > > > sun.security.provider.certpath.SunCertPathBuilderException: unable
> to
> > > > find
> > > > > valid certification path to requested target",
> > > > >
> > > > >         "rspCode": -1
> > > > >
> > > > >     },
> > > > >
> > > > >     "status": {
> > > > >
> > > > >         "state": "failed",
> > > > >
> > > > >         "msg": "found [1000] in failed tasks"
> > > > >
> > > > >     }
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > > Regards
> > > > > Sathish Ponnusamy
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Neeraj giri <gi...@gmail.com>.
Hi,
I have first hand experience in setting up solr backup, and I don’t
recommend GCS bucket for backup. A better and more reliable way is to use
GCP Filestore, its a shared file system which you need to mount on all the
nodes. Post that you simply need to give path address in solr backup
command.
Regards,

Neeraj giri


On Wed, 14 Aug 2024 at 9:34 AM, Sathish Ponnusamy <sa...@gmail.com>
wrote:

> Hi Ross,
>
> Thanks for the input., Still we are struggling to solve this issue. In this
> case solr will connect to the GCS bucket in the backend to backup the data,
> how can I get the SSL Key of google cloud storage?
>
> Sathish Ponnusamy
>
> Chennai
> m: + 91 9962331981
>
>
>
> On Sun, Aug 11, 2024 at 3:58 AM Ross Merrifield <rosswmerrifield@gmail.com
> >
> wrote:
>
> > Haven't seen this particular issue, but from the error msg it seems like
> > you need to import the remote end's SSL key into your JDK's keystore.
> >
> > There's lots of guides online showing how to do this e.g.
> > https://www.java-samples.com/showtutorial.php?tutorialid=210
> >
> > Ross
> >
> > On Fri, Aug 9, 2024 at 11:57 PM Sathish Ponnusamy <
> sathishrpt24@gmail.com>
> > wrote:
> >
> > > Hi, Just checking again if anyone came across below issue?
> > >
> > > Regards
> > > Sathish P
> > >
> > > On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <sa...@gmail.com>
> > > wrote:
> > >
> > > >
> > > > We have 3+3 solr/zk node setup in GCP environment with SSL enabled.
> > While
> > > > trying to backup the collection in the GCS bucket we are facing the
> > below
> > > > issue. Please find the steps for the same. How to resolve the PKIX
> > error
> > > > for the Solr Backup API?
> > > > *Setup:*
> > > >
> > > >    - Solr is enabled with SSL
> > > >    - Backup repo is set GCS Bucket
> > > >    - GCP VM GCP Cloud Storage both are in the same GCP project. The
> VM
> > SA
> > > >    account has storage object admin permissions.
> > > >
> > > > *Steps:*
> > > >
> > > >
> > > >
> > > > Step -1- Perform the backup using the backup API
> > > >
> > > >
> > >
> >
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> > > > _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
> > > >
> > > >
> > > >
> > > > Step – 2: Check the  status of the backup
> > > >
> > > >               https://{{hostname}}
> > > > /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
> > > >
> > > >
> > > >
> > > > *Getting below error*
> > > >
> > > > {
> > > >
> > > >     "responseHeader": {
> > > >
> > > >         "status": 0,
> > > >
> > > >         "QTime": 2
> > > >
> > > >     },
> > > >
> > > >     "Operation backup caused exception:":
> > > "com.google.cloud.storage.StorageException:com.google
> > > .cloud.storage.StorageException:
> > > > PKIX path building failed:
> > > > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> > > find
> > > > valid certification path to requested target",
> > > >
> > > >     "exception": {
> > > >
> > > >         "msg": "PKIX path building failed:
> > > > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> > > find
> > > > valid certification path to requested target",
> > > >
> > > >         "rspCode": -1
> > > >
> > > >     },
> > > >
> > > >     "status": {
> > > >
> > > >         "state": "failed",
> > > >
> > > >         "msg": "found [1000] in failed tasks"
> > > >
> > > >     }
> > > >
> > > > }
> > > >
> > > >
> > > > Regards
> > > > Sathish Ponnusamy
> > > >
> > > >
> > >
> >
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Sathish Ponnusamy <sa...@gmail.com>.
Hi Ross,

Thanks for the input., Still we are struggling to solve this issue. In this
case solr will connect to the GCS bucket in the backend to backup the data,
how can I get the SSL Key of google cloud storage?

Sathish Ponnusamy

Chennai
m: + 91 9962331981



On Sun, Aug 11, 2024 at 3:58 AM Ross Merrifield <ro...@gmail.com>
wrote:

> Haven't seen this particular issue, but from the error msg it seems like
> you need to import the remote end's SSL key into your JDK's keystore.
>
> There's lots of guides online showing how to do this e.g.
> https://www.java-samples.com/showtutorial.php?tutorialid=210
>
> Ross
>
> On Fri, Aug 9, 2024 at 11:57 PM Sathish Ponnusamy <sa...@gmail.com>
> wrote:
>
> > Hi, Just checking again if anyone came across below issue?
> >
> > Regards
> > Sathish P
> >
> > On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <sa...@gmail.com>
> > wrote:
> >
> > >
> > > We have 3+3 solr/zk node setup in GCP environment with SSL enabled.
> While
> > > trying to backup the collection in the GCS bucket we are facing the
> below
> > > issue. Please find the steps for the same. How to resolve the PKIX
> error
> > > for the Solr Backup API?
> > > *Setup:*
> > >
> > >    - Solr is enabled with SSL
> > >    - Backup repo is set GCS Bucket
> > >    - GCP VM GCP Cloud Storage both are in the same GCP project. The VM
> SA
> > >    account has storage object admin permissions.
> > >
> > > *Steps:*
> > >
> > >
> > >
> > > Step -1- Perform the backup using the backup API
> > >
> > >
> >
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> > > _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
> > >
> > >
> > >
> > > Step – 2: Check the  status of the backup
> > >
> > >               https://{{hostname}}
> > > /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
> > >
> > >
> > >
> > > *Getting below error*
> > >
> > > {
> > >
> > >     "responseHeader": {
> > >
> > >         "status": 0,
> > >
> > >         "QTime": 2
> > >
> > >     },
> > >
> > >     "Operation backup caused exception:":
> > "com.google.cloud.storage.StorageException:com.google
> > .cloud.storage.StorageException:
> > > PKIX path building failed:
> > > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> > find
> > > valid certification path to requested target",
> > >
> > >     "exception": {
> > >
> > >         "msg": "PKIX path building failed:
> > > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> > find
> > > valid certification path to requested target",
> > >
> > >         "rspCode": -1
> > >
> > >     },
> > >
> > >     "status": {
> > >
> > >         "state": "failed",
> > >
> > >         "msg": "found [1000] in failed tasks"
> > >
> > >     }
> > >
> > > }
> > >
> > >
> > > Regards
> > > Sathish Ponnusamy
> > >
> > >
> >
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Ross Merrifield <ro...@gmail.com>.
Haven't seen this particular issue, but from the error msg it seems like
you need to import the remote end's SSL key into your JDK's keystore.

There's lots of guides online showing how to do this e.g.
https://www.java-samples.com/showtutorial.php?tutorialid=210

Ross

On Fri, Aug 9, 2024 at 11:57 PM Sathish Ponnusamy <sa...@gmail.com>
wrote:

> Hi, Just checking again if anyone came across below issue?
>
> Regards
> Sathish P
>
> On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <sa...@gmail.com>
> wrote:
>
> >
> > We have 3+3 solr/zk node setup in GCP environment with SSL enabled. While
> > trying to backup the collection in the GCS bucket we are facing the below
> > issue. Please find the steps for the same. How to resolve the PKIX error
> > for the Solr Backup API?
> > *Setup:*
> >
> >    - Solr is enabled with SSL
> >    - Backup repo is set GCS Bucket
> >    - GCP VM GCP Cloud Storage both are in the same GCP project. The VM SA
> >    account has storage object admin permissions.
> >
> > *Steps:*
> >
> >
> >
> > Step -1- Perform the backup using the backup API
> >
> >
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> > _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
> >
> >
> >
> > Step – 2: Check the  status of the backup
> >
> >               https://{{hostname}}
> > /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
> >
> >
> >
> > *Getting below error*
> >
> > {
> >
> >     "responseHeader": {
> >
> >         "status": 0,
> >
> >         "QTime": 2
> >
> >     },
> >
> >     "Operation backup caused exception:":
> "com.google.cloud.storage.StorageException:com.google
> .cloud.storage.StorageException:
> > PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find
> > valid certification path to requested target",
> >
> >     "exception": {
> >
> >         "msg": "PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find
> > valid certification path to requested target",
> >
> >         "rspCode": -1
> >
> >     },
> >
> >     "status": {
> >
> >         "state": "failed",
> >
> >         "msg": "found [1000] in failed tasks"
> >
> >     }
> >
> > }
> >
> >
> > Regards
> > Sathish Ponnusamy
> >
> >
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Sathish Ponnusamy <sa...@gmail.com>.
Hi, Just checking again if anyone came across below issue?

Regards
Sathish P

On Wed, 7 Aug, 2024, 23:15 Sathish Ponnusamy, <sa...@gmail.com>
wrote:

>
> We have 3+3 solr/zk node setup in GCP environment with SSL enabled. While
> trying to backup the collection in the GCS bucket we are facing the below
> issue. Please find the steps for the same. How to resolve the PKIX error
> for the Solr Backup API?
> *Setup:*
>
>    - Solr is enabled with SSL
>    - Backup repo is set GCS Bucket
>    - GCP VM GCP Cloud Storage both are in the same GCP project. The VM SA
>    account has storage object admin permissions.
>
> *Steps:*
>
>
>
> Step -1- Perform the backup using the backup API
>
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
>
>
>
> Step – 2: Check the  status of the backup
>
>               https://{{hostname}}
> /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
>
>
>
> *Getting below error*
>
> {
>
>     "responseHeader": {
>
>         "status": 0,
>
>         "QTime": 2
>
>     },
>
>     "Operation backup caused exception:": "com.google.cloud.storage.StorageException:com.google.cloud.storage.StorageException:
> PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target",
>
>     "exception": {
>
>         "msg": "PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target",
>
>         "rspCode": -1
>
>     },
>
>     "status": {
>
>         "state": "failed",
>
>         "msg": "found [1000] in failed tasks"
>
>     }
>
> }
>
>
> Regards
> Sathish Ponnusamy
>
>

Re: Solr-9.6.0-Backup API - GCS Repository - PKIX path building failed

Posted by Sathish Ponnusamy <sa...@gmail.com>.
Hi,

Just checking if anyone has seen this issue before any fix is provided.

-----------------------
We have 3+3 solr/zk node setup in GCP environment with SSL enabled. While
trying to backup the collection in the GCS bucket we are facing the below
issue. Please find the steps for the same. How to resolve the PKIX error
for the Solr Backup API?
*Setup:*

   - Solr is enabled with SSL
   - Backup repo is set GCS Bucket
   - GCP VM GCP Cloud Storage both are in the same GCP project. The VM SA
   account has storage object admin permissions.

*Steps:*



Step -1- Perform the backup using the backup API

http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
_bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000



Step – 2: Check the  status of the backup

              https://{{hostname}}
/solr/admin/collections?action=REQUESTSTATUS&requestid=1000



*Getting below error*

{

    "responseHeader": {

        "status": 0,

        "QTime": 2

    },

    "Operation backup caused exception:":
"com.google.cloud.storage.StorageException:com.google.cloud.storage.StorageException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target",

    "exception": {

        "msg": "PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target",

        "rspCode": -1

    },

    "status": {

        "state": "failed",

        "msg": "found [1000] in failed tasks"

    }

}


---------------------------------------------------------------------------

On Wed, Aug 7, 2024 at 11:15 PM Sathish Ponnusamy <sa...@gmail.com>
wrote:

>
> We have 3+3 solr/zk node setup in GCP environment with SSL enabled. While
> trying to backup the collection in the GCS bucket we are facing the below
> issue. Please find the steps for the same. How to resolve the PKIX error
> for the Solr Backup API?
> *Setup:*
>
>    - Solr is enabled with SSL
>    - Backup repo is set GCS Bucket
>    - GCP VM GCP Cloud Storage both are in the same GCP project. The VM SA
>    account has storage object admin permissions.
>
> *Steps:*
>
>
>
> Step -1- Perform the backup using the backup API
>
> http*s*://{{hostname}}/solr/admin/collections?action=BACKUP&name=COLLECTION_NAME
> _bkup&collection= COLLECTION_NAME &location=solr_backup&async=1000
>
>
>
> Step – 2: Check the  status of the backup
>
>               https://{{hostname}}
> /solr/admin/collections?action=REQUESTSTATUS&requestid=1000
>
>
>
> *Getting below error*
>
> {
>
>     "responseHeader": {
>
>         "status": 0,
>
>         "QTime": 2
>
>     },
>
>     "Operation backup caused exception:": "com.google.cloud.storage.StorageException:com.google.cloud.storage.StorageException:
> PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target",
>
>     "exception": {
>
>         "msg": "PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target",
>
>         "rspCode": -1
>
>     },
>
>     "status": {
>
>         "state": "failed",
>
>         "msg": "found [1000] in failed tasks"
>
>     }
>
> }
>
>
> Regards
> Sathish Ponnusamy
>
>