Re: restore a permission messed up backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> hello guys
>
> I have created a backup of my running IMAP server (cyrus-imapd version
> 2.3.11-1) and followed the official guide on [1]. Unfortunately I forgot
> to preserve the permission and owner:group information while creating the

You should not only preserve ownership and permissions but also hardlinks
to save space when using single instance store.

> backup. Now I would like to restore the server on a Fedora 11 system
> running cyrus-imapd version 2.3.14-1.
>
> The steps I did so far
>
> $ mv /var/spool/imap /var/spool/imap.old
> $ mv /var/lib/imap /var/lib/imap.old
>
> $ cp -R backup/var/spool/imap /var/spool/imap
> $ chown -R cyrus:mail /var/spool/imap
>
> $ cp -R backup/var/lib/imap /var/lib/imap
> $ chown -R cyrus:mail /var/lib/imap
>
> This is what my /var/log/maillog yells after starting the server with
> /etc/init.d/cyrus-imap start
> ------------------------------------
> Jul 18 13:48:27 celsius cvt_cyrusdb[10228]: mystore: reusing txn
> 2147483654
> [...]
> Jul 18 13:48:27 celsius cvt_cyrusdb[10228]: mycommit: committing txn
> 2147483654
> Jul 18 13:48:27 celsius master[10239]: process started
> Jul 18 13:48:27 celsius master[10241]: about to exec
> /usr/lib/cyrus-imapd/ctl_cyrusdb
> Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: recovering cyrus databases
> Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: skiplist: recovered
> /var/lib/imap/mailboxes.db (36 records, 14104 bytes) in 0 seconds
> Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: skiplist: recovered
> /var/lib/imap/annotations.db (0 records, 144 bytes) in 0 seconds
> Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: done recovering cyrus
> databases
> Jul 18 13:48:27 celsius master[10242]: about to exec
> /usr/lib/cyrus-imapd/idled
> Jul 18 13:48:27 celsius master[10239]: unable to create sieve listener
> socket: Permission denied

see below...

> Jul 18 13:48:27 celsius master[10239]: ready for work
> Jul 18 13:48:27 celsius master[10244]: about to exec
> /usr/lib/cyrus-imapd/ctl_cyrusdb
> Jul 18 13:48:27 celsius master[10246]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:27 celsius imap[10246]: executed
> Jul 18 13:48:27 celsius master[10248]: about to exec
> /usr/lib/cyrus-imapd/lmtpd
> Jul 18 13:48:27 celsius master[10249]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:27 celsius imap[10249]: executed
> Jul 18 13:48:27 celsius lmtpunix[10248]: executed
> Jul 18 13:48:27 celsius ctl_cyrusdb[10244]: checkpointing cyrus databases
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file:
> /var/lib/imap/db/log.0000000001
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file:
> /var/lib/imap/db/log.0000000001
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file:
> /var/lib/imap/db/log.0000000001
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving database file:
> /var/lib/imap/annotations.db
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving database file:
> /var/lib/imap/mailboxes.db
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file:
> /var/lib/imap/db/log.0000000001
> Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: done checkpointing cyrus
> databases
> Jul 18 13:48:28 celsius master[10239]: process 10244 exited, status 0
> Jul 18 13:48:28 celsius master[10250]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:28 celsius master[10251]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:28 celsius imap[10250]: executed
> Jul 18 13:48:28 celsius imap[10251]: executed
> Jul 18 13:48:30 celsius master[10255]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10255]: executed
> Jul 18 13:48:30 celsius master[10256]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius master[10257]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10257]: executed
> Jul 18 13:48:30 celsius imap[10256]: executed
> Jul 18 13:48:30 celsius master[10258]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius master[10259]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10258]: executed
> Jul 18 13:48:30 celsius imap[10259]: executed
> Jul 18 13:48:30 celsius master[10260]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10260]: executed
> Jul 18 13:48:30 celsius master[10255]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10255]: executed
> Jul 18 13:48:30 celsius master[10256]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius master[10257]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10257]: executed
> Jul 18 13:48:30 celsius imap[10256]: executed
> Jul 18 13:48:30 celsius master[10258]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius master[10259]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10258]: executed
> Jul 18 13:48:30 celsius imap[10259]: executed
> Jul 18 13:48:30 celsius master[10260]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Jul 18 13:48:30 celsius imap[10260]: executed
> ------------------------------------
>
>
> And then later on when trying to access my mailbox using Evolution
> ------------------------------------
> [...]
> Jul 18 13:49:03 celsius imap[10249]: IOERROR: opening
> /var/spool/imap/s/user/sp4rc/archive/cyrus.header: Permission denied
> [...]

OK, you have set file ownership as shown above but what about permissions?
Check the permission of

/var/lib/imap/socket
/var/spool/imap/s/user/sp4rc/archive/cyrus.header

Note: if you installed via RPM you could check permission of the base
directories with rpm -V cyrus-imapd.

Make shure you set the permissions of all cyrus-imapd files correctly.

Regards,
Simon

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux