Added error details

From: Anusha R9 <anusha...@ibm.com>
Date: Thursday, 2 November 2023 at 12:06 PM
To: dev@solr.apache.org <dev@solr.apache.org>
Subject: Solr Backup API Queries
Hi Team,

We are trying to backup indexes in Prod. It created backup snapshots in 
mentioned location. But it didn't create backup.properties, zk_backup files in 
that location.
So, when we use restore api, we are not able to restore, It failed with 
exception that "No backup.properties file"
We need help to know why backup.properties file is not created when backup we 
ran backup api. Below is the api we are using for backup.
http://username:password@hostname:port/solr/admin/collections?action=BACKUP&name=$newBackupName&collection=$myCollectionName&location=/opt/epricer-solr-backup/DR

This is the error we got, when we executed backup api
2023-11-01 13:36:48.842 INFO (OverseerThreadFactory-32-thread-5) [c:document2y] 
o.a.s.c.a.c.BackupCmd Starting backup of collection=document2y with 
backupName=doc2ysnapshot_2211.2023.11.01-13.36.48 at 
location=file:///opt/epricer-solr-backup/DR/doc2ysnapshot_2211.2023.11.01-13.36.48/document2y
2023-11-01 13:36:48.855 INFO (qtp89821352-36033) [c:document2y s:shard1 
r:core_node4 x:document2y_shard1_replica_n2]o.a.s.h.IncrementalShardBackup 
Creating backup snapshot at 
file:///opt/epricer-solr-backup/DR/doc2ysnapshot_2211.2023.11.01-13.36.48/document2y
 shardBackupMetadataFile:org.apache.solr.core.backup.ShardBackupId@e16ed851
2023-11-01 13:46:48.845 ERROR (OverseerThreadFactory-32-thread-5) 
[c:document2y] o.a.s.c.a.c.BackupCmd Error happened during incremental backup 
for collection: document2y => org.apache.solr.common.SolrException: Could not 
backup all shards
org.apache.solr.common.SolrException: Could not backup all shards
at 
org.apache.solr.cloud.api.collections.BackupCmd.incrementalCopyIndexFiles(BackupCmd.java:339)
 ~[?:?]
at org.apache.solr.cloud.api.collections.BackupCmd.call(BackupCmd.java:119) 
~[?:?]
2023-11-01 13:46:48.846 ERROR (OverseerThreadFactory-32-thread-5) 
[c:document2y]o.a.s.c.a.c.OverseerCollectionMessageHandler Collection: 
document2y operation: backup failed => java.nio.file.NoSuchFileException: 
/opt/epricer-solr-backup/DR/doc2ysnapshot_2211.2023.11.01-13.36.48/document2y/zk_backup_0
java.nio.file.NoSuchFileException: 
/opt/epricer-solr-backup/DR/doc2ysnapshot_2211.2023.11.01-13.36.48/document2y/zk_backup_0
at 
org.apache.solr.core.backup.repository.LocalFileSystemRepository.deleteDirectory(LocalFileSystemRepository.java:105)
 ~[?:?]
at 
org.apache.solr.cloud.api.collections.DeleteBackupCmd.deleteBackupIds(DeleteBackupCmd.java:212)
 ~[?:?]
at 
org.apache.solr.cloud.api.collections.CollectionHandlingUtils.cleanBackup(CollectionHandlingUtils.java:351)
 ~[?:?]
at org.apache.solr.cloud.api.collections.BackupCmd.call(BackupCmd.java:126) 
~[?:?]



We are using Solr version is 9.0.0 and solr cluster configuration.
Also, I need clarification on whether we need to run solr backup api in leader 
or follower solr server node?
We need to run this backup api in Production. Can someone please answer our 
queries.

Thanks and Regards,
Anusha R


Reply via email to