rresvport_af: socket: All ports in use (loop!)

terça-feira, 17 de abril de 2012

Follow the message showed when you try check a queue:

# lpstat QUEUE
rresvport_af: socket: All ports in use
err: rresvport_af()
/usr/sbin/rlpstat: Connection to QUEUE is down
no entries

Solution:

Check for "rpl" process running (will see a lot of them):

# ps -ef | grep rlp
root   1688   2345   0 08:24:40    ?      0:00 rlpdaemon -i


Use the "smh" to verify the type of that queue.

When the printer is a "remote" printer and it was created as a "network" printer, it will begin a loop causing problems to spooler. In this case is necessary remove the printer and create it again, you can create/remove it using hppi or by command line (addqueue/removequeu).
root   988   2345   0 08:24:40    ?      0:00 rlpdaemon -i