Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 18:09:23 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: print/cups: since update to 1.7.1: error : Send-Document client-error-document-format-not-supported
Message-ID:  <20140411180923.5190817c.ohartman@zedat.fu-berlin.de>
In-Reply-To: <53480599.40002@passap.ru>
References:  <20140408154210.1aec26a8.ohartman@zedat.fu-berlin.de> <53444B11.8090302@passap.ru> <20140408222552.67cd5453.ohartman@zedat.fu-berlin.de> <534476FE.4020109@passap.ru> <20140411130833.0d4cd2f2.ohartman@zedat.fu-berlin.de> <53480599.40002@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/N73pXi+6iTwkxU43D5+sxRd
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, 11 Apr 2014 19:09:13 +0400
Boris Samorodov <bsam@passap.ru> wrote:

> 11.04.2014 15:08, O. Hartmann =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > On Wed, 09 Apr 2014 02:23:58 +0400
> > Boris Samorodov <bsam@passap.ru> wrote:
> >=20
> >> 09.04.2014 00:25, O. Hartmann =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >>> On Tue, 08 Apr 2014 23:16:33 +0400
> >>> Boris Samorodov <bsam@passap.ru> wrote:
> >>>
> >>>> 08.04.2014 17:42, O. Hartmann =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >>>>> Since the update of print/cups from 1.5.X to 1.7.1
> >>>>
> >>>> How did you do it?
> >>>
> >>> As it is reported in /usr/ports/UPDATING. I delete first cups-image, =
then did the
> >>> update which reeled in all the new stuff automatically.
> >>
> >> OK, lets start from some obvious things.
> >> Did you restart cupsd while experimenting?
> >=20
> > No.
>=20
> Given you have cupsd running at this mere system, it may be a good
> idea to restart it after printer/cups-base update(s).

Well, I mean I restarted cupsd after each installation/recompilation, of co=
urse. But I
didn't corrupt the process of building by interrupting cupsd anyway - sorry=
, a slight
misunderstanding. I made it a habit to restart the daemon after changes.
=20
>=20
> >> Give an output for:
> >> -----
> >> % type lpr
> > lpr is /usr/local/bin/lpr
> > pkg which /usr/local/bin/lpr
> > /usr/local/bin/lpr was installed by package cups-base-1.7.1
> >=20
> >> % ls -l /usr/local/etc/cups
> >=20
> > -r--r--r--  1 root  wheel  2807 11 Apr 11:58 cups-browsed.conf
> > -rw-r-----  1 root  cups   3197  8 Apr 17:15 cups-files.conf
> > -rw-r-----  1 root  cups   3197  8 Apr 17:15 cups-files.conf.bak
> > -rw-r-----  1 root  wheel  3137 11 Apr 12:02 cups-files.conf.sample
> > -r--r--r--  1 root  wheel  9521 11 Apr 11:50 cups-pdf.conf
> > -r--r--r--  1 root  wheel  9521 11 Apr 11:50 cups-pdf.conf.sample
> > -rw-r-----  1 root  cups   3442  8 Apr 17:22 cupsd.conf
> > -rw-r-----  1 root  cups   5098  8 Apr 17:20 cupsd.conf.O
> > -rw-r-----  1 root  cups   3442  8 Apr 17:22 cupsd.conf.bak
> > -rw-r-----  1 root  wheel  4492 11 Apr 12:02 cupsd.conf.default
> > -r--r--r--  1 root  wheel  4492 11 Apr 12:02 cupsd.conf.sample
> > drwxr-xr-x  2 root  wheel   512 11 Apr 12:02 interfaces
> > -r--r--r--  1 root  wheel  1875  8 Apr 19:17 mime.convs
> > -r--r--r--  1 root  wheel  1874 11 Apr 12:02 mime.convs.sample
> > -r--r--r--  1 root  wheel  6456  8 Apr 19:18 mime.types
> > -r--r--r--  1 root  wheel  6455 11 Apr 12:02 mime.types.sample
>=20
> Seems that you commented out a line at mime.* files.

Yes, line
#application/octet-stream       application/vnd.cups-raw        0       -
in mime.convs=20

and line
# application/octet-stream
in mime.types as recommended in some googled forae.

