[opensuse] Cups network printers stuck with URI /dev/null
I have a client with a network of SUSE 11.1 machines. Printers are physically connected to a number of the workstations. CUPS is set up so that all machines can see all other printers. Normally it works good. But then something went wrong on the one machine. Two of the remote printers on it is stuck in the configuration and I cannot remove them. Basic scenario: Server1 : workstation1 : printer1, printer2 workstation2 : printer3, printer4 So, normally Server1 lists printers1-4 in it;s cups and it can print to them. But now, we have on server1 the following: printer1, printer2, working pritner3: Listed, but URI=/dev/null printer4: Listed, but URI=/dev/null. pritner3@workstation2: working printer3@workstation2: working If I shut down the CUPS on workstation2, the two printers with @workstation2 disappears from Server1, but the other two are still there. We even tried to reboot the server, and changed workstation2 to not advertise the printers, but the two printers with URI /dev/null are still there. Server1 is a LTSP server and the local users have one of the defunct printers are default, so this is a bit of a problem, because all thier print jobs disappear into the void. Any idea how I can remove the two remote printers from the server's cups config? Thanks -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ A dinosaur is a salamander designed to Mil Spec ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Andre Truter wrote:
I have a client with a network of SUSE 11.1 machines. Printers are physically connected to a number of the workstations. CUPS is set up so that all machines can see all other printers. Normally it works good.
But then something went wrong on the one machine. Two of the remote printers on it is stuck in the configuration and I cannot remove them.
Basic scenario:
Server1 :
workstation1 : printer1, printer2
workstation2 : printer3, printer4
So, normally Server1 lists printers1-4 in it;s cups and it can print to them.
But now, we have on server1 the following:
printer1, printer2, working
pritner3: Listed, but URI=/dev/null printer4: Listed, but URI=/dev/null. pritner3@workstation2: working printer3@workstation2: working
If I shut down the CUPS on workstation2, the two printers with @workstation2 disappears from Server1, but the other two are still there. We even tried to reboot the server, and changed workstation2 to not advertise the printers, but the two printers with URI /dev/null are still there.
Server1 is a LTSP server and the local users have one of the defunct printers are default, so this is a bit of a problem, because all thier print jobs disappear into the void.
Any idea how I can remove the two remote printers from the server's cups config?
Thanks
You can manually edit /etc/cups/printers.conf and remove them. However they may return if all of your cups servers are advertising their printers, and a misconfiguration of one may propagate to the others. This method leads to a lot of unnecessary network traffic and complexity. I always try to avoid having a bunch of different cups servers popping up willy-nilly on the network as user add machines and power them off and on at will. A far better approach is to define all printers in the cups on a SINGLE server (one that will always be on), and attach all printers direct to the network if possible (via cat5 or wireless), and if not possible have the machine hosting the server not advertise the service, but simply make it available to the always on server (specific IP ALLOW statements in cups.config). This makes that workstation a backend for the cups on the Always on Server. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi John, 2009/4/29 John Andersen <jsamyth@gmail.com>:
You can manually edit /etc/cups/printers.conf and remove them.
They are not in that file. Only local printers are in there.
However they may return if all of your cups servers are advertising their printers, and a misconfiguration of one may propagate to the others.
This method leads to a lot of unnecessary network traffic and complexity. I always try to avoid having a bunch of different cups servers popping up willy-nilly on the network as user add machines and power them off and on at will.
This is not a problem in this case, as only a few specific machines act as print servers and they are never switched off. In fact, there are only 3 machines that act as print servers, all other machines just auto detect printers from them. We have it like that, so that you don't have to go and configure every workstation each time a printer is added or changed. The LTSP server act as many workstations, so it also needs to pick detect new printers. This has worked well up to now. I don't know why the LTSP server's config went haywire, the other workstations still detect all printers fine. I guess we can disable advertising on the other two cups servers and only let the LTSP server advertise and then set up all printers manually on the LTSP. But we still need to figure out how to get rid of the defunked remote printer config on the LTSP server. Unfortunately none of the printers are network capable, Parallel, USB and even two Serial printers. :-) Thanks -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ A dinosaur is a salamander designed to Mil Spec ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Apr 29 20:45 Andre Truter wrote (shortened):
2009/4/29 John Andersen <jsamyth@gmail.com>:
You can manually edit /etc/cups/printers.conf and remove them. They are not in that file. Only local printers are in there.
Have a look at /etc/cups/yes/remote.cache Whenever you change files in /etc/cups/ or in /var/spool/cups (or whatever file which might be accessed by the cupsd) stop the cupsd before you do the change, compare http://en.opensuse.org/SDB:CUPS_in_a_Nutshell "General information on the command-line tools" In your particular case I don't know a command-line tool to clear all the remote queue information so that manual file change is perhaps the only way. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Andre Truter
-
Johannes Meixner
-
John Andersen