![]() |
I'm using Hylafax on a Debian (Sarge package, v4.2.1-5sarge3) and I'm having some problems i don't seem to be able to resolve.
I got hfaxd running and listening on port 4559. when I first run faxstat everything goes nice and smooth and it answers correctly. But if I re-run another (or 10 others), I get the Q301 message, aka :
# faxstat Service not available, remote server closed connection No control connection for command
I've enabled logging in hfaxd.conf and here's what i get for the first faxstat connection :
Jul 5 10:24:52 localhost HylaFAX[22997]: servertracing = 0x1FF (line 54) Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 220 localhost.localdomain server (HylaFAX (tm) Version 4.2.1) ready. Jul 5 10:24:52 localhost HylaFAX[22997]: HylaFAX INET connection from localhost.localdomain [127.0.0.1] Jul 5 10:24:52 localhost HylaFAX[22997]: command: USER root Jul 5 10:24:52 localhost HylaFAX[22997]: USER root Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 230 User root logged in. Jul 5 10:24:52 localhost HylaFAX[22997]: FAX LOGIN FROM localhost.localdomain [127.0.0.1], root Jul 5 10:24:52 localhost HylaFAX[22997]: command: TZONE LOCAL Jul 5 10:24:52 localhost HylaFAX[22997]: TZONE LOCAL Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 200 Using time values in CET. Jul 5 10:24:52 localhost HylaFAX[22997]: command: PORT 127,0,0,1,204,33 Jul 5 10:24:52 localhost HylaFAX[22997]: PORT 127.0.0.1;8652 Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 200 PORT command successful. Jul 5 10:24:52 localhost HylaFAX[22997]: command: LIST status Jul 5 10:24:52 localhost HylaFAX[22997]: LIST status Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 150 Opening new data connection for "status". Jul 5 10:24:52 localhost HylaFAX[22997]: <--- 226 Transfer complete.
Jul 5 10:24:53 localhost HylaFAX[23001]: servertracing = 0x1FF (line 54) Jul 5 10:24:53 localhost HylaFAX[23001]: <--- 220 localhost.localdomain server (HylaFAX (tm) Version 4.2.1) ready. Jul 5 10:24:53 localhost HylaFAX[23001]: HylaFAX INET connection from localhost.localdomain [127.0.0.1] Jul 5 10:24:53 localhost HylaFAX[23001]: command: USER root Jul 5 10:24:53 localhost HylaFAX[23001]: USER root Jul 5 10:24:53 localhost HylaFAX[23001]: <--- 230 User root logged in. Jul 5 10:24:53 localhost HylaFAX[23001]: FAX LOGIN FROM localhost.localdomain [127.0.0.1], root Jul 5 10:24:53 localhost HylaFAX[23001]: Lost connection to localhost.localdomain [127.0.0.1]
Not so fine anymore. (It does the exact same thing when using telnet, however I can issue numbers of other commands like HELP forever without losing connection, it only happens after using the USER command)
I also straced the processes hoping to find something more useful, and here's what I got for the working one (I'll only post the parts that are different)
28162 geteuid32() = 10 28162 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 28162 read(3, 0x8092fe8, 8192) = -1 EAGAIN (Resource temporarily unavailable) 28162 fcntl64(3, F_SETFL, O_RDWR) = 0 28162 write(3, "\1\0\0\0\1", 5) = 5 28162 shutdown(3, 2 /* send and receive */) = 0 28162 close(3) = 0 (and continues after that)
28177 geteuid32() = 10 28177 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 28177 read(3, "", 8192) = 0 28177 fcntl64(3, F_SETFL, O_RDWR) = 0 28177 write(3, "\1\0\0\0\1", 5) = -1 EPIPE (Broken pipe) 28177 --- SIGPIPE (Broken pipe) @ 0 (0) ---
I also have the same hardware (computer and modem) running the same kernel and hylafax version which is working correctly.
Thanks Thomas
____________________ 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*