HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Problem LOCKWAIT



Hello Lee,

> It's the first foreign lockfile that we're trying to get at.

to get the pid of the concurrent process I wrote the following script,
let a user submit a fax-job and started my script.
Here is my debugging script:
#!/bin/bash
date '+%H:%M:%S waiting for file...' > hylafax_LCK
waiting='1'
while [ "$waiting" ]; do
   sleep 1
   if [ -e /var/spool/lock/LCK..cuaa1 ]; then
      waiting=''
   fi
done
date '+%H:%M:%S file /var/spool/lock/LCK..cuaa1 found' >> hylafax_LCK
tail -F /var/spool/lock/LCK..cuaa1 >> hylafax_LCK

And here is the output of the script:
12:47:16 waiting for file...
12:50:46 file /var/spool/lock/LCK..cuaa1 found
     11912
     11893

Using ps I found the following processes:
11912 is /usr/local/sbin/faxq
11893 is /usr/local/sbin/faxgetty cuaa1

So faxq is the blocking process, that locks the modem and faxgetty
is the the process that raises the LOCKWAIT condition.

At the time, the lockfile was created, there happened the following
logging in my server-log:
Jan 30 12:50:46 faxserver FaxGetty[11893]: LOCKWAIT
Jan 30 12:50:46 faxserver FaxGetty[11893]: STATE CHANGE: RUNNING ->
LOCKWAIT (time
out 30)
Jan 30 12:50:46 faxserver FaxGetty[11893]: LOCKWAIT
Jan 30 12:50:46 faxserver last message repeated 67 times

Letting my script run for longer, there were no other pids, just
more times the same 2 processes.

Can you please tell me, what to do with this information ?
Why could I send (and receive) faxes before and (more important)
why can't I now ?

Thanks again !
Kilian

Lee Howard wrote:
> 
> Kilian Schlaich wrote:
> 
> >I still have a STATE CHANGE alternating from RUNNING to LOCKWAIT
> >and back to RUNNING and so on and cannot send any fax.
> >
> 
> The reason that faxgetty changes the state from RUNNING to LOCKWAIT is
> because it sees a lockfile appear in the lock directory for that modem
> device.  So the question I had and that still goes unanswered is, what
> process is putting that lockfile in there?
> 
> As soon as the foreign lockfile disappears then faxgetty will lock the
> modem device itself and then reinitialize the modem for fax use.  I
> think that this is the lockfile that you analyzed.  It's the first
> foreign lockfile that we're trying to get at.
> 
> Lee.

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions