HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Is this because of NFS?



Hi,

	Trying to take how I set up Hylafax on a BSD/OS system and move it
to FreeBSD. I've got things working fairly well, but I've run into something
I need some clarification on.

	When I send an email for the fax, I get :

   ----- Transcript of session follows -----
faxmail: 503 Job file lock failed: Operation not supported..
554 5.3.0 unknown mailer error 255

   ----- Original message follows -----

	It seems that I can find this in hfaxd/Jobs.c++ :

fxBool
HylaFAXServer::lockJob(Job& job, int how, fxStr& emsg)
{
    if (job.fd < 0) {
	job.fd = Sys::open("/" | job.qfile, O_RDWR|O_CREAT, 0600);
	if (job.fd < 0) {
	    emsg = "Cannot open/create job description file /" | job.qfile;
	    return (FALSE);
	}
    }
    if (flock(job.fd, how) < 0) {
	emsg = fxStr::format("Job file lock failed: %s", strerror(errno));
	Sys::close(job.fd), job.fd = -1;
	return (FALSE);
    } else
	return (TRUE);
}

	I'm running my queues and everything over NFS.... I'd imagine this
is the "Can't flock over NFS" issue I'm running into?

	Is there something more safe that can be used instead of flock if
so?  Is there a config change I can make to point to something locally?

		Thanks, Tuc

____________________ 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