Can't complete domain replication with LDAP backend

Hey guys, I'm hoping you can help me tweak the code or commands a bit in regards to the Virtual Domain Replication feature. I'm trying to replicate one Virtualmin server to another through Cloudmin but is fails everytime when transferring the actual domains due the the User UID already existing in the LDAP backend that both servers use... Can you please help me with a work around, or code tweak so I can use the Domain Replication feature but just have it ignore the transfer of Users for the domains? Thanks for your help.

  • Andre


hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Tue, 11/10/2015 - 14:00

No body? Please guys, take a second to look at this... I really need to get past this issue. Would removing the reuid option from work?

hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Tue, 11/10/2015 - 15:34

Ok, after some more testing, it doesn't work to remove $reuid = 1; from what else can be the issue? Thanks

If the destination system is already setup as an LDAP client, Virtualmin should just skip creation of the users on the assumption that they already exist.

What is the exact error message that you are getting?

hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Thu, 11/12/2015 - 08:27

Hey, Thanks for the reply Jamie I appreciate it. The error message is as follows:

Failed to restore on : Checking for missing features .. .. all features in backup are supported Checking for errors in backup .. .. no errors found Starting restore.. Extracting backup archive files .. .. done Restoring Virtualmin settings .. Restoring Virtualmin configuration .. .. done Restoring templates and plans .. .. done Restoring scheduled backups and keys .. .. done Restoring email templates .. .. done Restoring custom fields, links, categories and shells .. .. done Restoring custom script installers .. .. done Restoring FTP directory restrictions .. .. done .. done Re-creating virtual server .. UID 1009 is already in use on this system Applying FTP server configuration .. .. done Restore failed!

thanks again for the help. I still can't figure it out.

  • Andre

Are both the source and destination systems configured to use the exact same LDAP server? Or does one perhaps access LDAP via an IP, while the other uses a hostname?

This could confuse Virtualmin's code that attempts to detect a restore on a destination system that is sharing the same LDAP backend.

hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Wed, 12/02/2015 - 10:10

Hey, sorry it took so long to get back to you, I was away for a while. As for your question both LDAP servers use the exact same information, I have them set up using the IP address directly, and yes its definitely on the same server. Thanks for your continued help. I'm still getting the error

Any chance that we could login to your systems to debug what is going on with Virtualmin here?

hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Wed, 12/02/2015 - 21:50

Hey, thanks for getting back to me. Yes that should be fine. How do you want to go about it? let me know

-- Andre

hyper3xpl0iter's picture
Submitted by hyper3xpl0iter on Fri, 12/04/2015 - 17:22

Hey Jamie, just bumping this post to remind you about me lol Thanks