Unix Technical Forum

Unable to lock mailbox: No locks available

This is a discussion on Unable to lock mailbox: No locks available within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> me again. not my day today. I mounted a remote mailbox to /var/spool/mail on a local machine using mount. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 09:02 AM
Darren
 
Posts: n/a
Default Unable to lock mailbox: No locks available

me again. not my day today. I mounted a remote mailbox to /var/spool/mail on
a local machine using mount. now i can read the mail in the mailboxes via vi
or a text editor but as soon as i try to read it using 'mail' it pauses for
a while then comes back with "Unable to lock mailbox: No locks available" I
have write access to that files so whats going on? Google was no help here



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 09:02 AM
Dominik L. Borkowski
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available

Darren wrote:

> me again. not my day today. I mounted a remote mailbox to /var/spool/mail
> on a local machine using mount. now i can read the mail in the mailboxes
> via vi or a text editor but as soon as i try to read it using 'mail' it
> pauses for a while then comes back with "Unable to lock mailbox: No locks
> available" I have write access to that files so whats going on? Google was
> no help here


out of curiosity, what kind of 'remote' connection is that? nfs?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 09:02 AM
Loki Harfagr
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available

Le Fri, 03 Jun 2005 14:52:55 +0000, Darren a écrit*:

> me again. not my day today.


Ouch, we can see that ! Some days just never end ...

> I mounted a remote mailbox to /var/spool/mail on
> a local machine using mount. now i can read the mail in the mailboxes via vi
> or a text editor but as soon as i try to read it using 'mail' it pauses for
> a while then comes back with "Unable to lock mailbox: No locks available"


Have you been recently playing with NFS ?
Is it that your "remote mailbox" is NFS'd ?

Then you have what happens recurrently in these kind of
installations ... That's one of the reasons POP3 and IMAP
are there :-)

> I
> have write access to that files so whats going on? Google was no help here


Mmm, you Google is b0rken then )

Anyway, maybe you could try to see with 'lsof' if some clients
are not too greedy.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 09:02 AM
Darren
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available - nfs mount


"Dominik L. Borkowski" <dom@vbi.vt.edu> wrote in message
news:d7ps85$20j$1@solaris.cc.vt.edu...
> Darren wrote:
>
> > me again. not my day today. I mounted a remote mailbox to

/var/spool/mail
> > on a local machine using mount. now i can read the mail in the mailboxes
> > via vi or a text editor but as soon as i try to read it using 'mail' it
> > pauses for a while then comes back with "Unable to lock mailbox: No

locks
> > available" I have write access to that files so whats going on? Google

was
> > no help here

>
> out of curiosity, what kind of 'remote' connection is that? nfs?

Didn't i say? *looks up* Damned I forgot to mention. Yes its nfs


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 09:02 AM
Darren
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available


"Loki Harfagr" <loki@DarkDesign.free.fr> wrote in message
news:42a08179$0$16146$626a14ce@news.free.fr...
> Le Fri, 03 Jun 2005 14:52:55 +0000, Darren a écrit :
>
> > me again. not my day today.

>
> Ouch, we can see that ! Some days just never end ...
>
> > I mounted a remote mailbox to /var/spool/mail on
> > a local machine using mount. now i can read the mail in the mailboxes

via vi
> > or a text editor but as soon as i try to read it using 'mail' it pauses

for
> > a while then comes back with "Unable to lock mailbox: No locks

available"
>
> Have you been recently playing with NFS ?
> Is it that your "remote mailbox" is NFS'd ?
>
> Then you have what happens recurrently in these kind of
> installations ... That's one of the reasons POP3 and IMAP
> are there :-)

I use them bu default but tbh I wanted to play with nfs to get it working
>
> > I
> > have write access to that files so whats going on? Google was no help

here
>
> Mmm, you Google is b0rken then )
>

It seems to be b-rken quite a lot these days or is it my typing?

> Anyway, maybe you could try to see with 'lsof' if some clients
> are not too greedy.

Aren't they always
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 09:02 AM
Loki Harfagr
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available

Le Fri, 03 Jun 2005 17:08:06 +0000, Darren a écrit*:

>
> "Loki Harfagr" <loki@DarkDesign.free.fr> wrote in message
> news:42a08179$0$16146$626a14ce@news.free.fr...
>> Le Fri, 03 Jun 2005 14:52:55 +0000, Darren a écrit :
>>
>> > me again. not my day today.

....
>> > I mounted a remote mailbox to /var/spool/mail on
>> > a local machine using mount. now i can read the mail in the mailboxes

> via vi
>> > or a text editor but as soon as i try to read it using 'mail' it pauses

> for
>> > a while then comes back with "Unable to lock mailbox: No locks

> available"
>>
>> Have you been recently playing with NFS ?
>> Is it that your "remote mailbox" is NFS'd ?
>>
>> Then you have what happens recurrently in these kind of
>> installations ... That's one of the reasons POP3 and IMAP
>> are there :-)

