When synchronizing a mailbox for the first time (in the context of migrating emails from one mail server to another I consistently get the following error:
Error: channel :my-name-remote:Sent-:my-name-local:Sent is locked
It downloads everything from my remote Inbox as intended (the mail server I am syncronizing from) but only part of the mail in my remote Sent folder gets to be downloaded. If I delete the local Sent folder and run mbsync again, it eventually downloads everything from the remote Sent folder.
Here is the log for the first run of mbsync (mbsync -Va):
Reading configuration file /home/my-name/.mbsyncrc
C: 0/1 B: 0/0 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Channel my-name
Opening master store my-name-remote...
Resolving 127.0.0.1... ok
Connecting to 127.0.0.1 (127.0.0.1:1143)...
Opening slave store my-name-local...
Connection is now encrypted
Logging in...
Authenticating with SASL mechanism PLAIN...
C: 0/1 B: 0/2 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Opening master box INBOX...
Opening slave box INBOX...
Maildir notice: no UIDVALIDITY, creating new.
Loading master...
Loading slave...
slave: 0 messages, 0 recent
master: 363 messages, 0 recent
Synchronizing...
C: 0/1 B: 1/2 M: +0/0 *0/0 #0/0 S: +363/363 *0/0 #0/0
Error: channel :my-name-remote:Sent-:my-name-local:Sent is locked
C: 1/1 B: 2/2 M: +0/0 *0/0 #0/0 S: +363/363 *0/0 #0/0
And the log for the second run:
Reading configuration file /home/my-name/.mbsyncrc
C: 0/1 B: 0/0 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Channel my-name
Opening master store my-name-remote...
Resolving 127.0.0.1... ok
Connecting to 127.0.0.1 (127.0.0.1:1143)...
Opening slave store my-name-local...
Connection is now encrypted
Logging in...
Authenticating with SASL mechanism PLAIN...
C: 0/1 B: 0/2 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Opening master box INBOX...
Opening slave box INBOX...
Loading master...
Loading slave...
slave: 364 messages, 1 recent
master: 364 messages, 0 recent
Synchronizing...
C: 0/1 B: 1/2 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Opening master box Sent...
Opening slave box Sent...
Creating slave Sent...
Maildir notice: no UIDVALIDITY, creating new.
Loading master...
Loading slave...
slave: 0 messages, 0 recent
master: 176 messages, 0 recent
Synchronizing...
C: 1/1 B: 2/2 M: +0/0 *0/0 #0/0 S: +176/176 *0/0 #0/0
Then, if I run msync once more (after uptdating .mbsyncrc with the credentials for the new mail server), all mails on the local computer get to be uploaded to the new mail server but I still get the same weird error (please see line before the last one below):
Reading configuration file /home/my-name/.mbsyncrc
C: 0/1 B: 0/0 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Channel my-name
Opening master store my-name-remote...
Resolving mail.my-domain.com... ok
Connecting to mail.my-domain.com (12.345.67.89:993)...
Opening slave store my-name-local...
Connection is now encrypted
Logging in...
Authenticating with SASL mechanism PLAIN...
C: 0/1 B: 0/2 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Opening master box INBOX...
Opening slave box INBOX...
Maildir notice: no UIDVALIDITY, creating new.
Loading master...
Loading slave...
slave: 363 messages, 0 recent
master: 2 messages, 0 recent
Synchronizing...
C: 0/1 B: 1/2 M: +363/363 *0/0 #0/0 S: +2/2 *0/0 #0/0
Error: channel :my-name-remote:Sent-:my-name-local:Sent is locked
C: 1/1 B: 2/2 M: +363/363 *0/0 #0/0 S: +2/2 *0/0 #0/0
the configuration file and the output from
mbsync -l -a -Dwould be interesting.Hi, thanks for getting back so quickly!
Here's the output from
mbsync -l -a -D:My current configuration:
And my configuration file when downloading all my mail from ProtonMail Bridge:
Last edit: Nuno Pedrosa 2019-12-08
ok, that all looks quite reasonable.
are you positive that you're not accidentally starting two processes at the same time?
try strace'ing it. if the error doesn't magically disappear under observation, then the trace should be helpful.
no info forthcoming.
this is pure guesswork, but you probably used ^Z instead of ^C to "cancel" the first download when it didn't complete (you didn't describe what actually happened, so i assume it just hung).