ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   trouble moving users between servers (http://forum.ispsystem.com//showthread.php?t=1465)

krisj 05-15-2011 07:37 AM

trouble moving users between servers
 
Hi, hopefully you could help.
I am trying to move users between 2 ISPmanager servers. they are both running cloudlinux 5.5, with pretty much identical setup.

i am using the user import feature in ispmanager. using remote server over https.

all works well, but no e-mails get transferred.

domains are created, files get moved, db's get created, ftp users are fine too. mailbox users are created and their directories are built under /var/www/hostuser/data/email/...

but that's it.

here is whats in the usermove.log

Code:

May 15 04:44:26 [156452] INFO Restoring 'mailbox@domain.net' with status 'full'...
May 15 04:44:26 [156452] EXTINFO Execute (/bin/tar -x -o -p -m -f /tmp/pbkp_156452/hostuser/pbkp_mailbox@domain.net.tar -C /tmp/pbkp_156452/hostuser/unpacked_mailbox@domain.net/ mailbox) return=0 exited
May 15 04:44:26 [156452] INFO Converting maildir into mbox '/var/mail/virtuser_512'...

I can also see the ispmanager's temporary tarball in /tmp/<tempdir>/... being worked on during this process... and /tmp/pbkp_156452/hostuser/unpacked_mailbox@domain.net/ gets unpacked etc...

but nothing gets unpacked/moved into the final /var/www/hostuser/data/email/domain.net/mailbox

there is also a notice in the manager:

Code:

May 15 05:06:13 /*-------------Notifications from <2nd server IP>-----------------*/
May 15 05:06:13 May 15 05:20:03 zones: Failed to backup 'domain.net': code=9 Code 9 . Skip it.

May 15 05:06:13 /*------------------The end-------------------------*/


no errors or warnings in ispmgr.log

any idea how to fix this, or what might be wrong?

many thanks in advance!

vian 05-15-2011 04:03 PM

Please enable debug information by running
echo 9 > /usr/local/ispmgr/etc/UserMove.debug

and provide us with log UserMove.log

krisj 05-15-2011 05:37 PM

Here we go
 
Source host's UserMove.log:

http://pastebin.com/raw.php?i=sVvTfbEy

target hosts UserMove.log:

http://pastebin.com/raw.php?i=ENSVFxrb

thanks for looking into this vian!

Kris

krisj 05-16-2011 02:25 PM

half solved
 
So, I managed to solve it myself. Turned out to be a problem with ISPmanager unable to convert the .Maildir to mbox (seems like ISPmanager defaults to mbox format on a fresh install on CentOS?) format on the target machine.

I had to add

Code:

Option Procmail
Option MailDir

to ispmgr.conf

and change procmail's defaults to Maildir too..
/etc/procmailrc:

Code:

MAILDIR=$HOME/.maildir
DEFAULT=$MAILDIR/



so, i have it solved for now, but that doesnt change the fact that ISPmanager was unable to convert the mailboxes... perhaps you should check those routines


All times are GMT +2. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.