HylaFAX The world's most advanced open source fax server

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

[hylafax-users] fax2ps problem or modem config ??



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i finaly figured out ( after reading some other posts ) what is causing
my server to stop answering at randome intervolts! Its fax2ps hanging

now i need to figure out how to fix the problem.

running Mandrake 8.0 (with some cooker stuff)
hylafax rpms are version 4.1-6mdk
ghostscript-6.51-24mdk
libtiff3-3.5.5-8mdk
gawk-3.1.0-1mdk
libtiff3-progs-3.5.5-8mdk

i have added some printing stuff into faxrcvd, because i need to print all
incoming faxes.  the problem come in that for some reason the tiff file
that is created and handed off to faxrcvd hangs fax2ps, wich causes
faxrcvd to never finish, which causes hylafax to not answer any more
calles!

from faxrcvd:
if [ -f $FILE ]; then
  $FAX2PS -S -W 8.25 -H 10.75 $FILE 2>>/tmp/fax2ps.log | lpr-cups -P AR507
fi

see, fax2ps has been running for almost an 1.5 hours ! no faxes in for all
that time.

PID  USER PRI NI SIZE  RSS SHARE STAT %CPU %MEM  TIME COMMAND
4364 uucp  18  0  920  920   768 R    63.6  0.3 89:48 /usr/bin/fax2ps recvq/fax00558.tif
1938 uucp   9  0 2256 2256  1380 S     0.0  0.9  0:00 /usr/sbin/faxgetty ttyR0
1988 uucp   9  0 2092 2092  1248 S     0.0  0.8  0:00 faxq
1999 uucp   8  0 1556 1556  1008 S     0.0  0.6  0:06 hfaxd -i hylafax
4362 uucp   9  0  956  956   812 S     0.0  0.3  0:00 /bin/sh bin/faxrcvd recvq/fax00558.tif ttyR0 00001802
4365 uucp   9  0 1264 1264   916 S     0.0  0.5  0:00 lpr-cups -P AR507

running /usr/bin/fax2ps recvq/fax00558.tif  > fax00558.ps from the prompt
gives:

Fax3Decode2D: fax00558.tif: Bad code word at scanline 82 (x 350).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 1028 (x 1159).
Fax3Decode2D: fax00558.tif: Uncompressed data (not supported) at scanline 1029 (x 354).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 234 (x 1416).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 526 (x 1142).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 584 (x 776).
Fax3Decode2D: fax00558.tif: Uncompressed data (not supported) at scanline 649 (x 1079).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 911 (x 1648).
Fax3Decode2D: fax00558.tif: Bad code word at scanline 1298 (x 1520).

and hangs.

here is the log.

