Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378217 - net-print/cups-VERSION? - E [08/Aug/2011:09:47:27 +0200] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/CLP-315W) [...]
Summary: net-print/cups-VERSION? - E [08/Aug/2011:09:47:27 +0200] Returning IPP client...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 09:35 UTC by Rudolf Polzer
Modified: 2011-08-11 17:08 UTC (History)
0 users

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 Rudolf Polzer 2011-08-08 09:35:00 UTC
After an 'emerge -qvDNua world' printing is not working any more. This can be seen in the /var/log/cups/error_log after a print command from open office:

E [08/Aug/2011:09:47:27 +0200] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/CLP-315W) from localhost

I aready tried re-emerge of cups and ghostscript-gpl with no effect.

A command line print command gives the error message
lpr: Format ?text/plain? nicht unterstützt! (format not supported)


Reproducible: Always




output of emerge --info:

Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.2
Timestamp of tree: Tue, 19 Jul 2011 07:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.5-r3, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 arts berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread embedded emboss encode exif extras fam faxonly firefox flac fontconfig fortran ftp gd gdbm gdu gif gimp gnutls gphoto2 gpm gtk html iconv icq idn imap ipv6 java javascript jbig jikes jpeg kde kipi kmid lame lcms ldap libnotify loop-aes mad maildir mikmod mime mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl phonon php plasma png policykit ppds pppd private-headers pulseaudio python qt3 qt3support qt4 raw rdesktop readline samba scanner sdl semantic-desktop session sockets spell sql sqlite sse sse2 ssl startup-notification svg symlink sysfs tcpd tiff truetype tse3 udev unicode usb utempter vcd vnc vorbis webkit wmf x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xulrunners xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-08 21:18:48 UTC
Please post the output of `emerge -vpq net-print/cups' too.
Comment 2 Rudolf Polzer 2011-08-08 21:26:31 UTC
output of 'emerge -vpq net-print/cups':

[ebuild   R   ] net-print/cups-1.4.6-r2  USE="X acl dbus gnutls java jpeg ldap pam perl php png python samba ssl threads tiff -debug -kerberos -slp -static-libs -xinetd" LINGUAS="de -da -es -eu -fi -fr -id -it -ja -ko -nl -no -pl -pt -pt_BR -ru -sv -zh -zh_TW"
Comment 3 Timo Gurr (RETIRED) gentoo-dev 2011-08-11 15:46:01 UTC
(In reply to comment #0)
> After an 'emerge -qvDNua world' printing is not working any more.

More info! From which previously working version did you upgrade? Which printer/driver do you use? How is the printer connected to your system?

> E [08/Aug/2011:09:47:27 +0200] Returning IPP
> client-error-document-format-not-supported for Send-Document
> (ipp://localhost:631/printers/CLP-315W) from localhost
> 
> A command line print command gives the error message
> lpr: Format ?text/plain? nicht unterstützt! (format not supported)

Remove possible old leftovers like /etc/cups/mime.{convs,types} since the sane defaults are (now) located in /usr/share/cups/mime/.

Also follow http://www.gentoo.org/doc/en/utf-8.xml to migrate your system to UTF-8 which is mandatory for CUPS to work. See bug 244328 & 231111, and upstream bug http://www.cups.org/str.php?L2593 for details.
Comment 4 Rudolf Polzer 2011-08-11 16:19:44 UTC
I don't know how to find out what the previously working version of cups was.

The printer is a Samsung CPL315W, connected to the network.
Driver according to cups: Samsung CLP-310 Series (SPL-C) (color, 2-sided printing)
This is the printer I actually want to use, but the other two printers I can select (SCX3205W and PDF) also don't work any more as they did a month ago. The error message is:

E [11/Aug/2011:18:06:24 +0200] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/SCX3205W) from localhost
E [11/Aug/2011:18:06:33 +0200] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/PDF) from localhost

In /etc/cups, there are no files or directories named mime*, so there is nothing to remove.

I would like to keep the LANG="de_DE@euro" setting because of compatibility reasons with other computers running in the same network. Because of this, I switched fron UTF8 to non-UTF8 some years ago. This had no influence on printing until last month.
Comment 5 Timo Gurr (RETIRED) gentoo-dev 2011-08-11 16:30:31 UTC
(In reply to comment #4)
> I don't know how to find out what the previously working version of cups was.

Have a look at /var/log/emerge.log.

> This is the printer I actually want to use, but the other two printers I can
> select (SCX3205W and PDF) also don't work any more as they did a month ago.

Try removing and readding your printer and be sure you did etc-update after installing the new cups version. There could be many problems when upgrading from 1.3 to 1.4 and starting with a fresh config often helps.

> I would like to keep the LANG="de_DE@euro" setting because of compatibility
> reasons with other computers running in the same network. Because of this, I
> switched fron UTF8 to non-UTF8 some years ago. This had no influence on
> printing until last month.

Please read the upstream bug I pointed out, there's nothing we can do about it. Either you convert to UTF-8 or you have to use a CUPS version <1.3.4 and deal with on your own in a local overlay.

Please feel free to reopen the bug if it still fails after converting your system(s) to UTF-8.
Comment 6 Rudolf Polzer 2011-08-11 17:08:01 UTC
Removing and readding the printer did it, so I can leave the encoding as it is.