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
Status:
Active
Comments
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 restore-domain.pl work?
Ok, after some more testing, it doesn't work to remove $reuid = 1; from restore-domain.pl. what else can be the issue? Thanks
Submitted by JamieCameron on Wed, 11/11/2015 - 00:54 Comment #3
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?
Hey, Thanks for the reply Jamie I appreciate it. The error message is as follows:
Failed to restore on host.node02.example.ca : 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 example02.ca .. 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.
Submitted by JamieCameron on Sat, 11/14/2015 - 00:13 Comment #5
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.
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
Submitted by JamieCameron on Wed, 12/02/2015 - 15:46 Comment #7
Any chance that we could login to your systems to debug what is going on with Virtualmin here?
Hey, thanks for getting back to me. Yes that should be fine. How do you want to go about it? let me know
-- Andre
Hey Jamie, just bumping this post to remind you about me lol Thanks
Submitted by JamieCameron on Fri, 12/04/2015 - 21:10 Comment #10
Sorry, I missed your previous update. Please email me login details at jcameron@virtualmin.com