Hi Craig,

Thanks a lot for helping me fix this problem.  I got the error again even
though after I've copied the souce code from website again.  Here's my lines
61-65 (or 68-73 in the new script):

if [ $size -gt 20000000 ];then
echo "this is bigger than 20MB, moving">>$LOG
mv $LOG $LOGSAVE
echo "" >$LOG
fi

If I run the command  '/unison/unison -force / -batch qmail', I got the
following output:

.
.
.

local        : unchanged file     modified on 2006-11-23 at 12:28:56  size
1689      rw-r--r--
BACKUP.h... : changed file       modified on 2006-11-24 at 19:06:23  size
1689      rw-r--r--
Propagating updates


UNISON started propagating changes at 14:40:39 on 25 Nov 2006
[BGN] Updating file var/qmail/control/dh1024.pem
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file var/qmail/control/dh512.pem
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file var/qmail/control/rsa512.pem
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Copying home/vpopmail/.spamassassin
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Copying properties for home/vpopmail/domains
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Copying home/vpopmail/domains/.overquota.msg
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Copying home/vpopmail/domains/.quotawarn.msg
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Copying home/vpopmail/domains/MY.DOMAIN.COM
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file unison/mysql.dump/vpopmail
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file var/qmail/control/badloadertypes
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file var/qmail/control/badloadertypes.cdb
 from /
 to //BACKUP.MY.DOMAIN.COM//
[BGN] Updating file var/qmail/control/servercert.pem.rpmnew
 from /
 to //BACKUP.MY.DOMAIN.COM//
[END] Copying properties for home/vpopmail/domains
[END] Updating file var/qmail/control/dh1024.pem
[END] Updating file var/qmail/control/dh512.pem
[END] Updating file var/qmail/control/rsa512.pem
[END] Copying home/vpopmail/domains/.overquota.msg
[END] Copying home/vpopmail/domains/.quotawarn.msg
[END] Updating file unison/mysql.dump/vpopmail
[END] Updating file var/qmail/control/badloadertypes
[END] Updating file var/qmail/control/badloadertypes.cdb
[END] Updating file var/qmail/control/servercert.pem.rpmnew
Failed: Aborted
15%  07:54 ETAFailed [home/vpopmail/.spamassassin]: Aborted
Failed: Error in rsync sender:
/home/vpopmail/domains/MY.DOMAIN.COM/userA/Maildir/cur/1164431645.26630.mx.MY.DOMAIN.COM,S=4733:2,:
No such file or directory
15%  07:54 ETAFailed [home/vpopmail/domains/MY.DOMAIN.COM]: Error in rsync
sender:
/home/vpopmail/domains/MY.DOMAIN.COM/userA/Maildir/cur/1164431645.26630.mx.MY.DOMAIN.COM,S=4733:2,:
No such file or directory
UNISON finished propagating changes at 14:42:10 on 25 Nov 2006


Saving synchronizer state
Synchronization incomplete  (10 items transferred, 0 skipped, 2 failures)
 failed: home/vpopmail/.spamassassin
 failed: home/vpopmail/domains/MY.DOMAIN.COM
Thanks again for your help and sorry to bother you while you are busy.

Best regards,
Bill



On 11/25/06, Craig Smith <[EMAIL PROTECTED]> wrote:

 As a follow up, I did a direct copy of the text from the wiki into a test
file, I ran sh testfile and it ran fine.  Assuming that the unison
application and the qmail.prf file is in place, it should run fine.

Try running the unison command manually and let me know what happens.

/unison/unison -force / -batch qmail

Did you skip anything in the process or run into problems during it?  It
may be something that centos doesn't like that fedora doesn't care about,
but I can't say as I've never used centos.

Try recopying, the script and let me know what happens.

Craig

 ------------------------------
*From:* Craig Smith [mailto:[EMAIL PROTECTED]
*Sent:* 24 November 2006 16:15
*To:* [email protected]
*Subject:* RE: [qmailtoaster] Problem in using "Failover replication
Setup"


 Hi Ben,

If you vi qmail-replicatec and do :61 what do you get?  It may just be
something that copied from the site.  In terms of setup, on the backup
server you don't need to create anything, just have QMT installed and
working.  The replication script will replicate all folders, users, control
files and mysql data to populate the backup folder.  The fact that you are
getting an error in the script means there is something wrong on line 61.

On my line 61 there is an open line with nothing.

I will copy the one from the wiki and run it to see what I get.

As for the file, it fails during transfer which is why it is blank.

Let me see what happens if I copy and paste directly from the wiki.

Also I've just made a minor change to the qmail-replicatec file by adding
a lock file process, as mine went a bit nuts last night.  Also I've removed
the qmail-replicateb from cron as this only really needs to be run if you
switch to the backup.

Sorry for the slow reply been mad busy.

Regards

Craig


 ------------------------------
*From:* Bill Kwok [mailto:[EMAIL PROTECTED]
*Sent:* 23 November 2006 09:30
*To:* qmailtoaster-list
*Subject:* [qmailtoaster] Problem in using "Failover replication Setup"


 Hi all,

I am trying to setup a setup for failover.  Both machines are running
CentOS 4.2.  I've just installed qt to my backup server, but no domains
and users were setup.

I am having problem in synchronizing them.  When I run the
qmail-replicatec, I got the following error:

[EMAIL PROTECTED] unison]# ./qmail-replicatec
./qmail-replicatec: line 61: [: root: integer expression expected


In the unisonlog.full, some error message such as the following are
logged:


Failed: The file /home/vpopmail/.spamassassin/auto-whitelist
has been modified during synchronization: transfer aborted
  2%  04:06 ETAFailed [home/vpopmail/.spamassassin]: The file
/home/vpopmail/.spamassassin/auto-whitelist
has been modified during synchronization: transfer aborted
Failed: The file
/home/vpopmail/domains/my.domain.com/alison.lam/Maildir/maildirsize
has been modified during synchronization: transfer aborted
  2%  04:06 ETAFailed [home/vpopmail/domains]: The file
/home/vpopmail/domains/my.domain.com/userA/Maildir/maildirsize
has been modified during synchronization: transfer aborted
UNISON finished propagating changes at 17:04:14 on 23 Nov 2006


Saving synchronizer state
Synchronization incomplete  (1 item transferred, 0 skipped, 2 failures)
  failed: home/vpopmail/.spamassassin
  failed: home/vpopmail/domains

Then I found that there's no file copied to /home/vpopmail/domains.

Am I in a wrong sequence of installation?  Do I need to create all domains
and users in backup server before synchronizating them?

Thanks in advance.

Best regards,
Bill

Reply via email to