migrate via dsync error Panic: file mail-transaction-log.c: line 271 (mail_transaction_log_rotate): assertion failed: (file-locked)

2015-07-17 Thread wuwei
hi all
 when I use dsync migrate users from dovecot2.0.14(maildir Solaris10) to
dovecot2.2.15(mdbox debian7) , most of the users migrated well, only one
user has a error.

migrate cmd:
$dovecotHomebin/doveadm -Dv -o mail_fsync=never -o imapc_host=$ip backup
-R -u $user imapc:

dovecot2.2.15 log:

doveadm(root): Debug: Loading modules from directory:
/home/mail/dovecot/lib/dovecot
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib15_notify_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_fts_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_mail_log_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_zlib_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so
doveadm(root): Debug: Loading modules from directory:
/home/mail/dovecot/lib/dovecot/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen()
failed: /home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so:
undefined symbol:
 acl_user_module (this is usually intentional, so just ignore this message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because
dlopen() failed:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
undefined s
ymbol: expire_set_deinit (this is usually intentional, so just ignore this
message)
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so
doveadm(chenwengu...@eachnet.com): Debug: auth input:
chenwengu...@eachnet.com
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com uid=1010 gid=1010
mail=mdbox:/
data/02/eachnet.com/281/721/chenwengu...@eachnet.com
quota_rule=*:storage=1024MB
sieve_dir=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
sieve=/data/02/eachnet.
com/281/721/chenwengu...@eachnet.com/dovecot.sieve
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
mail=mdbox:/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/quota_rule=*:storage=1024MB
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/sieve=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com/dovecot.sieve
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/sieve_dir=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Effective uid=1010, gid=1010,
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota root:
name=chenwengu...@eachnet.com backend=dict
args=:redis:host=172.24.202.60:prefix=user_quota/
doveadm(chenwengu...@eachnet.com): Debug: Quota rule:
root=chenwengu...@eachnet.com mailbox=* bytes=1073741824 messages=0
doveadm(chenwengu...@eachnet.com): Debug: Quota rule:
root=chenwengu...@eachnet.com mailbox=Trash bytes=+858993459 (80%)
messages=0
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=966367641
(90%) messages=0 reverse=no command=quota-warning 90
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=858993459
(80%) messages=0 reverse=no command=quota-warning 80
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=751619276
(70%) messages=0 reverse=no command=quota-warning 70
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=644245094
(60%) messages=0 reverse=no command=quota-warning 60
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota grace:
root=chenwengu...@eachnet.com bytes=107374182 (10%)
doveadm(chenwengu...@eachnet.com): Debug: dict quota:
user=chenwengu...@eachnet.com,
uri=redis:host=172.24.202.60:prefix=user_quota/, noenforcing=0
doveadm(chenwengu...@eachnet.com): Debug: Namespace inbox: type=private,
prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=mdbox:/data/02/eachn
et.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: fs:
root=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com, index=,
indexpvt=, control=, inbox=, alt=
doveadm(chenwengu...@eachnet.com): Debug: Namespace : Using permissions from
/data/02/eachnet.com/281/721/chenwengu...@eachnet.com: mode=0700 gid=default
dsync(chenwengu...@eachnet.com): Debug: Effective uid=1010, gid=1010,
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
dsync(chenwengu...@eachnet.com): Debug: Quota root:
name=chenwengu...@eachnet.com backend=dict
args=:redis:host

Re: Migrate with Dsync

2014-12-13 Thread Randall Gellens
I tried putting a config file into /etc/dovecot/conf.d/90-dsync.conf, 
figuring that dovecot.conf would pick it up with the '!include 
conf.d/*.conf' line, but it didn't get picked up.  I have no idea why.


What is the difference between the two web pages: 
http://wiki2.dovecot.org/Migration/Dsync which says to run dysnc via 
doveadm, e.g., 'doveadm -o mail_fsync=never sync -1 -R -u user@domain 
imapc:', and http://linux.die.net/man/1/dsync, which says to run 
'dynch'?  The latter shows a dsync option '-F' to disable fast 
syncing, for example.


Also, is there an option to run dsync in test mode, e.g., to have it 
show what it thinks needs to be done, without actually doing it?  I'm 
a bit afraid of just running it, since I am not sure that the '-R' 
option means that the mail gets moved from the remote IMAP server to 
the dovecot server.


Finally, is there a way to have dsync prompt for a user password?  I 
need to do per-user migration (no master account on the remote 
system) and prefer not to type plain text passwords on command lines 
nor in config files.


Thanks!


At 10:38 AM -0800 12/12/14, Randall Gellens wrote:


 At 6:14 PM +0100 12/11/14, Dominik Breu wrote:


  i have a simple and maybe stupid question but,
  read the guide on http://wiki2.dovecot.org/Migration/Dsync now i wonder
  where to put this configuration ? May i oversee something but i would
  appreciate any hint toward solving my problem.


 Hi Dominik,

 I'm not sure, but my guess is that it goes into a new file in 
'/etc/dovecot/conf.d/', perhaps with a name such as 
'90-dsync.conf'. I believe that it is also possible to not write 
this into a file but instead pass each option on the command line 
using '-o'.


 I am trying to figure this out because I want to migrate lots of 
mail from an old IMAP server to dovecot, and I'd like to preserve 
the mailbox GUIDs and the message UIDs.


 --
 Randall Gellens
 Opinions are personal;facts are suspect;I speak for myself only
 -- Randomly selected tag: ---
 Arithmetic is being able to count up to twenty without taking
 off your shoes.



--
Randall Gellens
Opinions are personal;facts are suspect;I speak for myself only
-- Randomly selected tag: ---
Hippogriff:  An animal (now extinct) which was half horse and half
griffin.  The griffin was itself a compound creature, half lion and
half eagle.  The hippogriff was actually, therefore, only one quarter
eagle, which is two dollars and fifty cents in gold.  The study of
zoology is full of surprises.


Re: Migrate with Dsync

2014-12-12 Thread Randall Gellens

At 6:14 PM +0100 12/11/14, Dominik Breu wrote:


 i have a simple and maybe stupid question but,
 read the guide on http://wiki2.dovecot.org/Migration/Dsync now i wonder
 where to put this configuration ? May i oversee something but i would
 appreciate any hint toward solving my problem.


Hi Dominik,

I'm not sure, but my guess is that it goes into a new file in 
'/etc/dovecot/conf.d/', perhaps with a name such as '90-dsync.conf'. 
I believe that it is also possible to not write this into a file but 
instead pass each option on the command line using '-o'.


I am trying to figure this out because I want to migrate lots of mail 
from an old IMAP server to dovecot, and I'd like to preserve the 
mailbox GUIDs and the message UIDs.


--
Randall Gellens
Opinions are personal;facts are suspect;I speak for myself only
-- Randomly selected tag: ---
Arithmetic is being able to count up to twenty without taking
off your shoes.


Migrate with Dsync

2014-12-11 Thread Dominik Breu
Hello List,

i have a simple and maybe stupid question but,
read the guide on http://wiki2.dovecot.org/Migration/Dsync now i wonder
where to put this configuration ? May i oversee something but i would
appreciate any hint toward solving my problem.

regards,
dominik