PASI RAUHANIEMI wrote:
When starting Qmail
my logs are filling with: @400000003e15f63d11f54464 alert: cannot start: unable to open mutex
What's that error?
Ok so I had to look up mutex. mutex = semaphore = lock file.

Dictionary.com reports
" <parallel> A mutual exclusion object that allows multiple
threads to synchronise access to a shared resource. A mutex
has two states: locked and unlocked. Once a mutex has been
locked by a thread, other threads attempting to lock it will
block. When the locking thread unlocks (releases) the mutex,
one of the blocked threads will acquire (lock) it and proceed.

"If multiple threads or tasks are blocked on a locked mutex
object, the one to take it and proceed when it becomes
available is determined by some type of scheduling algorithm.
For example, in a priority based system, the highest priority
blocked task will acquire the mutex and proceed. Another
common set-up is put blocked tasks on a first-in-first-out
queue.

Many services use lock files to make sure that once a process has been started another one is not started. I have no experience with Qmail. I can offer what I found in google. Perhaps there is a problem with the leaf implementation of qmail?
http://www.ornl.gov/cts/archives/mailing-lists/qmail/2000/03/msg00355.html
<snip>
>[>root@saturnin smtp]# ls -l /var/qmail/queue/lock
>total 1
>- -rw------- 1 qmails qmail 0 May 13 1999 sendmutex
>- -rw-r--r-- 1 qmailr qmail 1024 Mar 8 14:57 tcpto
>prw--w--w- 1 qmails qmail 0 Mar 8 14:57 trigger>
>
>However, you need to recompile qmail with changed uids. No
>exception. qmail-send is running under a uid of qmails; it must be
>able to open the sendmutex file above...
<snip>

http://www.vmlinuz.ca/archives/mdkqmail/2002-11/msg00033.html
<snip>
Does /var/qmail/queue exist?


@400000003dd80fb10c88e684 alert: cannot start: unable to open mutex
@400000003dd80fb20e549634 alert: cannot start: unable to open mutex
@400000003dd80fb3131f7454 alert: cannot start: unable to open mutex
@400000003dd80fb4118dbc7c alert: cannot start: unable to open mutex

I am assuming here that your queue directory doesn't exist. The only thing about mutex that I see there is a file /var/qmail/queue/lock/sendmutex. Does that file exist?
<snip>

Ok please do the following on your leaf box and report back to the list:
What leaf distro are you using?
What version of qmail are you using?
cd /var/qmail
ls -l
What are the results?
cd /var/qmail/queue/lock
ls -l
What are the results?

I am speculating that there is either a
problem with the package implementation
i.e. the correct directories--queue, lock--do not exist, etc.
possible problem with a backup of the package
based on the above googling the package was compiled on one library
and being run on another leaf distro with other C libraries
the user ids and group ids don't match what is compiled in the leaf
qmail package.

I hope this starts you toward a resolution of your problem.

Greg Morgan



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Reply via email to