Hylafax queue problem on SuSE 9.3
I have set up an oungoing fax server using Hylafax on SuSE 9.3 Everything seems to be fine, except that it never sends the faxes. Clients can submit faxes to the queue, but then the faxes just sit there. The queue is never processed. Any idea what could be wrong or where to start looking? -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
On Wednesday 28 December 2005 4:08 am, Andre Truter wrote:
I have set up an oungoing fax server using Hylafax on SuSE 9.3
Everything seems to be fine, except that it never sends the faxes. Clients can submit faxes to the queue, but then the faxes just sit there. The queue is never processed.
Any idea what could be wrong or where to start looking?
-- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org
~ A dinosaur is a salamander designed to Mil Spec ~
http://www.hylafax.org/troubleshooting.html is my first stop when troubleshooting hylafax. This should also be in /usr/share/doc/packages. What steps have you taken to verify the modem is working, hfaxd is running, faxstat's output is what, etc. Check the log files for hylafax because the answer is probably there. Stan
On 12/28/05, Stan Glasoe <srglasoe@comcast.net> wrote:
On Wednesday 28 December 2005 4:08 am, Andre Truter wrote:
I have set up an oungoing fax server using Hylafax on SuSE 9.3
Everything seems to be fine, except that it never sends the faxes. Clients can submit faxes to the queue, but then the faxes just sit there. The queue is never processed.
Any idea what could be wrong or where to start looking?
[..]
http://www.hylafax.org/troubleshooting.html is my first stop when troubleshooting hylafax. This should also be in /usr/share/doc/packages. What steps have you taken to verify the modem is working, hfaxd is running, faxstat's output is what, etc. Check the log files for hylafax because the answer is probably there.
The problem was that we only have an outbound service. I had to run 'faxmodem ttyS0'. Once that has been run, the faxes in the queue gets sent. Problem now is, how do you get the the modem started when the box or Hylafax start? When I reboot the box, I have to log in and run the faxmodem command again. As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it? -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
On Thursday 05 January 2006 11:22 am, Andre Truter wrote:
On 12/28/05, Stan Glasoe <srglasoe@comcast.net> wrote:
http://www.hylafax.org/troubleshooting.html is my first stop when troubleshooting hylafax. This should also be in /usr/share/doc/packages. What steps have you taken to verify the modem is working, hfaxd is running, faxstat's output is what, etc. Check the log files for hylafax because the answer is probably there.
The problem was that we only have an outbound service. I had to run 'faxmodem ttyS0'. Once that has been run, the faxes in the queue gets sent.
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it?
Andre Truter
Are you sure hfaxd and faxq, etc are running? I would still advise you to go to www.hylafax.org for the basic steps involved. That previous URL I gave you is now an outdated website. They seem to have switched to a wiki format for ongoing troubleshooting steps. They don't seem to have carried over the old information so keep that link handy. Care to share anymore details about your setup? Like faxstat output? Stan
Hi Andre, Andre Truter wrote:
On 12/28/05, Stan Glasoe <srglasoe@comcast.net> wrote:
On Wednesday 28 December 2005 4:08 am, Andre Truter wrote:
I have set up an oungoing fax server using Hylafax on SuSE 9.3
Everything seems to be fine, except that it never sends the faxes. <snip>
The problem was that we only have an outbound service. I had to run 'faxmodem ttyS0'. Once that has been run, the faxes in the queue gets sent.
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it? Correct or not, if it works, who cares? I have however identified, what I think is an 'oops'.
Currently when Hylafax starts it is going to send all the queued faxes. What if I want to send a fax after that send, do I have to wait until Hylafax is restarted? My feeling would be to write a script that does the fax modem thing and have that script run periodically and before the box is shutdown via cron. That way if I send a fax at 10:25am and the Hylafax software was started at 8am, I know that the fax is actually going to leave the building at 11am. It would seem that you need a script to execute on boot to start Hylafax after the system is running. I'm almost certain that with a line at the end of your boot script you could get Hylafax started. Starting that would run the faxmodem command, if you don't follow my idea above. I had a look in the SuSE help on my system for boot script and found something about starting software on boot. Maybe it will help. I'll mail you the help page pvtly if you do not come right. HIH -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Friday 06 January 2006 7:31 am, Hylton Conacher (ZR1HPC) wrote:
Correct or not, if it works, who cares? I have however identified, what I think is an 'oops'.
Currently when Hylafax starts it is going to send all the queued faxes. What if I want to send a fax after that send, do I have to wait until Hylafax is restarted? My feeling would be to write a script that does the fax modem thing and have that script run periodically and before the box is shutdown via cron. That way if I send a fax at 10:25am and the Hylafax software was started at 8am, I know that the fax is actually going to leave the building at 11am.
Maybe you should read the Hylafax manuals instead of guessing?
It would seem that you need a script to execute on boot to start Hylafax after the system is running. I'm almost certain that with a line at the end of your boot script you could get Hylafax started. Starting that would run the faxmodem command, if you don't follow my idea above.
You haven't read the manuals at all have you? This is all documented.
I had a look in the SuSE help on my system for boot script and found something about starting software on boot. Maybe it will help. I'll mail you the help page pvtly if you do not come right.
Hylafax already does this for you in a better and simpler manner. RTFM.
Hylton Conacher
Stan
Stan Glasoe wrote:
On Friday 06 January 2006 7:31 am, Hylton Conacher (ZR1HPC) wrote:
Correct or not, if it works, who cares? I have however identified, what I think is an 'oops'.
Currently when Hylafax starts it is going to send all the queued faxes. What if I want to send a fax after that send, do I have to wait until Hylafax is restarted? My feeling would be to write a script that does the fax modem thing and have that script run periodically and before the box is shutdown via cron. That way if I send a fax at 10:25am and the Hylafax software was started at 8am, I know that the fax is actually going to leave the building at 11am.
Maybe you should read the Hylafax manuals instead of guessing? Reading the manual would have been a good idea, but guessing is so much fun. :) If I had Hylafax running or hell, even installed, I'd RTFM 1st.
It would seem that you need a script to execute on boot to start Hylafax after the system is running. I'm almost certain that with a line at the end of your boot script you could get Hylafax started. Starting that would run the faxmodem command, if you don't follow my idea above.
You haven't read the manuals at all have you? This is all documented. Why would I want to read the manuals. A person only reads manuals when they've exhausted every other resource. :) Asides I was not the original question poster, whom I assume HAS read the manuals and is still stuck. I just put in my 2c worth on what I thought. I thought wrong and need tuition. That's why I am on SLE to learn when to RTFM and when to try something else.
I had a look in the SuSE help on my system for boot script and found something about starting software on boot. Maybe it will help. I'll mail you the help page pvtly if you do not come right.
Hylafax already does this for you in a better and simpler manner. RTFM. I am starting to take offence here. I offer possible help that is not in your precious FM and I get told to RTFM. I say again, I am NOT the person with the original problem. Thinking outside the box sometimes does help.
Case closed and I will not respond further. Hylton
On 1/6/06, Hylton Conacher (ZR1HPC) <hylton@global.co.za> wrote:
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it?
Correct or not, if it works, who cares? I have however identified, what I think is an 'oops'.
Currently when Hylafax starts it is going to send all the queued faxes. What if I want to send a fax after that send, do I have to wait until Hylafax is restarted? My feeling would be to write a script that does the fax modem thing and have that script run periodically and before the box is shutdown via cron. That way if I send a fax at 10:25am and the Hylafax software was started at 8am, I know that the fax is actually going to leave the building at 11am.
I don't understand the problem. When you start the hylafax service (/etc/init.d/hylafax start), then Hylafax will send any faxes in the queue and then send any faxes that you submit as you submit it. THe hylafax init script that comes with SuSE starts the hylafax server (which listens for clients submitting faxes), as well as the fax queue. So, you just enable the hylafax service to start at boot time: chkconfig -a hylafax Now hylafax will start when the box starts and it will listen for clients submitting faxes. (this is how UNIX and Linux start services after boot time and should be what the SUSE docs refer to also) THe problem is that before the queue will send any faxes, you need to tell it which modem to use, with the 'faxmodem' command. Once you have issued the faxmodem command, the system will send faxes for as long as the service is running. I just modified the init script (/etc/init.d/hylafax) and added the faxmodem command. I also built in a 10 second sleep, so that the faxmodem command will only run 10 seconds after the hylafax server and queue server has started, to give them time to settle, else the faxmodem command does not work. -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
<SNIP>
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it?
# fax getty (hylafax) # mo:35:respawn:/usr/lib/fax/faxgetty /dev/modem uncomment the above line in /etc/inittab changing modem if needed. -- Louis Richards
On 1/10/06, Louis Richards <louis@ldrit.com> wrote:
<SNIP>
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it?
# fax getty (hylafax) # mo:35:respawn:/usr/lib/fax/faxgetty /dev/modem
uncomment the above line in /etc/inittab changing modem if needed.
What will happen if that phone line is called? Will faxgetty answer and try to receive a fax? We don't want incoming fax, only outgoing. -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.co.za ~ A dinosaur is a salamander designed to Mil Spec ~
On Tuesday 10 January 2006 12:12 am, Andre Truter wrote:
On 1/10/06, Louis Richards <louis@ldrit.com> wrote:
# fax getty (hylafax) # mo:35:respawn:/usr/lib/fax/faxgetty /dev/modem
uncomment the above line in /etc/inittab changing modem if needed.
What will happen if that phone line is called? Will faxgetty answer and try to receive a fax?
We don't want incoming fax, only outgoing.
Andre Truter
Set your fax modem to _not answer_ incoming calls by setting RingBeforeAnswer to 0 in your modem's config file. Using the faxgetty method makes sure that Hylafax is always waiting to send or receive a fax. Much better than messing with scripts in /etc/init.d which will get overwritten by updates or changes via version upgrades, YOU, smart, apt, etc. Stan
On 1/11/06, Stan Glasoe <srglasoe@comcast.net> wrote:
On Tuesday 10 January 2006 12:12 am, Andre Truter wrote:
On 1/10/06, Louis Richards <louis@ldrit.com> wrote:
# fax getty (hylafax) # mo:35:respawn:/usr/lib/fax/faxgetty /dev/modem
uncomment the above line in /etc/inittab changing modem if needed.
What will happen if that phone line is called? Will faxgetty answer and try to receive a fax?
We don't want incoming fax, only outgoing.
Andre Truter
Set your fax modem to _not answer_ incoming calls by setting RingBeforeAnswer to 0 in your modem's config file. Using the faxgetty method makes sure that Hylafax is always waiting to send or receive a fax. Much better than messing with scripts in /etc/init.d which will get overwritten by updates or changes via version upgrades, YOU, smart, apt, etc.
Ahh.. This seems like the proper way of doing it. I don't like changing the init scripts as it makes maintenance difficult. I will try this, thanks -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.co.za ~ A dinosaur is a salamander designed to Mil Spec ~
participants (4)
-
Andre Truter
-
Hylton Conacher (ZR1HPC)
-
Louis Richards
-
Stan Glasoe