BookmarkSubscribeRSS Feed
jbond007
Obsidian | Level 7

Hi SAS Communities, 

 

I'm trying to restore a backup from another SAS VIYA server to a new SAS VIYA server (both 3.5) using sas-admin restore but encountered an error.

The command below as follows:

./sas-admin restore start --backup-name /sasbackup/<backupID> --slug restoreTest

An error occurred while initiating the restore operation.

 

The following errors have occurred:

The request is not valid.

Http Status:400 

Detailed Messages:

traceID: af80236baf7dc36d

path: deploymentBackup/restores/jobs

 

Question, in my new SAS VIYA3.5 server we are now using RHEL8 whereas the old is from RHEL7 does it affect this issue but as per my research the version of SAS VIYA only matters which is both currently VIYA3.5. Seeking your help on this. TIA

 

3 REPLIES 3
RobH
SAS Employee

A couple of things to look at here. As per SAS Help Center: Backup and Restore: Perform a Restore to an Alternate Deployment check the section entitled "Prerequisites for Performing a Restore to an Alternate Deployment" and ensure you meet all listed.  You cannot use a different version of VIYA 3.5 between source and target.  Also note that as per SAS Supported Operating Systems you need to be on a  February 2021 release of SAS Viya 3.5 for RHEL 8. 

Basically to put it another way the versions of the SAS Viya packages including the hot fixes must be exactly the same versions in both source and target deployments. For this to be an option you would need to have used a mirror repository for your current SAS Viya deployment and still have that mirror repository so that you could use it for the new deployment on RHEL 8. The order used to create the mirror repository would also have to be one that is supported for installation on SAS Viya on RHEL 8 so would need to be the February 2021 release of SAS Viya 3.5 or a later release. 

jbond007
Obsidian | Level 7
Hi RobH,
Thanks for the quick response. For the prerequisites, I'm okay with this. I'm just using one machine.
The thing im trying to do now is like the Method A. The first step in the method A is it referring the contents of the backup from old server which is named as a backup ID?

Step 1 on Method A "copy the content of the source shared vault to the alternate shared vault."

Once i copied it, i dont see it on the backup list for the command
sas-admin backup list
michele_sas
SAS Employee

Hi @jbond007 

 

When preforming a restore to alternate deployment, there are three shared vault locations.

1. Source shared vault - the shared vault of the source deployment that has the Viya backups from the source deployment.

2. Target shared vault - this shared vault of the target deployment. This is the shared vault location you setup for the target deployment. This would have backups from the target deployment. Remember you need to test backup and restore in the target deployment as a prerequisite. 

3. Alternate shared vault - this is the shared vault location you create just for the purpose of restoring a backup to alternate deployment. 

 

Restore to alternate deployment requires you create an alternate shared vault and that's true regardless of what method A or B you plan to use.  

 

You then copy the contents of the source shared vault to the alternate shared vault. 

Then if you are using Method A you then edit the backup configuration using SAS Environment Manager and set the sharedVault property to be the location of the alternate shared vault.  After you do that you should see your backup from the source system when performing step 4 of Method A  

sas-admin backup list

If you have further questions, I recommend opening a case with SAS Technical Support. 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 565 views
  • 0 likes
  • 3 in conversation