11 Replies Latest reply: Jul 6, 2006 12:51 PM by Zarquon42
Zarquon42 Level 1 Level 1 (75 points)
I'm trying to do something that should be very, very simple: set up my Powerbook to print to my home printer (a USB HP DeskJet 840C hooked to an iMac. Both computers are running OS X 10.3.9 Panther) while I'm on the road.

This should be exceptionally easy. The iMac has a stable DNS name, so I pull up Printer Setup Utility, choose IP Printing, choose Internet Printing Protocol, type the DNS name into Printer Address, and type the queue name garnered from Show Info on the wired printer. When I try to print, CUPS returns "Destination printer does not exist!" The URI is <foo.com:631/ipp/PRINTER_NAME>. This should work. It doesn't. So, apparently, printers are kept at /printers rather than /ipp. (Why Panther doesn't know this is beyond me. But actually, CUPS doesn't seem to know it either, as the suggested URIs in the web interface use /ipp.) So I change /ipp to /printers, and lo and behold! The Powerbook apparently sees the remote printer. It spools, and....nothing happens. Ever. The print job vanishes into thin air. Well, not quite; the Completed Jobs log on the iMac does indeed list the print job as Completed. But completed to where I have no idea as my printer never so much as coughed.

Now, before you go thinking there's something wrong with my printer, when I log into the iMac remotely using <http://hostname:631> and print a test page, everything works swimmingly.

So..help? Please? If the only answer there is is something overwhelmingly technical; that's fine. I can handle a command line. I just need to get this working!

Thanks.

Grape iMac DV   Mac OS X (10.3.9)  
  • greg sahli Level 7 Level 7 (24,495 points)
    First - I'm only guessing here that you have taken care of the routing/port forwarding issues? Port 631 goes to the right computer?

    next - URI -
    I would use:
    http://[IPaddress]:631/printers/queuename

    Notice queue name instead of Printer Name. You find the queue name on the server Mac by highlighting the printer in Printer Setup and doing Show Info.

    (Queue name is listed on the CUPS admin "printers" page just above the generic printer icon on the left side)

    Hope this helps.
  • Zarquon42 Level 1 Level 1 (75 points)
    Nope. Sorry. That does not help. I suppose I should have been more clear; the printer name and queue name are the same in this instance. No, that's not the problem. I did figure it out though; check the next post.
  • Zarquon42 Level 1 Level 1 (75 points)
    Well, what do you know; I fixed it. After I wrote this, a horrible feeling came over me, as I remembered something I had seen when logged into CUPS on the iMac: The Device URI of the printer. It was "file:///dev/null". "What if," I thought, "THAT was where the print jobs were being spooled to? That would certainly explain why they seemed to vanish into nothingness...they DID." So I created a new printer on the iMac, using GIMP drivers this time, hooked up to THAT one from the PowerBook...and wonder of wonders, it worked.

    So...thanks for the help.

    *#$% counterintuitive @^&&! un-mac-like !^$@&&* rotten user-hostile UNIX @$^!$ grumble grumble...


    Grape iMac DV   Mac OS X (10.3.9)  
  • greg sahli Level 7 Level 7 (24,495 points)
    Glad you got it sorted, Jim.
    Question - Not one of my queue names is the same as printer name - did you go back and rename the printer to the queue name after Adding it?
  • Zarquon42 Level 1 Level 1 (75 points)
    No; I'm using a USB printer, which might explain it. The name is DESKJET_840C, and that's its queue name. Or maybe it doesn't have a name, just a queue name. Regardless, it's the only name I found. (Well, besides the name that shows up in my Print dialog, which is "DESKJET 840C")
  • greg sahli Level 7 Level 7 (24,495 points)
    Oh, ya, I see. CUPS doesn't like (replaces) spaces, and all my printer names have spaces.

    Thanks.
  • Zarquon42 Level 1 Level 1 (75 points)
    Well, this got it working locally (using the host computer's domain name), but not remotely. Locally, jobs print instantly. Remotely, it says "Printer is busy; retrying in 10 seconds" forever. I suspect it's some sort of authentication issue, but I have no idea how to diagnose or fix it.
  • greg sahli Level 7 Level 7 (24,495 points)
    Jim,
    I jumped over this quickly before - do you have port forwarding set up? This is where you tell the router that every request for port 631 goes to the server's local IP address.
  • Zarquon42 Level 1 Level 1 (75 points)
    No router--just an Airport card and Internet Sharing enabled. No firewall either. The port is not a problem, as I can log in to the CUPS web interface remotely.
  • greg sahli Level 7 Level 7 (24,495 points)
    I think you misunderstand me....
    You do have a router or Airport Base Station or neighborhood wireless access point that is connecting you to the internet, right? That is the piece of the puzzle I am wondering about.

    Example:
    I have a Mac at school that can act as print server to any computer on campus. From home, I can ping the mac, and I can login via ssh. But I can't connect to the CUPS page, and therefore also not print via port 631, because the campus firewall blocks 631.
  • Zarquon42 Level 1 Level 1 (75 points)
    The only router I have is a cable modem.