> I use them bu default but tbh I wanted to play with nfs to get it working


Yes, I was joking :-)

>> Mmm, you Google is b0rken then )
>>

> It seems to be b-rken quite a lot these days or is it my typing?


Could be, coulbe, though I made the joke while pasting this link
(found by gl0OgeinG), and it didn't print )

Hope it'll help you ?
http://www.cs.wits.ac.za/~jon/help/u...r/nolocks.html

>> Anyway, maybe you could try to see with 'lsof' if some clients
>> are not too greedy.

> Aren't they always


Half as much as our PHBs ;-)

The lsof is to use just in case. I'd bet your actual problem is
more related to using 'mail' (especially if after VI) and not
having your NFS set to such bold :-)
What does your NFS says about 'sync' ?

And, any old time, NFS is great but it can be really bitchy,
especially when using database and mail, really demanding apps ...

G00d lucK, and keep moving !-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 09:02 AM
Dominik L. Borkowski
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available - nfs mount

Darren wrote:


>> out of curiosity, what kind of 'remote' connection is that? nfs?

> Didn't i say? *looks up* Damned I forgot to mention. Yes its nfs


what options are used for exporting/mounting it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 09:03 AM
Darren
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available


"Loki Harfagr" <loki@DarkDesign.free.fr> wrote in message
news:42a092ae$0$23475$626a14ce@news.free.fr...
> Le Fri, 03 Jun 2005 17:08:06 +0000, Darren a écrit :
>
> >
> > "Loki Harfagr" <loki@DarkDesign.free.fr> wrote in message
> > news:42a08179$0$16146$626a14ce@news.free.fr...
> >> Le Fri, 03 Jun 2005 14:52:55 +0000, Darren a écrit :
> >>
> >> > me again. not my day today.

> ...
> >> > I mounted a remote mailbox to /var/spool/mail on
> >> > a local machine using mount. now i can read the mail in the mailboxes

> > via vi
> >> > or a text editor but as soon as i try to read it using 'mail' it

pauses
> > for
> >> > a while then comes back with "Unable to lock mailbox: No locks

> > available"
> >>
> >> Have you been recently playing with NFS ?
> >> Is it that your "remote mailbox" is NFS'd ?
> >>
> >> Then you have what happens recurrently in these kind of
> >> installations ... That's one of the reasons POP3 and IMAP
> >> are there :-)

> > I use them bu default but tbh I wanted to play with nfs to get it

working
>
> Yes, I was joking :-)

Sorry, I must get my sense of humour repaired
>
> >> Mmm, you Google is b0rken then )
> >>

> > It seems to be b-rken quite a lot these days or is it my typing?

>
> Could be, coulbe, though I made the joke while pasting this link
> (found by gl0OgeinG), and it didn't print )
>
> Hope it'll help you ?
> http://www.cs.wits.ac.za/~jon/help/u...r/nolocks.html

did the trick. i used the -f option and it ran ok so i aliased it.
>
> >> Anyway, maybe you could try to see with 'lsof' if some clients
> >> are not too greedy.

> > Aren't they always

>
> Half as much as our PHBs ;-)
>
> The lsof is to use just in case. I'd bet your actual problem is
> more related to using 'mail' (especially if after VI) and not
> having your NFS set to such bold :-)

Nah. I Vi'd because i couldn't mail
mind you i got an access error when i rebooted about no execution of portmap
so i chmodded it and it fixed that so when i typed mail i got the error
instantly instead of after a delay.
> What does your NFS says about 'sync' ?

it mention no sync or async was specified.
>
> And, any old time, NFS is great but it can be really bitchy,
> especially when using database and mail, really demanding apps ..

perhaps i'll stick to pop and imap for mail then .
>
> G00d lucK, and keep moving !-)


I have to or the bullets would hit me.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 09:03 AM
Darren
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available - nfs mount

what do you mean? the exports? they ere exported read and write
"Dominik L. Borkowski" <dom@vbi.vt.edu> wrote in message
news:d7qa4g$qgv$1@solaris.cc.vt.edu...
> Darren wrote:
>
>
> >> out of curiosity, what kind of 'remote' connection is that? nfs?

> > Didn't i say? *looks up* Damned I forgot to mention. Yes its nfs

>
> what options are used for exporting/mounting it?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 09:03 AM
Grant Coady
 
Posts: n/a
Default Re: Unable to lock mailbox: No locks available

On Fri, 03 Jun 2005 20:25:03 GMT, "Darren" <darren@notathome.net> wrote:
> > What does your NFS says about 'sync' ?

> it mention no sync or async was specified.


Check that, it _is_ needed these days, but I forget default

Just peeked, I have 'sync' specifed in etc/exports, also enable
NFS TCP option if you compile your own kernels. Not that I've
benchmarked it, seems a better idea than the default NFS over UDP.

--Grant.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com