CUPS unable to locate printer

Kurt Pfeifle k1pfeifle at gmx.net
Tue Oct 16 13:23:20 PDT 2007


tuxsun1 wrote:
> Linksys router: DHCP server in router disabled
> Connected to router: 2 PCs and 1 HP ink jet printer plugged into router
> HP Printer: Network settings: IP address set static to 192.168.1.105
> 
> I can ping the printer. 

You mean you are really seeing something like this:

i-am-root at my-dear-box/within/my/b0rken/home/network:~> ping printer
  PING printer (192.168.1.105) 56(84) bytes of data.
  64 bytes from printer (192.168.1.105): icmp_seq=1 ttl=255 time=0.536 ms
  64 bytes from printer (192.168.1.105): icmp_seq=2 ttl=255 time=0.512 ms
  64 bytes from printer (192.168.1.105): icmp_seq=3 ttl=255 time=0.523 ms
  64 bytes from printer (192.168.1.105): icmp_seq=4 ttl=255 time=0.515 ms
  64 bytes from printer (192.168.1.105): icmp_seq=5 ttl=255 time=0.546 ms
  64 bytes from printer (192.168.1.105): icmp_seq=6 ttl=255 time=0.525 ms
  64 bytes from printer (192.168.1.105): icmp_seq=7 ttl=255 time=0.523 ms
  ^C
  --- printer ping statistics ---
  7 packets transmitted, 7 received, 0% packet loss, time 5999ms
  rtt min/avg/max/mdev = 0.512/0.525/0.546/0.029 ms
i-am-root at my-dear-box/within/my/b0rken/home/network:~>

You *indeed* did use the name "printer" to ping it? Or did you ping
to its IP address, 192.168.1.105 ?

> But for some reason, either the print jobs
> aren't getting to the printer, or possibly the ethernet portion of the
> printer is broken.
> 
> Shows in CUPS web interface:
> 
> "Unable to locate printer 'printer' - Unknown host"
> Device URI: socket://printer:9100

Try to change the Device URI to use the printer's IP address, not the
name "printer" (it's a weird name for a printer any way -- or would
you name your kid "kid"? OK, OK, your choice; so keep the printer's
name as "printer", but change its Device URI to use the IP address.)

> Suggestions?

Run (as root, but that's what you seem to be used to anyway)

   lpadmin -P printer -v socket://192.168.1.105:9100

*Alternatively*, make sure you have this line in your '/etc/hosts'
file:

192.168.1.105   printer

Make sure you can use "ping printer" as well as "ping 192.168.1.105"

> Error log after sending a print job shows:

You sent at least two print jobs (job IDs 26 and 27).

> I [09/Oct/2007:17:39:18 -0500] Started filter
> /usr/lib/cups/filter/pstops (PID 11153) for job 26.
> I [09/Oct/2007:17:39:18 -0500] Started filter
> /usr/lib/cups/filter/foomatic-rip (PID 11154) for job 26.
> I [09/Oct/2007:17:39:18 -0500] Started backend
> /usr/lib/cups/backend/socket (PID 11155) for job 26.
> I [09/Oct/2007:17:39:18 -0500] Adding start banner page "none" to job 27.
> I [09/Oct/2007:17:39:18 -0500] Adding end banner page "none" to job 27.
> I [09/Oct/2007:17:39:18 -0500] Job 27 queued on 'printer' by 'root'.
> I [09/Oct/2007:17:39:18 -0500] Started filter
> /usr/lib/cups/filter/pstops (PID 11156) for job 27.
> I [09/Oct/2007:17:39:18 -0500] Started filter
> /usr/lib/cups/filter/foomatic-rip (PID 11157) for job 27.
> I [09/Oct/2007:17:39:18 -0500] Started backend
> /usr/lib/cups/backend/socket (PID 11158) for job 27.
> E [09/Oct/2007:17:39:18 -0500] [Job 26] Unable to locate printer
> 'HP_OfficeJet_6310' - Unknown host

So you have 2 printers, eh?

> E [09/Oct/2007:17:39:18 -0500] [Job 27] Unable to locate printer
> 'printer' - Unknown host


-- 
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
A RICOH Company  ...........................  D-70327 Stuttgart/Germany




More information about the cups mailing list