Menu

LPRng + ifhp : start_of_job : timeout

Help
2009-01-13
2013-05-09
  • Jean-Noel BOUVIER

    Hello,

    I'm trying to deal with network printing (only HP printers), using LPRng + Ifhp. I installed them thanks to the GNU/Linux Debian Etch packages.

    My /etc/printcap is :

    [my_queue]|HP LaserJet 4100DTN
            :lp=[my_printer_name]%9100
            :af=/var/spool/lpd/[my_queue]/acct
            :sd=/var/spool/lpd/[my_queue]
            :ifhp=model=hp4100
            :filter=/usr/lib/ifhp/ifhp

    My /etc/lprng/lpd.conf

    lpd_listen_port= 515
    default filter_ld_path= /usr/lib/ifhp

    But when I try lo print through lpr I get :

    /var/spool/lpd/[my_queue]/status
    -------------------------------------------
    using model 'hp4100' at 10:26:39.329
    setting up printer at 10:26:39.330
    pagecounter 0 at 10:26:39.330
    write error - Broken pipe at 10:26:39.330
    timeout at 10:26:39.330

    /var/spool/lpd/[my_queue]/status.pr
    ----------------------------------------------
    IF filter 'ifhp' filter msg - 'ifhp 10:26:39.330 [5556] Start_of_job: timeout' at 2009-01-13-10:26:39.330 [...]
    IF filter 'ifhp' filter exit status 'JFAIL' at 2009-01-13-10:26:39.330

    OS : GNU/Linux Debian Etch

    Did I forget something obvious ?
    Could you please help me to understand this problem ?

    Thanks.
    --
    JNB

     
    • grumpf_

      grumpf_ - 2009-01-13

      can you  send the job directly to the printer with lpr ?

      it should look like  "lpr -Pqueue@printer%port test.ps"

      if this works i would assume that your printersetup is broken perhaps the filter.

       
    • Bernhard R. Link

      Hi,
      I must preclude I never used ifhp but only lprng, so I must guess a bit, but some points that might help:

      1)
              :lp=[my_printer_name]%9100

      lp is a "device name or pipe to send output to". If it contains a '@' character,
      it is translated to the more :rp=queuename:rm=printer, but I guess without an '@' and only an '%' it might try to write to that file instead and fail. so try making that an rm= instead of an lp= might help.

      On the other hand, ifhp seems to have also a way to send it to the printer directly, so if ifhp is configured in that way, you might not need such a line at all.

      2)
      default filter_ld_path= /usr/lib/ifhp

      I think this line should be just removed.
      I think with the default in front of it it will not work anyway, and even if it works it may cause more harm than good.

       
    • Jean-Noel BOUVIER

      Hello Grumpf and Bernhard,

      I respond to Grumpf first ;-)

      Here is the result of "lpr -P[queue]@[printer]%9100 test.ps" :

      Status Information, attempt [1-3] of 3:
      sending job 'root@xxx+779' to [queue]@[printer]%9100
      connecting to '[printer]%9100', attempt 1
      connected to '[printer]%9100'
      requesting printer [queue]@[printer]%9100
      job 'root@xxx+779' transfer to [queue]@[printer]%9100 failed
        error 'ERROR TRANSFERRING DATA'
        sending str '^B[queue]' to [queue]@[printer]%9100
      Waiting 10 seconds before retry

      Thanks again for your help.

       
    • Jean-Noel BOUVIER

      Hello,

      PROBLEM SOLVED :

      the HP printer just needed to be 'cold reseted'.

      Thanks again for your help.
      Regards.

       

Log in to post a comment.