Mar 19 10:30:12.01: [ 1938]: SESSION BEGIN 00001802 16087427652
Mar 19 10:30:12.01: [ 1938]: <-- [4:ATA\r]
Mar 19 10:30:20.56: [ 1938]: --> [5:+FCON]
Mar 19 10:30:20.56: [ 1938]: ANSWER: FAX CONNECTION
Mar 19 10:30:20.57: [ 1938]: RECV FAX: begin
Mar 19 10:30:25.64: [ 1938]: --> [28:+FTSI:"        262 717 6407"]
Mar 19 10:30:25.64: [ 1938]: REMOTE TSI "262 717 6407"
Mar 19 10:30:25.64: [ 1938]: --> [21:+FDCS:1,5,0,2,1,0,0,3]
Mar 19 10:30:25.64: [ 1938]: REMOTE wants 14400 bit/s
Mar 19 10:30:25.64: [ 1938]: REMOTE wants page width 1728 pixels in 215 mm
Mar 19 10:30:25.64: [ 1938]: REMOTE wants unlimited page length
Mar 19 10:30:25.64: [ 1938]: REMOTE wants 7.7 line/mm
Mar 19 10:30:25.64: [ 1938]: REMOTE wants 2-D MR
Mar 19 10:30:25.64: [ 1938]: --> [2:OK]
Mar 19 10:30:25.65: [ 1938]: <-- [7:AT+FDR\r]
Mar 19 10:30:27.03: [ 1938]: --> [5:+FCFR]
Mar 19 10:30:27.03: [ 1938]: --> [28:+FTSI:"        262 717 6407"]
Mar 19 10:30:27.03: [ 1938]: REMOTE TSI "262 717 6407"
Mar 19 10:30:27.03: [ 1938]: --> [21:+FDCS:1,5,0,2,1,0,0,3]
Mar 19 10:30:27.03: [ 1938]: REMOTE wants 14400 bit/s
Mar 19 10:30:27.03: [ 1938]: REMOTE wants page width 1728 pixels in 215 mm
Mar 19 10:30:27.03: [ 1938]: REMOTE wants unlimited page length
Mar 19 10:30:27.03: [ 1938]: REMOTE wants 7.7 line/mm
Mar 19 10:30:27.03: [ 1938]: REMOTE wants 2-D MR
Mar 19 10:30:28.57: [ 1938]: --> [7:CONNECT]
Mar 19 10:30:28.57: [ 1938]: RECV: begin page
Mar 19 10:30:28.57: [ 1938]: RECV: send trigger 022
Mar 19 10:30:28.57: [ 1938]: <-- data [1]
Mar 19 10:30:47.54: [ 1938]: RECV: 32752 bytes of data, 1464 total lines
Mar 19 10:30:54.29: [ 1938]: RECV: 12020 bytes of data, 2115 total lines
Mar 19 10:30:54.29: [ 1938]: --> [15:+FPTS:1,0,0,0,0]
Mar 19 10:30:55.56: [ 1938]: --> [6:+FET:0]
Mar 19 10:30:55.56: [ 1938]: RECV recv MPS (more pages, same document)
Mar 19 10:30:55.56: [ 1938]: --> [2:OK]
Mar 19 10:30:55.56: [ 1938]: RECV send MCF (message confirmation)
Mar 19 10:30:55.57: [ 1938]: RECV FAX (00001802): from 262 717 6407, page 1 in 0:30, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:30:55.57: [ 1938]: <-- [7:AT+FDR\r]
Mar 19 10:30:58.48: [ 1938]: --> [7:CONNECT]
Mar 19 10:30:58.48: [ 1938]: RECV: begin page
Mar 19 10:30:58.48: [ 1938]: RECV: send trigger 022
Mar 19 10:30:58.48: [ 1938]: <-- data [1]
Mar 19 10:31:17.47: [ 1938]: RECV: 32720 bytes of data, 1329 total lines
Mar 19 10:31:26.14: [ 1938]: RECV: 15532 bytes of data, 2125 total lines
Mar 19 10:31:26.14: [ 1938]: --> [15:+FPTS:1,0,0,0,0]
Mar 19 10:31:27.41: [ 1938]: --> [6:+FET:0]
Mar 19 10:31:27.41: [ 1938]: RECV recv MPS (more pages, same document)
Mar 19 10:31:27.41: [ 1938]: --> [2:OK]
Mar 19 10:31:27.41: [ 1938]: RECV send MCF (message confirmation)
Mar 19 10:31:27.41: [ 1938]: RECV FAX (00001802): from 262 717 6407, page 2 in 0:32, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:31:27.42: [ 1938]: <-- [7:AT+FDR\r]
Mar 19 10:31:30.30: [ 1938]: --> [7:CONNECT]
Mar 19 10:31:30.30: [ 1938]: RECV: begin page
Mar 19 10:31:30.30: [ 1938]: RECV: send trigger 022
Mar 19 10:31:30.30: [ 1938]: <-- data [1]
Mar 19 10:31:49.27: [ 1938]: RECV: 32766 bytes of data, 1288 total lines
Mar 19 10:31:57.93: [ 1938]: RECV: 15442 bytes of data, 2128 total lines
Mar 19 10:31:57.93: [ 1938]: --> [15:+FPTS:1,0,0,0,0]
Mar 19 10:31:59.20: [ 1938]: --> [6:+FET:2]
Mar 19 10:31:59.20: [ 1938]: RECV recv EOP (no more pages or documents)
Mar 19 10:31:59.20: [ 1938]: --> [2:OK]
Mar 19 10:31:59.20: [ 1938]: RECV send MCF (message confirmation)
Mar 19 10:31:59.20: [ 1938]: RECV FAX (00001802): from 262 717 6407, page 3 in 0:32, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:31:59.21: [ 1938]: RECV FAX (00001802): recvq/fax00558.tif from 262 717 6407, route to <unspecified>, 3 pages in 1:39
Mar 19 10:31:59.21: [ 1938]: <-- [7:AT+FDR\r]
Mar 19 10:32:02.29: [ 1938]: --> [7:+FHNG:0]
Mar 19 10:32:02.29: [ 1938]: REMOTE HANGUP: Normal and proper end of connection (code 0)
Mar 19 10:32:02.29: [ 1938]: RECV FAX: bin/faxrcvd "recvq/fax00558.tif" "ttyR0" "00001802" ""

And from syslog:

Mar 19 10:30:05 faxserv1 FaxGetty[1938]: STATE CHANGE: RUNNING -> LISTENING
Mar 19 10:30:05 faxserv1 FaxGetty[1938]: MODEM input buffering enabled
Mar 19 10:30:05 faxserv1 FaxGetty[1938]: --> [4:RING]
Mar 19 10:30:12 faxserv1 FaxGetty[1938]: --> [4:RING]
Mar 19 10:30:12 faxserv1 FaxGetty[1938]: STATE CHANGE: LISTENING -> ANSWERING
Mar 19 10:30:12 faxserv1 FaxGetty[1938]: MODEM input buffering enabled
Mar 19 10:30:20 faxserv1 FaxGetty[1938]: ANSWER: FAX CONNECTION
Mar 19 10:30:55 faxserv1 FaxGetty[1938]: RECV FAX (00001802): from 262 717 6407, page 1 in 0:30, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:31:27 faxserv1 FaxGetty[1938]: RECV FAX (00001802): from 262 717 6407, page 2 in 0:32, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:31:59 faxserv1 FaxGetty[1938]: RECV FAX (00001802): from 262 717 6407, page 3 in 0:32, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Mar 19 10:31:59 faxserv1 FaxGetty[1938]: RECV FAX (00001802): recvq/fax00558.tif from 262 717 6407, route to <unspecified>, 3 pages in 1:39
Mar 19 10:32:02 faxserv1 FaxGetty[1938]: RECV FAX: bin/faxrcvd "recvq/fax00558.tif" "ttyR0" "00001802" ""



- -- 
- --
Brad Wyman           |\      _,,,---,,_
bradw@sta-care.com  /,`.-'`'    -.  ;-;;,_
Network Admin      |,4-  ) )-,_. ,\ (  `'-'
Sta-Care, Inc.    '---''(_/--'  `-'_)

PGP Fingerprint: 8B1E E12F 3982 0D54 E01C  DFD3 898B 6CA3 ED6F 3E56

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8l5xbiYtso+1vPlYRApT8AJ97Kiszz/5ZdaKoGjZeaD4cYTDPCgCfWuPD
YX7UA0+mVJCvrRBajseHDOY=
=Fxfn
-----END PGP SIGNATURE-----


____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions