Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428794 - net-print/cups-1.6.1: can no longer print to remote cups queues
Summary: net-print/cups-1.6.1: can no longer print to remote cups queues
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 12:16 UTC by Toralf Förster
Modified: 2012-08-30 21:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2012-07-31 12:16:11 UTC
error msg is : "[Job 153] The printer is not responding."

nothing else in error logs, net-print/cups-1.5.3 worked fine.


Reproducible: Always




n22_uml ~ # emerge --info cups
Portage 2.1.11.9 (default/linux/x86/10.0, gcc-4.6.3, glibc-2.15-r2, 3.5.0 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.0-i686-UML-with-gentoo-2.1
Timestamp of tree: Tue, 31 Jul 2012 10:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo toralf
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --nospinner --tree --deep --quiet-build"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fam fastbuild gdbm gmp gpm iconv ipv6 logrotate mmx modules mudflap mysql mysqli ncurses nls nptl openmp pam pcre pppd readline session sse sse2 sse3 ssl ssse3 tcpd threads unicode userlocales webmail x86 xml zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi compat dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-print/cups-1.6.1 was built with the following:
USE="acl filters pam ssl test threads -X -avahi -dbus -debug -gnutls -java -kerberos -python (-selinux) -static-libs -systemd -usb -xinetd -zeroconf" LINGUAS="-ca -es -ja"
Comment 1 Jouni Rinne 2012-08-03 17:13:46 UTC
Not quite sure whether I've got a same problem or not, but after upgrade to 1.6.x cups web interface didn't even *see* my networked printers. Downgrade to 1.5.3 fixed things immediately. I'm going to stick to 1.5.x for now, I actually NEED a working printing system.

Cups-1.6.x was build with USE="X dbus filters gnutls pam python ssl threads usb -acl -avahi -debug -java -kerberos -static-libs -systemd -xinetd -zeroconf"
Comment 2 Bruce Hill 2012-08-03 20:29:35 UTC
Have had mostly non-printing issues with CUPS this past week. Most recently...

This laptop was upgraded from:
net-print/cups-1.6.1; net-print/cups-filters-1.0.19-r1; app-text/poppler-0.20.2-r1
to
net-print/cups-1.6.1; net-print/cups-filters-1.0.20; app-text/poppler-0.20.2-r1
and does not print properly. Also app-text/poppler-0.20.2-r1 and net-print/cups-1.6.1 were rebuilt.

It printed a file from Inkscape fine with cups-filters-1.0.19-r1, but after the upgrade and rebooting laptop, restarting CUPS and the printer, it won't print the same file from Inkscape. It also won't Print Test Page from the Printers > Maintenance of the CUPS interface. Here's a screenshot of those attempts:
http://ompldr.org/vZXo1bQ

mingdao@laptop ~ $ less /var/log/cups/error_log
<snip all but Aug 3>
W [03/Aug/2012:14:19:04 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [03/Aug/2012:14:19:04 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [03/Aug/2012:14:19:04 -0500] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
E [03/Aug/2012:14:19:04 -0500] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.
W [03/Aug/2012:15:01:14 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [03/Aug/2012:15:01:14 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [03/Aug/2012:15:01:14 -0500] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
E [03/Aug/2012:15:01:14 -0500] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.

mingdao@laptop ~ $ less /var/log/cups/access_log
<snip all but Aug 3>
localhost - - [03/Aug/2012:14:08:54 -0500] "POST /printers/HP_Officejet_Pro_8500_A910 HTTP/1.1" 200 1119449 Print-Job successful-ok
localhost - - [03/Aug/2012:14:12:21 -0500] "POST /admin/ HTTP/1.1" 200 108 - -
localhost - - [03/Aug/2012:14:12:21 -0500] "POST /admin/ HTTP/1.1" 200 10482 - -
localhost - - [03/Aug/2012:14:12:23 -0500] "POST /admin HTTP/1.1" 200 374 - -
localhost - - [03/Aug/2012:14:12:23 -0500] "POST /admin/ HTTP/1.1" 401 31864 CUPS-Add-Modify-Printer successful-ok
localhost - - [03/Aug/2012:14:12:23 -0500] "POST /admin HTTP/1.1" 401 374 - -
localhost - - [03/Aug/2012:14:12:23 -0500] "POST /admin HTTP/1.1" 200 374 - -
localhost - root [03/Aug/2012:14:12:23 -0500] "POST /admin HTTP/1.1" 200 374 - -
localhost - - [03/Aug/2012:14:12:23 -0500] "POST /admin/ HTTP/1.1" 401 31864 CUPS-Add-Modify-Printer successful-ok
localhost - root [03/Aug/2012:14:12:23 -0500] "POST /admin/ HTTP/1.1" 200 31864 CUPS-Add-Modify-Printer successful-ok
localhost - root [03/Aug/2012:14:12:23 -0500] "POST /admin HTTP/1.1" 200 2410 - -
localhost - - [03/Aug/2012:14:12:27 -0500] "POST /printers/HP_Officejet_Pro_8500_A910 HTTP/1.1" 200 431 Print-Job successful-ok
localhost - - [03/Aug/2012:14:51:00 -0500] "POST /printers/HP_Officejet_Pro_8500_A910 HTTP/1.1" 200 1119449 Print-Job successful-ok
localhost - - [03/Aug/2012:14:59:39 -0500] "POST /jobs HTTP/1.1" 401 141 Cancel-Job successful-ok
localhost - - [03/Aug/2012:14:59:40 -0500] "POST /jobs HTTP/1.1" 200 140 Cancel-Job successful-ok
localhost - - [03/Aug/2012:15:09:09 -0500] "GET /admin/log/error_log HTTP/1.1" 200 159288 - -
localhost - - [03/Aug/2012:15:09:34 -0500] "GET /admin/log/page_log HTTP/1.1" 200 74662 - -
localhost - - [03/Aug/2012:15:12:27 -0500] "POST /printers/HP_Officejet_Pro_8500_A910 HTTP/1.1" 200 1119449 Print-Job successful-ok
localhost - - [03/Aug/2012:15:16:27 -0500] "POST /printers/HP_Officejet_Pro_8500_A910 HTTP/1.1" 200 402 Print-Job successful-ok

mingdao@laptop ~ $ less /var/log/cups/page_log
<snip all but Aug 3>
HP_Officejet_Pro_8500_A910 mingdao 135 [03/Aug/2012:14:09:04 -0500] 1 1 - localhost Print Fall-2012-schedule.svg - -
HP_Officejet_Pro_8500_A910 mingdao 135 [03/Aug/2012:14:09:34 -0500] 2 1 - localhost Print Fall-2012-schedule.svg - -
HP_Officejet_Pro_8500_A910 mingdao 135 [03/Aug/2012:14:09:34 -0500] 3 1 - localhost Print Fall-2012-schedule.svg - -
HP_Officejet_Pro_8500_A910 mingdao 135 [03/Aug/2012:14:10:00 -0500] total 3 - localhost Print Fall-2012-schedule.svg - -
HP_Officejet_Pro_8500_A910 root 136 [03/Aug/2012:14:12:27 -0500] 1 1 - localhost Test Page - -
HP_Officejet_Pro_8500_A910 root 136 [03/Aug/2012:14:12:38 -0500] total 1 - localhost Test Page - -
Comment 3 Robin Bankhead 2012-08-07 12:14:22 UTC
This sounds like what I've been suffering too. Upgraded to cups-1.6.0 then 1.6.1 on Gentoo server (hosting a shared HP PSC 750) and Gentoo and Arch clients. Previously I've not needed to really do anything on the clients, as they saw the shared cupsd automatically.  I didn't even need the hplip drivers.

No longer. The clients refuse to see the server, even after enabling USE=avahi (which I'd really rather avoid anyway).  They can only print to it by installing hplip and defining a new printer using the uri scheme http://lanhost/printers/printername "locally" on each client. This in turn causes large jobs to fail because the remote queue times out while waiting for the job to be compiled and sent by the client. (This in turn causes my SO to threaten me with kitchen implements.)

I suspect that the avahi/Bonjour/whatever support they've added has somehow clobbered the existing discovery method.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2012-08-24 22:09:58 UTC
OK everyone, please tell me 
* what mechanism you used to find the printers
* does cups-1.5 still find the printers if you set Browsing Off in cupsd.conf
* how does the printer URL look like?


Browsing is completely gone in 1.6, unfortunately. ("Replaced by zeroconf/avahi")
Comment 5 Toralf Förster gentoo-dev 2012-08-25 14:01:30 UTC
(In reply to comment #4)
> * what mechanism you used to find the printers
I simply define them directly - no browsing or something in that manner.
FWIW I do this in a user mode linux image.
Comment 6 Robin Bankhead 2012-08-27 11:35:55 UTC
(In reply to comment #4)
> OK everyone, please tell me 
> * what mechanism you used to find the printers
I believe (from those listed in the 1.5.* admin interface) it was simply "CUPS" method (does this make sense?)

> * does cups-1.5 still find the printers if you set Browsing Off in cupsd.conf
Didn't try, would have assumed it definitely wouldn't if I did that (or at least that I couldn't reach the said admin interface from client machines, which is needed when this much is going wrong!)

> * how does the printer URL look like?
Local: hp:/usb/PSC_750?serial=MY2BID11T2WB
Network: http://host:631/printers/PSC_750 (only one that worked under 1.6.*)
> 
> 
> Browsing is completely gone in 1.6, unfortunately. ("Replaced by
> zeroconf/avahi")
Thanks for bringing that to light, where was this said? The Changelog only mentioned adding avahi, not clobbering other discovery methods.

At this point I give up on auto-discovery; have moved to naming the printer host in /etc/cups/client.conf which seems more reliable and means clients don't need their own cupsd running (or drivers installed).
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-08-30 21:54:54 UTC
OK... I've added a big fat warning about Browsing to the ebuild (but it'll only show up on upgrade from <1.6 to avoid elog spam). Other than that, I fear we cannot do much here. The decision to drop browsing was a political one from cups upstream (= Apple).

I'm resolving this as "upstream", if you disagree, please leave a message and I'll reopen.