1751972 Members
4982 Online
108784 Solutions
New Discussion

LPR.LOG

 
Slayer Slayer
Frequent Advisor

LPR.LOG

Hello All,

Today i was looking at the /var/adm/syslog.dated/current and i´ve noticed that the lpr.log was growing very fast.
I edited the file and i got many messages like this :
ERROR -- Wizard to SysAdmin: please issue t
his command to fix your print setup: 'chown daemon /usr/spool/lpd3/receb'
ERROR -- ... otherwise creating the print f
ilter error files will fail and filter errors will not be logged.

And also a Warning :

WARNING -- PrepareFilter: cannot open file
errsaaFwga, printer hpcqr, error Permission denied

Does anybody knows what these are ?

TIA

Regards

Brun
24 REPLIES 24
Michael Schulte zur Sur
Honored Contributor

Re: LPR.LOG

Hi,

the spool dirs must be owned by daemon.
So use
chown daemon.daemon /usr/spool/lpd3/receb
so that files can be created.

greetings,

Michael
Ralf Puchner
Honored Contributor

Re: LPR.LOG

sound like you used the unsupported way creating printer entries: vi

Please use the supported tools like lprsetup/lprconfig etc. next time to prevent any problems.
Help() { FirstReadManual(urgently); Go_to_it;; }
Slayer Slayer
Frequent Advisor

Re: LPR.LOG

Hey Guys...
Thanks for the response.
Those 2 errors above were fixed after the change of the owner.

But i also noticed another error.

ERROR -- read_some_chars: read() failed, er
ror: Bad file number.

What about this one ..
I have checked the forum but i haven´t found anything about it.
Hope you can help me.
THanks a lot ..

Bru
Michael Schulte zur Sur
Honored Contributor

Re: LPR.LOG

Hi,

are we still talking lpr.log?
If so, can you post the context?
At first thought it looks like a network problem.

hth,

Michael
Ralf Puchner
Honored Contributor

Re: LPR.LOG

it is a configuration problem, mostly parameter lp= is wrong - but this can not be happen if using lprconfig/lprsetup.

So it seems problem is a follow on to previous manual editing of printcap.

Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: LPR.LOG

Hi,

please post the printcap!

thanks,

Mochael
Slayer Slayer
Frequent Advisor

Re: LPR.LOG

Hey man sorry for the delay i wasn´t being able to connect to the web page.

But here is the printcap file.

