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] Is there a way to force the included flock()? (RESEND)
RESENDING...........Looks like I might have stymied everyone. :)
Hi,
To remind you, ASGARD is the NFS server, Valhalla is
the client and running Hylafax.
VALHALLA:
valhalla% uname -a
FreeBSD valhalla.t-b-o-h.net 5.3-RELEASE-p10 FreeBSD 5.3-RELEASE-p10 #0: Tue Apr 26 17:30:39 EDT 2005 root@xxxxxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/valhalla.t-b-o-h.net i386
valhalla% cat /usr/src/sys/i386/conf/valhalla.t-b-o-h.net
#
# SMP -- Generic kernel configuration file for FreeBSD/i386 SMP
# Use this for multi-processor machines
#
# $FreeBSD: src/sys/i386/conf/SMP,v 1.5.4.1 2004/10/23 20:04:00 kensmith Exp $
include GENERIC
options SMP
valhalla% cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1g /data ufs rw 2 2
/dev/da0s1e /tmp ufs rw 2 2
/dev/da0s1f /usr ufs rw 2 2
/dev/da0s1d /var ufs rw 2 2
#asgard.t-b-o-h.net:/usr/local/tboh /usr/local/tboh nfs rw 0 0
192.136.64.156:/usr/local/tboh /usr/local/tboh nfs rw 0 0
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0
valhalla% cd /usr/local
valhalla% ls -l
total 2
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 bin -> tboh/bin
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 etc -> tboh/etc
lrwxr-xr-x 1 root wheel 12 Apr 24 2005 include -> tboh/include
lrwxr-xr-x 1 root wheel 9 Apr 24 2005 info -> tboh/info
lrwxr-xr-x 1 root wheel 9 May 2 2005 ircd -> tboh/ircd
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 lib -> tboh/lib
lrwxr-xr-x 1 root wheel 12 Apr 24 2005 libdata -> tboh/libdata
lrwxr-xr-x 1 root wheel 12 Apr 24 2005 libexec -> tboh/libexec
lrwxr-xr-x 1 root wheel 22 Apr 24 2005 machine -> tboh/machines/valhalla
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 man -> tboh/man
lrwxr-xr-x 1 root wheel 10 Apr 24 2005 nocol -> tboh/nocol
lrwxr-xr-x 1 root wheel 8 Apr 29 2005 rt3 -> tboh/rt3
lrwxr-xr-x 1 root wheel 9 Apr 24 2005 sbin -> tboh/sbin
lrwxr-xr-x 1 root wheel 10 Apr 24 2005 share -> tboh/share
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 src -> tboh/src
drwxr-xr-x 26 root wheel 512 Jun 6 02:08 tboh
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 var -> tboh/var
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 www -> tboh/www
lrwxr-xr-x 1 root wheel 12 Apr 24 2005 wwwcust -> tboh/wwwcust
valhalla% ls -l
total 14
drwxrwx--- 2 smmsp smmsp 512 Oct 30 09:00 clientmqueue
lrwxr-xr-x 1 root wheel 24 Jun 10 2005 fax -> /usr/local/var/spool/fax
drwxr-xr-x 17 uucp dialer 512 Oct 11 23:17 hylafax
lrwxr-xr-x 1 root wheel 28 Jun 10 2005 hylafax.old -> /usr/local/var/spool/hylafax
drwxrwxr-x 2 uucp dialer 512 Oct 27 13:23 lock
drwxr-xr-x 2 root daemon 512 Nov 4 2004 lpd
drwxr-xr-x 2 root daemon 1536 Oct 30 14:16 mqueue
drwx------ 2 root daemon 512 Nov 4 2004 opielocks
drwxr-xr-x 3 root daemon 512 Apr 24 2005 output
(The old was before someone asked me to go to a local filesystem to see if I
still got the same issue... Which I don't).
ASGARD:
asgard# uname -a
FreeBSD asgard.t-b-o-h.net 5.3-RELEASE-p10 FreeBSD 5.3-RELEASE-p10 #0: Sat Apr 23 19:07:46 EDT 2005 root@xxxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/asgard.t-b-o-h.net i386
asgard# cat /usr/src/sys/i386/conf/asgard.t-b-o-h.net
#
# SMP -- Generic kernel configuration file for FreeBSD/i386 SMP
# Use this for multi-processor machines
#
# $FreeBSD: src/sys/i386/conf/SMP,v 1.5.4.1 2004/10/23 20:04:00 kensmith Exp $
include GENERIC
options SMP
#
# As per Scott Long for ASRutils compat
#
options ASR_COMPAT
device asr
asgard# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1g /data ufs rw 2 2
/dev/da0s1e /tmp ufs rw 2 2
/dev/da0s1f /usr ufs rw 2 2
/dev/da0s1d /var ufs rw 2 2
/dev/da1s1d /usr/local/tboh ufs rw 3 3
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
asgard# ls -l
total 4
drwxr-xr-x 2 root wheel 512 Apr 23 2005 .snap
lrwxr-xr-x 1 root wheel 8 Apr 23 2005 bin -> tboh/bin
lrwxr-xr-x 1 root wheel 8 Apr 23 2005 etc -> tboh/etc
lrwxr-xr-x 1 root wheel 12 Apr 23 2005 include -> tboh/include
lrwxr-xr-x 1 root wheel 9 Apr 23 2005 info -> tboh/info
lrwxr-xr-x 1 root wheel 9 May 2 2005 ircd -> tboh/ircd
lrwxr-xr-x 1 root wheel 8 Apr 23 2005 lib -> tboh/lib
lrwxr-xr-x 1 root wheel 12 Apr 23 2005 libdata -> tboh/libdata
lrwxr-xr-x 1 root wheel 12 Apr 23 2005 libexec -> tboh/libexec
lrwxr-xr-x 1 root wheel 20 Apr 23 2005 machine -> tboh/machines/asgard
lrwxr-xr-x 1 root wheel 8 Apr 23 2005 man -> tboh/man
lrwxr-xr-x 1 root wheel 9 May 1 2005 news -> tboh/news
lrwxr-xr-x 1 root wheel 10 Apr 24 2005 nocol -> tboh/nocol
lrwxr-xr-x 1 root wheel 8 Apr 29 2005 rt3 -> tboh/rt3
lrwxr-xr-x 1 root wheel 9 Apr 23 2005 sbin -> tboh/sbin
lrwxr-xr-x 1 root wheel 10 Apr 23 2005 share -> tboh/share
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 src -> tboh/src
drwxr-xr-x 26 root wheel 512 Jun 6 02:08 tboh
lrwxr-xr-x 1 root wheel 8 Apr 24 2005 var -> tboh/var
lrwxr-xr-x 1 root wheel 8 Apr 23 2005 www -> tboh/www
lrwxr-xr-x 1 root wheel 12 Apr 24 2005 wwwcust -> tboh/wwwcust
asgard# cd /var/spool
asgard# ls -l
total 70
drwxrwx--- 2 smmsp smmsp 512 Oct 30 14:13 clientmqueue
lrwxr-xr-x 1 root wheel 24 Jun 10 2005 fax -> /usr/local/var/spool/fax
lrwxr-xr-x 1 root wheel 28 Jun 10 2005 hylafax -> /usr/local/var/spool/hylafax
drwxrwxr-x 2 uucp dialer 512 Jun 26 11:55 lock
drwxr-xr-x 2 root daemon 512 Nov 4 2004 lpd
drwxr-xr-x 2 root daemon 59392 Oct 30 14:20 mqueue
drwx------ 2 root daemon 512 Nov 4 2004 opielocks
drwxr-xr-x 3 root daemon 512 Apr 21 2005 output
drwxr-xr-x 2 spamd spamd 512 May 9 2005 spamd
asgard# ls -ld /var/db/pkg/hylafax-4.3.0
drwxr-xr-x 2 root wheel 512 Oct 11 23:09 /var/db/pkg/hylafax-4.3.0
asgard# more /usr/ports/comms/hylafax/work/hylafax-4.3.0/config.h
(OK, edited to take comments out)
#define HYLAFAX_VERSION "HylaFAX (tm) Version 4.3.0"
#define FAX_SPOOLDIR "/var/spool/hylafax" /* pathname to top of spooling
area */
#define FAX_CLIENTBIN "/usr/local/bin" /* place for client app
s */
#define FAX_LIBEXEC "/usr/local/sbin" /* place for lib executables */
#define FAX_LIBDATA "/usr/local/lib/fax" /* place for lib data files */
#define FAX_USER "uucp" /* account name of the ``fax user'' */
#define FAX_SERVICE "hylafax" /* client-server service name */
#define FAX_PROTONAME "tcp" /* protocol used by client+server */
#define FAX_DEFPORT 4559 /* port to use if service is unknown */
#define FAX_DEFHOST "localhost" /* default host for inet-service */
#define FAX_DEFUNIX "/tmp/hyla.unix"/* default Unix-domain socket */
#ifndef CONFIG_INETTRANSPORT
#define CONFIG_INETTRANSPORT 1 /* support for TCP/IP sockets */
#endif
#ifndef CONFIG_UNIXTRANSPORT
#define CONFIG_UNIXTRANSPORT 0 /* support for Unix domain sockets */
#endif
#define FAX_TYPERULES "typerules" /* file type and conversion rules */
#define FAX_DIALRULES "dialrules" /* client dialstring conversion rules *
/
#define FAX_PAGESIZES "pagesizes" /* page size database */
#define FAX_COVER "faxcover.ps" /* prototype cover sheet file */
#define FAX_SYSCONF FAX_LIBDATA "/hyla.conf"
#define FAX_USERCONF "~/.hylarc" /* per-user configuration file */
#define FAX_ARCHDIR "archive" /* subdir for archived jobs */
#define FAX_BINDIR "bin" /* subdir for server helper cmds */
#define FAX_CLIENTDIR "client" /* subdir for client FIFO files */
#define FAX_DOCDIR "docq" /* subdir for documents to send */
#define FAX_DONEDIR "doneq" /* subdir for completed jobs */
#define FAX_ETCDIR "etc" /* subdir for configuration files */
#define FAX_INFODIR "info" /* subdir for remote machine info */
#define FAX_LOGDIR "log" /* subdir for log files */
#define FAX_POLLDIR "pollq" /* subdir for pollable documents */
#define FAX_RECVDIR "recvq" /* subdir for received facsimiles */
#define FAX_SENDDIR "sendq" /* subdir for send description files */
#define FAX_STATUSDIR "status" /* subdir for server status files */
#define FAX_TMPDIR "tmp" /* subdir for temp copies of docs */
#define FAX_SEQF "seqf" /* sequencing info filename */
#define FAX_QFILEPREF "q" /* prefix for job queue file */
#define FAX_CONFIG FAX_ETCDIR "/config"
#define FAX_XFERLOG FAX_ETCDIR "/xferfaxlog"
#define FAX_PERMFILE FAX_ETCDIR "/hosts.hfaxd"
#define FAX_INFOSUF "info" /* suffix for server info files */
#define FAX_FIFO "FIFO" /* FIFO file for talking to daemon */
#define MODEM_ANY "any" /* any modem acceptable identifier */
#define FAX_PROTOVERS 2 /* old client-server protocol version *
/
#define FAX_REQBUSY (3*60) /* requeue interval on busy answer */
#define FAX_REQPROTO (1*60) /* requeue interval on protocol error *
/
#define FAX_REQUEUE (5*60) /* requeue interval on other */
#define FAX_RETBUSY (u_int)-1 /* retry maximum on busy answer
*/
#define FAX_RETRY (u_int)-1 /* retry maximum for others */
#define FAX_RETRIES 3 /* number times to retry send */
#define FAX_REDIALS 12 /* number times to dial phone */
#define FAX_TIMEOUT "now + 3 hours" /* default job timeout (at syntax) */
#define FAX_DEFVRES 98 /* default vertical resolution */
/* default is no email notification */
#define FAX_DEFNOTIFY SendFaxJob::no_notice
#define FAX_DEFPRIORITY 127 /* default job priority */
#define UUCP_LOCKDIR "/var/spool/lock" /* directory for UUCP lock files */
#define UUCP_LOCKTYPE "ascii" /* UUCP lock file type */
#define UUCP_LOCKMODE 0444 /* UUCP lock file creation mode */
#define UUCP_PIDDIGITS 10 /* # digits to write to lock file */
#define UUCP_LCKTIMEOUT 30 /* UUCP lock auto-expiration (secs) */
#define LOG_FAX "daemon" /* logging identity */
#define FAX_NOTIFYCMD FAX_BINDIR "/notify" /* cmd to do job notification *
/
#define FAX_TRANSCMD FAX_BINDIR "/transcript"/* cmd to return transcript */
#define FAX_FAXRCVDCMD FAX_BINDIR "/faxrcvd" /* cmd to process a recvd fax *
/
#define FAX_POLLRCVDCMD FAX_BINDIR "/pollrcvd" /* cmd to process a recvd fax *
/
#define FAX_PS2FAXCMD FAX_BINDIR "/ps2fax" /* cmd to convert postscript */
#define FAX_PDF2FAXCMD FAX_BINDIR "/pdf2fax" /* cmd to convert PDF */
#define FAX_PCL2FAXCMD FAX_BINDIR "/pcl2fax" /* cmd to convert PCL */
#define FAX_TIFF2FAXCMD FAX_BINDIR "/tiff2fax" /* cmd to convert TIFF */
#define FAX_COVERCMD FAX_BINDIR "/mkcover" /* cmd to make cont coverpage *
/
#define FAX_WEDGEDCMD FAX_BINDIR "/wedged" /* cmd to handle wedged modem *
/
Tuc
>
>
> My thinking is that the issue must lie in something in your kernel/nfs, or
> something in your Hylafax build (or potentially, something wonky in
> between.) So, I'll start with my environment.
>
> Both client and server are (now) running FreeBSD 5.5. It's a custom
> kernel, due to the need for multicast routing and whatnot, but the NFS
> options are the same as with Generic. Due to past problems with it, ipv6
> is disabled.
>
> The hylafax built is a straight 4.3.0 from the ports tree, no options passed
>
> [ 1] Directory for applications: /usr/local/bin
> [ 2] Directory for lib data files: /usr/local/lib/fax
> [ 3] Directory for lib executables: /usr/local/sbin
> [ 4] Directory for system apps: /usr/local/sbin
> [ 5] Directory for manual pages: /usr/local/man
> [ 6] Directory for HTML documentation: /usr/local/share/doc/hylafax
> [ 7] Directory for spooling: /var/spool/hylafax
> [ 8] Directory for uucp lock files: /var/spool/lock
> [ 9] Uucp lock file scheme: ascii
> [10] PostScript imager package: gs
> [11] PostScript imager program: /usr/local/bin/gs
> [12] Manual page installation scheme: bsd-source-cat
> [13] Default page size: North American Letter
> [14] Default vertical res (lpi): 98
>
> After the build, I used a symbolic link for /var/spool/hylafax to point it
> at the nfs mount point, and verified that it launches and finds its files
> there.
>
____________________ 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*