local license server database backup
How can we backup and restore the licenses for a License Server in an offline model?
Thanks and Regards,
We are using flexnetls 2021.12 version and followed below steps for backup and restore. Even though we got the message "Database Restored" we couldn't find required details. please confirm if any steps missed.
1. Activated licenses with 2 feature in offline mode using request and response files.
2. Flexnetlsadmin -features showed the activated ID with 2 count.
3. Stopped the service, took back up of *.ts file, restarted the service.
4. Ran activation command with count as 0.
5. Stopped the service and ran restore command pointing to the *.ts file which was backed up in step 3.
6. Restored Database message was displayed but Flexnetlsadmin -features showed the NO activated ID.
Thanks and regards,
Hi @veena_Ped ,
Is your license server enabled for trusted storage backups? You can restore trusted storage from a backup copy only if the producer has enabled trusted-storage backups to
occur on the license server.
The license server needs to have the database.backup-enabled policy set to true in producer-settings.xml. Default value is false.
Thanks for quick response, yes "database.backup-enabled=true" in the producer-settings file. Also, we have "flexnetls_licenses.mv.db.ts" file getting generated at "tsBackup" folder.
Thanks and regards,
Hi @jberthold ,
can you describe in detail which conditions have to be met for the restoration process?
I managed to restore the FlexNet Embedded Local License Server (2022.10), but found it kind of hacky.
- Ubuntu 20.04 with FNE LLS 2022.10, installed natively from my personal user account via install-systemd.sh without additional arguments (such as --user or --group)
- The default installation thus created a service running with a (new) user flexnetls
- producer settings with database.backup-enabled=true
- flexnetls binary from the server directory needs to be used to do the restore
What I did:
- copy the flexnetls binary from the server directory to a location that user flexnetls can access, changing file ownership accordingly, e.g. /home/flexnetls/server_202210
- add my user to flexnetls group (in hindsight, this was probably unnecessary)
- execute the restore command as user flexnetls from my own user via
sudo pkexec --user flexnetls /home/flexnetls/server_202210/server/flexnetls -restore-database /var/opt/flexnetls/<producer>/tsBackup/flexnetls_licenses.mv.db.ts
- this finally worked
- After I worked out the above solution, I wanted to understand why things are so complicated. Therefore, I re-installed the whole server, this time using --user and --group arguments for the install-systemd.sh with my private account
- running the restoration command via pkexec as flexnetls now returns an IO Exception due to permission denied, which is ok.
- running the restoration command natively now works like this
./flexnetls -restore-database /var/opt/flexnetls/<producer>/tsBackup/flexnetls_licenses.mv.db.ts
- Is this really the intended way of using the restoration when the server has been installed for/with user flexnetls? I found it really hard to figure out that I need to do everything as the correct user and could not just use sudo from my own user account.
- Is there any documentation how to correctly do this in my specific situation?
- Why does the installation default to user flexnetls instead of the user performing the installation? Isn't it likely that this particular person will also administer the server?
- During restoration, I get a bash output
Any hints on that?
./flexnetls: line 673: /etc/init.d/functions: No such file or directory
Looking forward to hearing from you and thank you in advance!
P.S: Sorry for digging out a 2 year old thread. I found this a pretty good match and thought this will make future searches easier.