# POA - HP4000
lp|lp0|0|rhp4000:\
:lf=/usr/adm/lperr:\
:lp=:\
:rm=hp:\
:rp=text:\
:sd=/usr/spool/lpd:\
:sh:
# POA - Cheque
lp1|1|cheque:\
:af=/usr/spool/lpd3/cheque/acct:\
:if=/usr/local/etc/smbcheque:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/cheque:
# POA - HP895
lp2|2|HP895:\
:af=/usr/adm/lp2acct:\
:if=/usr/lbin/lpf:\
:lf=/usr/adm/lp2err:\
:lp=:\
:rm=hp895:\
:rp=text:\
:sd=/usr/spool/lpd2:\
:sh:
# POA - HP680 Compras
lp3|3|hpcompra:\
:af=/usr/spool/lpd3/hpcompra/acct:\
:if=/usr/local/etc/smbhpcompra:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/hpcompra:
# POA - HPCQR
lp4|4|hpcqr:\
:af=/usr/spool/lpd3/hpcqr/acct:\
:if=/usr/local/etc/smbcqr:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/hpcqr:
# GRV - HP4050 Adm
lp5|5|hplaser:\
:af=/usr/adm/lp5acct:\
:lf=/usr/adm/lp5err:\
:lp=:\
:rm=hplaser:\
:rp=txt:\
:sd=/usr/spool/lpd5:\
:sh:
# POA - HP4L Recebimento
lp7|7|rhp4l:\
:lf=/usr/adm/lp7err:\
:lp=:\
:rm=hp4l:\
:rp=txt:\
:sd=/usr/spool/lpd7:\
:sh:
# POA - FX2180 NF
lp8|8|nota:\
:af=/usr/spool/lpd3/nota/acct:\
:if=/usr/local/etc/smbprint:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/nota:
# SCS - Financas
lp9|9|sccambio:\
:lf=/usr/adm/lp9err:\
:lp=:\
:rm=sccambio:\
:rp=text:\
:sd=/usr/spool/lpd9:\
:sh:
# SCS - Financas
lp10|10|scfint5m:\
:lf=/usr/adm/lp10err:\
:lp=:\
:rm=scfint5m:\
:rp=text:\
:sd=/usr/spool/lpd10:\
:sh:
# SCS - Compras
lp11|11|scs01:\
:lf=/usr/adm/lp11err:\
:lp=:\
:rm=printscs:\
:rp=hpcompq6:\
:sd=/usr/spool/lpd11:
# GRV - FX2180 Nota
lp13|13|fx_2180:\
:lf=/usr/adm/lp13err:\
:lp=:\
:rm=dasgrfs1:\
:rp=matricial:\
:sd=/usr/spool/lpd13:
# GRV - LEXMARK Recebimento
lp14|14|receb:\
:af=/usr/spool/lpd3/receb/acct:\
:if=/usr/local/etc/smbreceb:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/receb:
# GRV - HP1600 Sequenciamento
lp15|15|hpseq:\
:af=/usr/spool/lpd3/hpseq/acct:\
:if=/usr/local/etc/smbhpseq:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/hpseq:
# GRV - ZEBRA 105S
lp16|16|zebragrv:\
:lf=/usr/adm/lp16err:\
:lp=:\
:rm=printgrv:\
:rp=zebragrv:\
:sd=/usr/spool/lpd16:
# POA - KYOCERA
poafisc|lp17:\
:lf=/usr/adm/lp17err:\
:lp=:\
:rm=10.251.21.194:\
:rp=lp1:\
:sd=/usr/spool/lpd17:
# POA - MANUFATURA
pofab|lp19:\
:lf=/usr/adm/lp19err:\
:lp=:\
:rm=10.251.21.21:\
:rp=text:\
:sd=/usr/spool/lpd19:
# POA PLOTTER ENGENHARIA
plotter|lp6:\
:lf=/usr/adm/lp6err:\
:lp=:\
:rm=10.251.21.17:\
:rp=text:\
:sd=/usr/spool/lpd6:
# POA - KYOCERA
poafisc|lp17:\
:lf=/usr/adm/lp17err:\
:lp=:\
:rm=10.251.21.194:\
:rp=lp1:\
:sd=/usr/spool/lpd17:
# POA - MANUFATURA
pofab|lp19:\
:lf=/usr/adm/lp19err:\
:lp=:\
:rm=10.251.21.21:\
:rp=text:\
:sd=/usr/spool/lpd19:
# POA PLOTTER ENGENHARIA
plotter|lp6:\
:lf=/usr/adm/lp6err:\
:lp=:\
:rm=10.251.21.17:\
:rp=text:\
:sd=/usr/spool/lpd6:
# PC&L POA
xerox|lp12:\
:lf=/usr/adm/lp12err:\
:lp=:\
:rm=10.251.21.20:\
:rp=text:\
:sd=/usr/spool/lpd12:

Thanks a lot

Regards
BRu
Ralf Puchner
Honored Contributor

Re: LPR.LOG

and what is the exact error message containing the name of printer?

As written before check the lp= keyword which leads to the problem. lpd tries to read some characters from the remote system but cannot due to wrong printcap entry or used mechanism.
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: LPR.LOG

Hi,

just wondering, how this would work:
# GRV - HP1600 Sequenciamento
lp15|15|hpseq:\
:af=/usr/spool/lpd3/hpseq/acct:\
:if=/usr/local/etc/smbhpseq:\
:lp=/dev/null:\
:mx#0:\
:sd=/usr/spool/lpd3/hpseq:

no remote machine?

Michael