Re: [Evolution] [Fwd: Re: local mail spool still unaccessible with evo 3.4.4.-1]



On Wed, 2012-10-31 at 09:37 +0000, Pete Biggs wrote:

This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Could not lock '/var/mail/<user>'

And that is the root of all your problems.

Check the ownership and permissions on the /var/mail/<user> file - it
should be owned by <user>. group should be "mail", and permissions
should be -rw-rw---- (i.e. rw by user and group, no world permissions).

They are:
-rw-rw---- 1 <user> mail 95684923 Oct 31 07:02 /var/mail/<user>

and ls -ld /var/mail shows:
drwxrwsr-x 2 root mail 4096 Oct 31 07:21 /var/mail/

and <user> is in the group mail.

OK.  But the bottom line is that Evolution can't get a lock on your mail
spool file - if it can't get a lock, then it can't do anything with it.
If the permissions on the file are correct, then there must be some
other process holding a lock on it.  You need to find out which process
that is and why it is holding a lock.

To save you asking, use the lslk utility to list the current locks on
files.  If you can't find lslk (it's an old and unmaintained utility),
look in /proc/locks - the information in there is not user friendly, but
it contains lines such as:

1: POSIX  ADVISORY  WRITE 4953 08:11:17703846 1073741824 1073742335
                            ^           ^
                           PID         inode number

So you need to find the inode number of your mail spool file and see if
it's listed.

Processes having locks are:
<user> 32629 2.8 10.6 536428 165880 ? Sl 09:12
2:36 /usr/lib/iceweasel/firefox-bin
<user> 1978  0.0  0.0   2128    12 ? Ss   Oct10   0:00 /usr/sbin/atd
daemon    1574  0.0  0.0  1960 304 ? Ss   Oct10   0:00 /sbin/portmap

and a non-existing process with PID 2105:
7: FLOCK  ADVISORY  WRITE 2105 00:0e:7109 0 EOF
What does this mean??

None of them are listing the inode number I have for /var/mail/<user>
ls -li /var/mail/<user>
15811 -rw-rw---- 1 <user> mail 95736997 Oct 31 10:02 /var/mail/<user>





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