>=20
> > drwxr-xr-x  2 root  cups    512 11 Apr 12:02 ppd
> > -rw-------  1 root  cups   4134  8 Apr 17:33 printers.conf
> > -rw-------  1 root  cups   4134  8 Apr 14:58 printers.conf.O
> > -rw-------  1 root  cups   4134  8 Apr 17:22 printers.conf.bak
> > -rw-r--r--  1 root  cups    946 11 Apr 11:53 pstoraster.convs
> > -r--r--r--  1 root  wheel   778 11 Apr 12:04 pstotiff.convs
> > -r--r--r--  1 root  wheel  2084 11 Apr 12:04 pstotiff.types
> > -r--r--r--  1 root  wheel   284 11 Apr 11:49 snmp.conf
> > -r--r--r--  1 root  wheel   284 11 Apr 12:02 snmp.conf.sample
> > drwx------  2 root  cups    512 11 Apr 12:02 ssl
> >=20
> >=20
> >> % make -C /usr/ports/print/cups-client pretty-print-config
> > -GNUTLS (whoops ... this is not the default, isn't it?)
>=20
> As for me, it is the default. But I don't think the problem is here.

When doing a rmconfig in that specific port's folder, it is not set anymore=
 with the most
recent ports tree defaults (for me).

>=20
> > =3D=3D> corrected that with a new recompilation with rmconfig preceded.
> >=20
> >> % grep CUPS /etc/make.conf
> > NULL (menas: no output)
> >=20
> >> % pkg info -x cups hp foo gut
> >=20
> > cups-base-1.7.1
> > cups-client-1.7.1
> > cups-filters-1.0.52
> > cups-image-1.7.1
> > cups-pdf-2.6.1_1
> > cups-pstoraster-8.15.4_7
> > cups-samba-6.0_7
> > gutenprint-cups-5.2.8_1
> > libgnomecups-0.2.3_5,1
> > linux-f10-cups-libs-1.3.11_1
> > foomatic-db-hpijs-1.4
> > hplip-3.14.1
> > kdevelop-php-1.6.0_1
> > kdevelop-php-docs-1.6.0_1
> > php5-5.4.27
> > swhplugins-0.4.15_4
> > foomatic-db-20140331
> > foomatic-db-engine-4.0.11,2
> > foomatic-db-hpijs-1.4
> > foomatic-filters-4.0.17
> > gimp-gutenprint-5.2.8
> > gutenprint-base-5.2.8
> > gutenprint-cups-5.2.8_1
> > gutenprint-ijs-5.2.8
> >> -----
>=20
> OK, you have quite a few cups ports.
>=20
> >> Stop cupsd, move temporary /var/log/cups/*_log to another location.
> >> Start cupsd and look for suspicious messages at /var/log/cups/* files.
> >=20
> > Nothing suspicious so far. With print/cups-filters installed, the whole=
 cups printing
> > system is corrupted and doesn't print a single sheet of paper (PDF/PS) =
normal es
> > expected.
> >=20
> > Prior to this task, I recompiled, as you suggested, first all cups port=
s and
> > afterwards hplip/foomatic. I also installed print/cups-filters before r=
ecompiling
> > hplip/foomatic.
>=20
> Hm. As for me, I can't build hplip with new cups* ports:

I have no problem building hplip with the new cups 1.7.1
In my case, I set FORCE_PKG_REGISTER=3Dyes in /etc/make.conf by default.

> -----
> =3D=3D=3D>  Installing for cups-base-1.7.1
> =3D=3D=3D>  Checking if print/cups-base already installed
> =3D=3D=3D>   cups-base-1.7.1 is already installed
>       You may wish to ``make deinstall'' and install this port again
>       by ``make reinstall'' to upgrade it properly.
>       If you really wish to overwrite the old port of print/cups-base
>       without deleting it first, set the variable "FORCE_PKG_REGISTER"
>       in your environment or the "make install" command line.
> *** Error code 1
>=20
> Stop.
> make[3]: stopped in /usr/ports/print/cups-base
> *** Error code 1
>=20
> Stop.
> make[2]: stopped in /usr/ports/print/cups-base
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/ports/print/hplip
> *** Error code 1
> -----
>=20
> This is because cups-base is no more installing libcupsdriver.so. And
> hplip should be patched first to be buildable. Seems that you have this
> library at your system. So I suspect there is a local inconsistency at
> your system.
>=20
> Can you try to install print/hplip at a vanilla system (say, in a jail)
> to try it out? If you use sysutils/ezjail then it won't take much time
> and resources.
>=20
> PS. A fix to print/hplip is attached.

I have no experiences with jails and barely time to setup a jail. I will se=
e what I can
do, but I'm on a tight schedule, even due to the printing issues.



--Sig_/N73pXi+6iTwkxU43D5+sxRd
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQEcBAEBAgAGBQJTSBO9AAoJEOgBcD7A/5N89VEH/1gjpLOjmb/audmibQuk9E3m
heG4WiOc2vlnHyE6YKLb2kAImEvABRAODhm4kx1qIKYL/y8tJ1iovKNE0881UtRf
goH/JDBOJOzWR8083V9GpzAp8UC/PJkpSROGlqhucGyMe2PreVcBWMG2Y0z4pu4+
caPbw/Qeo6NZR0YUzn7wp54VjKmy3/KPfKNkf3oKtCbd6dZeQ2UHOYi8HFgr3iaq
lmL2PUY8SUOUMnPcOEail2OvFJRSbF5dqE7+qpwEtw6iXXboa2KqvReNSWx7RXXp
7/FSmYAXvu96abgMBxO0Kgft+XfFfeUuXwwTu96oPqjNFps01pYXUrntzE/XY8o=
=Clsr
-----END PGP SIGNATURE-----

--Sig_/N73pXi+6iTwkxU43D5+sxRd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140411180923.5190817c.ohartman>