Migrating LAPI
Hi there!
We are in the midst of migrating a lot of our VMs between Proxmox servers and CrowdSec is up next. I couldn't find any documentation on how one could migrate the LAPI.
We have a ton of bouncers connected to it, and I would like to migrate all the data without having to revalidate machines or do anything with the bouncers, all with minimal downtime. (I will be transferring the old machine's IP address to the new one)
Is there a recommended way to do this?
On a test machine I tried copying over the sqlite database, but it fails to start.
I am pretty sure it is because when I deleted the database I also deleted the Local API as a machine, and it tries to authenticate with the other machine's ID.
How could I get around this issue?
Any help is much appreciated!
4 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
© Created By WhyAydan for CrowdSec ❤️
You should be able from the original LAPI copy over the database and this file
which has the original machine username and password which should still be present in the database
Oh wow, that fixed it immediately. Thank you so much for the quick help!
Have a great day!
Resolving Migrating LAPI
This has now been resolved. If you think this is a mistake please run
/unresolve