Mailbox problems

Tom Myny tom.myny at tigron.be
Thu Dec 13 11:02:09 EST 2007


Dear all,

We are using Cyrus 2.3.10 and are expiring the problem that mailboxes
sometimes goes 'corrupt'.

This means that messages are still being delivered but cannot be read by
imap or pop3.

I ran a debug on one of the mailboxes that was crashed and monitored the
imap process:


times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862595
write(1, "* 197 FETCH (UID 8200)\r\n0000002d"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "0000002e UID FETCH 8199 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862595
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862595
write(1, "* 196 FETCH (UID 8199)\r\n0000002e"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "0000002f UID FETCH 8198 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862595
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862595
write(1, "* 195 FETCH (UID 8198)\r\n0000002f"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000030 UID FETCH 8197 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862594
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862594
write(1, "* 194 FETCH (UID 8197)\r\n00000030"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000031 UID FETCH 8196 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
write(1, "* 193 FETCH (UID 8196)\r\n00000031"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000032 UID FETCH 8195 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
write(1, "* 192 FETCH (UID 8195)\r\n00000032"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000033 UID FETCH 8194 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
write(1, "* 191 FETCH (UID 8194)\r\n00000033"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000034 UID FETCH 8193 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
write(1, "* 190 FETCH (UID 8193)\r\n00000034"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000035 UID FETCH 8192 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
write(1, "* 189 FETCH (UID 8192)\r\n00000035"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000036 UID FETCH 8191 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862593
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862592
write(1, "* 188 FETCH (UID 8191)\r\n00000036"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000037 UID FETCH 8190 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862592
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862592
write(1, "* 187 FETCH (UID 8190)\r\n00000037"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000038 UID FETCH 8189 UID\r\n", 4096) = 29
times({tms_utime=6, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862592
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862590
write(1, "* 186 FETCH (UID 8189)\r\n00000038"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "00000039 UID FETCH 8188 UID\r\n", 4096) = 29
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862590
stat64("/var/spool/imap/user/gino^marckx^xodiac^be/cyrus.index",
{st_mode=S_IFRE
G|0600, st_size=20600, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=385016, ...}) = 0
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862590
write(1, "* 184 FETCH (UID 8187)\r\n0000003a"..., 59) = 59
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "0000003b FETCH 184,185:204 (ENVE"..., 4096) = 197
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862589
write(1, "* 184 FETCH (FLAGS (\\Seen) INTER"..., 4096) = 4096
write(1, "lowup-To References)] {151}\r\nCon"..., 4096) = 4096
write(1, "oplan.com\")) ((NIL NIL \"gino.mar"..., 4096) = 4096
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862589
write(1, "\")) ((NIL NIL \"agileindia\" \"yaho"..., 1643) = 1643
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "0000003c FETCH 205,206:225 (ENVE"..., 4096) = 197
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862589
write(1, "* 205 FETCH (FLAGS () INTERNALDA"..., 4096) = 4096
write(1, "3 +0100\" \"RE: Ons gesprek deze m"..., 4096) = 4096
write(1, "02801c83cdf$857378d0$6302a8c0 at OC"..., 4096) = 4096
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862589
write(1, "om\")) ((\"Bernard Notarianni\" NIL"..., 2195) = 2195
open("/var/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or
directory)
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1799, 990000})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1197548327
time(NULL)                              = 1197548327
read(0, "0000003d FETCH 226,227:234 (ENVE"..., 4096) = 197
times({tms_utime=7, tms_stime=3, tms_cutime=0, tms_cstime=0}) = -1262862588
write(1, "* 226 FETCH (FLAGS () INTERNALDA"..., 4096) = 4096
open("/var/spool/imap/user/gino^marckx^xodiac^be/0.", O_RDONLY) = -1 ENOENT
(No
such file or directory)
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(23020, 23020, SIGABRT)           = 0

And then the imap process dies.

I know indeed that there is no /var/spool/imap/user/gino^marckx^xodiac^be/0.
message, that mailbox is not new, new messages are start numbered around
+50000.

Do someone now why Cyrus is looking for a message with name 0 ?

Noted: when doing a reconstruct of that mailbox its fixed, but getting this
randomly (on time/user) is really annoying.

Regards,
Tom
 



More information about the Info-cyrus mailing list