Package: cups<br>Version: 1.3.11-1+b1<br>Severity: important<br><br>I have a Lexmark X1290 attached to my desktop machine that shares it<br>via CUPS to the laptops.<br><br>In my laptop the printer had always been automatically added by it's cups<br>
server, but a few days ago it stopped working. The printer is there but <br>if I send a job it never gets printed. I assume it stopped working after a cups<br>upgrade, I prefer testing for the desktop and the laptop but since cups is<br>
failing I upgraded the desktop's cups to the unstable version, however the<br>problem remains.<br><br>After that, in the laptop's browser I loaded <a href="http://localhost:631/printers">http://localhost:631/printers</a> <br>
and find out that the printer's URL is wrong. <br><br>The desktop's IP address is 10.1.52.2 so the printer's URL had always been <br>ipp://<a href="http://10.1.52.2:631/printers/Lexmark-X1290">10.1.52.2:631/printers/Lexmark-X1290</a> but now it has changed to<br>
ipp://sgautomatizacion.local:631/printers/Lexmark-X1290 which has an<br>unresolvable host name. The desktop's hostname has been <br><a href="http://sgautomatizacion.dynalias.com">sgautomatizacion.dynalias.com</a> for a long time now and it never affected<br>
cups.<br><br>In cupsd.conf I configured the server name to 10.1.52.2 a long time ago. <br>Here is the desktop's cupsd.conf:<br><br>jaime@sgautomatizacion:/$ cat /etc/cups/cupsd.conf<br>LogLevel warning<br>ServerName 10.1.52.2<br>
SystemGroup lpadmin<br># Allow remote access<br>Port 631<br>Listen /var/run/cups/cups.sock<br># Enable printer sharing and shared printers.<br>Browsing On<br>BrowseOrder allow,deny<br>BrowseAllow all<br>BrowseAddress @LOCAL<br>
<Location /><br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> # Allow shared printing and remote administration...<br> Order allow,deny<br> Allow all<br></Location><br><Location /admin><br>
Allow localhost<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> # Allow remote administration...<br> Order allow,deny<br> Allow all<br></Location><br><Location /admin/conf><br>
AuthType Default<br> Require user @SYSTEM<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> # Allow remote access to the configuration files...<br> Order allow,deny<br> Allow all<br>
</Location><br><Policy default><br> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job><br>
Require user @OWNER @SYSTEM<br> Order allow,deny<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> </Limit><br> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default><br>
AuthType Default<br> Require user @SYSTEM<br> Order allow,deny<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> </Limit><br> <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs><br>
AuthType Default<br> Require user @SYSTEM<br> Order allow,deny<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> </Limit><br> <Limit CUPS-Authenticate-Job><br> Require user @OWNER @SYSTEM<br>
Order allow,deny<br> Allow localhost<br> Allow <a href="http://10.1.52.0/24">10.1.52.0/24</a><br> </Limit><br> <Limit All><br> Order deny,allow<br> </Limit><br></Policy><br>jaime@sgautomatizacion:/$ <br>
<br>So I don't get where is this "sgautomatizacion.local" hostname is comming from.<br>I tried by changing the desktop's hostname and then running:<br><br>sgautomatizacion:/# /etc/init.d/cups stop<br> * Stopping Common Unix Printing System: cupsd [ ok ] <br>
sgautomatizacion:/# /etc/init.d/hostname.sh stop<br>sgautomatizacion:/# /etc/init.d/hostname.sh start<br>sgautomatizacion:/# /etc/init.d/cups start<br> * Starting Common Unix Printing System: cupsd [ ok ] <br>
sgautomatizacion:/# <br><br>With no luck, cups keeps reporting the printer URL with the same hostname:<br>"sgautomatizacion.local". <br><br>I have been reading the cups documentation and can't find how to solve this. I<br>
even found out how to see the CUPS Browse Protocol messages and this is <br>what I got in the laptop:<br><br>inspironjaime2:/home/jaime# /etc/init.d/cups stop<br>Stopping Common Unix Printing System: cupsd.<br>inspironjaime2:/home/jaime# nc -l -u -p 631 <br>
2900e 3 ipp://sgautomatizacion.local:631/printers/Lexmark-X1290 "Oficina Jaime" "Lexmark-X1290" "Lexmark Z600 v1.0-1" job-sheets=none,none lease-duration=300<br>^C<br>inspironjaime2:/home/jaime#<br>
<br>The only solution I have is to add the printer manually with a different name<br>but I want the automatic detection to work again.<br><br>I hope this doesn't break printing in the Mac OS X and Windows laptop's but I'll find that out after the weekend if I get complains.<br>
<br>-- System Information:<br>Debian Release: squeeze/sid<br> APT prefers testing<br> APT policy: (500, 'testing'), (102, 'unstable'), (101, 'experimental')<br>Architecture: i386 (i686)<br><br>Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/bash<br><br>Versions of packages cups depends on:<br>ii adduser 3.110 add and remove users and groups<br>
ii bc 1.06.94-3.1 The GNU bc arbitrary precision cal<br>ii cups-client 1.3.11-1 Common UNIX Printing System(tm) - <br>ii cups-common 1.3.11-1 Common UNIX Printing System(tm) - <br>
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy<br>ii ghostscript 8.64~dfsg-13 The GPL Ghostscript PostScript/PDF<br>ii libavahi-compat-libdns 0.6.25-1 Avahi Apple Bonjour compatibility <br>
ii libc6 2.9-23 GNU C Library: Shared libraries<br>ii libcups2 1.3.11-1 Common UNIX Printing System(tm) - <br>ii libcupsimage2 1.3.11-1 Common UNIX Printing System(tm) - <br>
ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst<br>ii libgcc1 1:4.4.1-1 GCC support library<br>ii libgnutls26 2.8.3-1 the GNU TLS library - runtime libr<br>
ii libgssapi-krb5-2 1.7dfsg~beta3-1 MIT Kerberos runtime libraries - k<br>ii libijs-0.35 0.35-7 IJS raster image transport protoco<br>ii libkrb5-3 1.7dfsg~beta3-1 MIT Kerberos runtime libraries<br>
ii libldap-2.4-2 2.4.17-1 OpenLDAP libraries<br>ii libpam0g 1.0.1-10 Pluggable Authentication Modules l<br>ii libpaper1 1.1.23+nmu1 library for handling paper charact<br>
ii libpoppler4 0.10.6-1 PDF rendering library<br>ii libslp1 1.2.1-7.6 OpenSLP libraries<br>ii libstdc++6 4.4.1-1 The GNU Standard C++ Library v3<br>ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip<br>
ii perl-modules 5.10.0-24 Core Perl modules<br>ii procps 1:3.2.8-1 /proc file system utilities<br>ii ssl-cert 1.0.23 simple debconf wrapper for OpenSSL<br>
ii ttf-freefont 20080323-3 Freefont Serif, Sans and Mono True<br>ii xpdf-utils [poppler-ut 3.02-1.4+lenny1 Portable Document Format (PDF) sui<br>ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime<br>
<br>Versions of packages cups recommends:<br>ii avahi-utils 0.6.25-1 Avahi browsing, publishing and dis<br>pn cups-driver-gutenprint <none> (no description available)<br>ii foomatic-filters 4.0-20090509-1 OpenPrinting printer support - fil<br>
ii ghostscript-cups 8.64~dfsg-13 The GPL Ghostscript PostScript/PDF<br>pn smbclient <none> (no description available)<br><br>Versions of packages cups suggests:<br>ii cups-bsd 1.3.11-1 Common UNIX Printing System(tm) - <br>
ii cups-pdf 2.5.0-4 PDF printer for CUPS<br>ii foomatic-db 20090616-1 OpenPrinting printer support - dat<br>ii foomatic-db-engine 4.0-20090509-1 OpenPrinting printer support - pro<br>
ii hplip 3.9.4b-1 HP Linux Printing and Imaging Syst<br>pn xpdf-korean | xpdf-japane <none> (no description available)<br><br>-- debconf information:<br>* cupsys/raw-print: true<br>
* cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd<br><br clear="all">Jaime Alberto Silva<br>Socio / Representante Legal<br>SG Automatización Ltda.<br>Pereira \ Risaralda \ Colombia<br>