[Dovecot] Dovecot lock problem

Simon Gao Simon.Gao at schrodinger.com
Wed Nov 4 21:36:14 EET 2009


> >What is the process doing? Check with "strace -p <imap process pid>"?
> >How large is the user's mailbox?

We just have another user reporting problem. There is no lock on 
/var/spool/mail/<user> file. 

The strace has following:

 # strace -p 8117                
Process 8117 attached - interrupt to quit
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362101                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362101                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362106                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362106                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362111                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362111                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362116                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362116                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362121                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362121                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362126                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362126                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362131                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362131                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362136                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362136                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362141                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362141                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362146                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362146                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}           


# strace -p 8117
Process 8117 attached - interrupt to quit
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362101                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362101                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362106                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362106                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362111                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362111                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362116                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362116                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362121                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362121                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362126                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362126                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362131                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362131                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362136                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362136                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362141                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362141                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362146                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362146                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362151                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362151                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362156                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362156                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362161                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362161                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)                                             
--- SIGALRM (Alarm clock) @ 0 (0) ---                                            
sigreturn()                             = ? (mask now [])                        
time(NULL)                              = 1257362166                             
alarm(5)                                = 0                                      
time(NULL)                              = 1257362166                             
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1257362171
alarm(5)                                = 0
time(NULL)                              = 1257362171
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1257362176
alarm(5)                                = 0
time(NULL)                              = 1257362176
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1257362181
alarm(5)                                = 0
time(NULL)                              = 1257362181
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}

I did see somewhere log says "no lock file found, abort, etc".

Simon


More information about the dovecot mailing list