There are times when it may be necessary to move the Leapwork Controller from one machine to another, either because you gained a new machine and data storage, or you are impacted by various other factors. For whatever reason, a migration is necessary in order to transfer flow data and other files from an old Controller to the new Controller.
Database key backup
Before beginning with data migration, ensure that you have a database encryption key for all stored data in Leapwork, as assets are encrypted and stored in an embedded SQLite database.
A restored Leapwork system could include the creation of a new Controller machine. In order for the new Controller to read restored SQLite files, a decryption key is necessary. If Leapwork Studio has not been previously connected to a specific Controller, you will receive a prompt to enter a valid encryption key for all SQLite files. Therefore, it is important to maintain a backup/restore strategy to secure the SQLite decryption key files.
Access the Decryption Key
-
Open Leapwork Studio
-
Go to Settings
-
Click on Controller Settings
-
Right-click on the Controller instance that you want to access
-
Click option Show Database encryption key and it will display the key needed to access the database files.
Note, the database encryption key is generated by and locally stored in your Controller instance. It is not accessible to the Leapwork staff, as Leapwork will not be able to assist you in retrieving this key. Additionally, this key is unique to each Controller instance – if you need the key for all Controllers in your environment, you must repeat the above instructions for each Controller instance.
Migration of a Controller
For example, Machine A is hosting an old Controller and Machine B will host a new Controller. The following procedures should be performed on both machines.
Machine A: Old Controller (2018.1 or above)
Before beginning with Controller migration, perform a backup of the latest data.
Prepare the backup
-
Log in to a Controller machine
-
Stop the Leapwork Controller services
-
Press the Win+R key combination to open the Run dialog
-
Type services.msc and press OK to open the Services window
-
Find the Leapwork Controller and stop it by right-clicking the mouse button and by clicking Stop.
-
-
Go to C:\Program Files\LEAPWORK folder
-
Copy the Assets folder
-
Navigate to the backup location
-
Paste the Assets folder and wait until the file copy process has completed
Please refer to the article How to Backup and Restore Leapwork database to read more about the backup process.
Migrate to a new Controller
Once you have the database encryption key and database backup, you are ready for migration. Review the following steps:
Machine B: New Controller (2018.1 or above)
-
Install Leapwork Controller (same version as Studio and Agent)
-
Stop the Leapwork Controller Windows service.
-
Replace all of the *.sqlite files from the Assets library.
-
Start the Leapwork Controller Windows service.
-
Open Leapwork Studio and enter the encryption key for the database
-
Open Leapwork Studio and confirm that all of your flows, data, and users, etc., are present. If yes, then you are finished with the backup process.
If you have any questions, contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.