Re: Is it possible to migrate a single mailbox from cyrus 3.4.3 to 3.6.0~beta2-1 storage?

Andy Dorman <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
On 3/25/22 12:21, Andy Dorman wrote:
> On 3/25/22 11:45, Andy Dorman wrote:
>> On 3/25/22 01:57, Yadd wrote:
>>> On 24/03/2022 23:55, Andy Dorman wrote:
>>>> Ellie, did you notice this from the debian maintainer?
>>>>
>>>> On 3/23/22 09:57, Yadd wrote:
>>>>> Looking at source, relocate_by_id tool doesn't exist in 3.6.0-beta2 
>>>>> (only mentioned in Cassandane::Cyrus::FastMail)
>>>
>>> Hi,
>>>
>>> I'm the Debian maintainer even I'm not a Cyrus-Imapd user (package 
>>> was orphaned). I just pushed a new version, please try it (wait a few 
>>> hours to see it in unstable).
>>>
>>
>> Thank you Yadd.  I have updated our dev server and I see the new 
>> utilities now.
>>
>> # dpkg -L cyrus-common
>> ...
>> /usr/lib/cyrus/bin/cyr_cd.sh
>> ...
>> /usr/lib/cyrus/bin/cyr_ls
>> ...
>> /usr/lib/cyrus/bin/relocate_by_id
>>
>>
>> I don't see man pages yet, but that is no problem as I have found them 
>> here.
>>
>> https://www.cyrusimap.org/dev/imap/reference/manpages/index.html#system-commands 
>>
>>
>> After backing up my personal mailbox (which is on this dev server) AND 
>> enabling core dumps, I will try moving it to the uuid storage using 
>> relocate_by_id.
>>
>> Andy
>>
> 
> Hmmmmm.  Nothing is happening.  I have run relocate_by_id several times 
> trying different variations of the mailbox name with nothing happening 
> that I can see.  No errors, mailboxes moved or crashes indicated either 
> in syslog or the command line.
> 
> # sudo -u cyrus /usr/lib/cyrus/bin/relocate_by_id user/[email protected]
>>> 2022-03-25T12:04:31.831908-05:00 yorick sudo:     root : TTY=pts/0 ; 
>>> PWD=/var/spool/cyrus/mail ; USER=cyrus ; 
>>> COMMAND=/usr/lib/cyrus/bin/relocate_by_id user/[email protected]
>>> 2022-03-25T12:04:31.832584-05:00 yorick sudo: pam_unix(sudo:session): 
>>> session opened for user cyrus(uid=100) by root(uid=0)
>>> 2022-03-25T12:04:31.862491-05:00 yorick sudo: pam_unix(sudo:session): 
>>> session closed for user cyrus
> # sudo -u cyrus /usr/lib/cyrus/bin/relocate_by_id [email protected]
>> 2022-03-25T12:05:29.822711-05:00 yorick sudo:     root : TTY=pts/0 ; 
>> PWD=/var/spool/cyrus/mail ; USER=cyrus ; 
>> COMMAND=/usr/lib/cyrus/bin/relocate_by_id [email protected]
>> 2022-03-25T12:05:29.823176-05:00 yorick sudo: pam_unix(sudo:session): 
>> session opened for user cyrus(uid=100) by root(uid=0)
>> 2022-03-25T12:05:29.853858-05:00 yorick sudo: pam_unix(sudo:session): 
>> session closed for user cyrus
> 
> I also tried running the command as root with the same results.
> 
> I suspect I am going to feel very foolish when someone points out what I 
> am missing here.
> 

One thing that could be important about our dev server where I was 
trying the relocate_by_id command....it does not yet have a 
/var/spool/cyrus/mail/uuid directory.  That could be the cause of the 
issue above unless relocate_by_id is supposed to create it if it doesn't 
exists.

But if it was the cause of relocate_by_id failing to do anything I would 
hope it would report a problem, but I didn't see anything in syslog 
about it.

So what is supposed to create the /var/spool/cyrus/mail/uuid directory?

Andy

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T9d294f89a3d1d260-M1cbc4c1f5345b5413c4b1cab
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.