Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vlad_komarov
Partner - Specialist III
Partner - Specialist III

Error while executing RepositorySnapshotManager.exe

Hi all,

I am trying to execute the Backup process using RepositorySnapshotManager.exe.

Using the following command in BAT file:

"D:\Program Files\Qlik\Sense\Repository\Util\RepositorySnapshotManager\RepositorySnapshotManager.exe" -backup –p="D:\QS_Backups" –ver=2.1.1.0 –u=PROTOTYPE\AAAAAAAA –p=BBBBBBBBB

the base Backup folder (D:\QS_Backups) exists on the system and is accessible by  AAAAAAAA user.


Executing the command above produces the following error in the log:

Starting SnapshotManager, mode=backup

Nov 10 04:35:43 2015: Error: Base directory  does not exist or insufficient permissions to read directory

Just wondering what I am missing here....

I would appreciate any advice.

Best regards,

Vladimir

10 Replies
RSvebeck
Specialist
Specialist

Probably you must specify your backup path:

RepositorySnapshotManager.exe -backup -path=D:\Backup

Svebeck Consulting AB
vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Robert,

The "-p=" keyword works the same way as "-path=", so that was not a main reason...

The problem was that one of the "optional" parameters (by Qlik documentation) was actually a "required" one.

I've managed to use the following code:


"d:\Program Files\Qlik\Sense\Repository\Util\RepositorySnapshotManager\RepositorySnapshotManager.exe" -backup -ver=2.1.1.0 -path="D:\QS_Backups" -supportingContentLocation="D:\QS_Backups" -u=SERVER\USER -p=0123456789 -databasePassword=9876543210 -certificatePassword=999999999999 -f


db_qliksense
Creator
Creator

For me, the issue is with restore. In the process of restore, qlik sense application got uninstalled and lost everything (on test). Logs only have logs for "uninstall". Can anyone help me here?

snapshotManager_2017030901240952.log:

Uninstalling system.

Uninstaller log file is:

D:\RepositorySnapshotManager\logs\Qlik_Sense_setup-3.0.exe_uninstall_cleanup_2017030901241030.log, review this log file upon error

Mar 09 01:10:30 2017: Calling uninstaller from path C:\ProgramData\Package Cache\{0bd58496-5fc2-4e77-a8fe-a4fb8f92d6cf}\Qlik_Sense_setup.exe

Mar 09 01:10:30 2017: Uninstaller called with args=-s -l "D:\Qlik_Sense\RSMBKP\RepositorySnapshotManager\logs\Qlik_Sense_setup-3.0.exe_uninstall_cleanup_2017030901241030.log" -uninstall -cleanup

Mar 09 01:14:05 2017: Error: Failed to delete system directory ProgramData\Qlik recursively. The uninstaller may have failed. Check uninstaller log files for further information

Exception in thread main, msg=Access to the path '292e127b-e017-46be-a873-d5be30d9cef4.2016_10_18_06_58_43.5133F8992A6D049A1B83.log' is denied., code=-2147024891

vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Manoj,

Can you post your RSM command (with all parameters) here? I've never heard that RSM is uninstalling the QlikSense components... It suppose to stop all services, but that should be it...

VK

db_qliksense
Creator
Creator

Hi,

Here goes the command with parameters:

RepositorySnapshotManager.exe -restore -path=D:\0005\.08.03.2017-07.31.09-Z.backup -installer="D:\Qlik Sense 3.0" -databasePassword="123456789" -u="DOMAIN\USER1" -p="password"

Qlik sense is v3.0 for me.

this is what I have done till now:

1) created backup of qlik from ONE instance. - RSM did great here.

2) trying to restore on different instance- failing here. Get warnings for hostname does not match. But, program was past that.

vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Let me find my restore command syntax and I will compare it with your code...

VK

db_qliksense
Creator
Creator

For your information, if it helps:

I am trying to restore the backup on an existing qliksense installation.

This is as part of our exercise to  create/implement disaster recovery (DR) plan. We plan to backup one instance and daily restore on a different server.

vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

It should not matter - the RSM is suppose to update the Repository only, without changing any executable files...

VK

db_qliksense
Creator
Creator

Just happened to test the exact same restore on clean machine and it worked fine.