Bad device-uri scheme

Paul paul.conklin at cerner.com
Wed Jun 15 06:45:06 PDT 2011


It appears your privs are too open.  CUPS will not use filters that have group write permissions I believe set them to -r-xr-xr-x
> I have also tried with postscript file to avoid the filter issue, if
> any. The permissions are also ok on the filter binaries, et cetera. I
> think it is just a bogus warning
> ""cups-missing-filter-warning,cups-insecure-filter-warning"
>
> Is it acceptable to add more error reporting into the cups code,
> please ? It is very frustrating it takes me days to print a txt file
> with cups. :( :(
>
> Best Regards,
> Laszlo Papp
>
> On Wed, Jun 15, 2011 at 1:21 PM, Laszlo Papp <lpapp at kde.org> wrote:
> > I have just tried to print manually with the same arguments and
> > environment variables like in case of the failure, but it works
> > out-of-the-box if I use the "lpd" directly like:
> > CUPS_CACHEDIR=3D/var/cache/cups CUPS_DATADIR=3D/usr/share/cups
> > CUPS_DOCROOT=3D/usr/share/doc/cups CUPS_FONTPATH=3D/usr/share/cups/fonts
> > CUPS_REQUESTROOT=3D/var/spool/cups CUPS_SERVERBIN=3D/usr/lib/cups
> > CUPS_SERVERROOT=3D/etc/cups CU
> > PS_STATEDIR=3D/var/run/cups HOME=3D/var/spool/cups/tmp
> > PATH=3D/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin
> > SERVER_ADMIN=3Droot at RM696 SOFTWARE=3DCUPS/1.4.6 TMPDIR=3D/var/spool/cups/=
> tmp
> > USER=3Droot CUPS_SERVER=3D/var/run/cups/cups.sock CUPS_ENCRYPT
> > ION=3DIfRequested CHARSET=3Dutf-8 LANG=3Den_US.UTF-8
> > PPD=3D/etc/cups/ppd/foobar.ppd RIP_MAX_CACHE=3D8m CONTENT_TYPE=3Dtext/pla=
> in
> > DEVICE_URI=3Dlpd://172.21.36.88/ps =A0PRINTER_INFO=3DfoobarPRINTER_LOCATI=
> ON=3D
> > PRINTER=3Dfoobar CUPS_FILETYPE=3Ddocument =A0/usr/lib/cup
> > s/backend/lpd 5 root hosts 1 "finishings=3D3 number-up=3D1
> > job-uuid=3Durn:uuid:ce0149da-e100-3da3-629f-73304d9e803f
> > job-originating-host-name=3Dlocalhost time-at-creation=3D1308123461
> > time-at-processing=3D1308123461" /etc/hosts
> >
> > Browsing the log further, it returns with a failure after the child
> > processing... Then again, cups is not verbose enough to notify about
> > the issue what went wrong. Please investigate when you have time!
> >
> > Also, is there any suggestion for this issue ?
> >
> > Best Regards,
> > Laszlo Papp
> >
> > On Wed, Jun 15, 2011 at 10:38 AM, Laszlo Papp <lpapp at kde.org> wrote:
> >> At any rate, here is my error log. It tells me about nothing what can be=
>  wrong.
> >>
> >> Best Regards,
> >> Laszlo Papp
> >>
> >> On Tue, Jun 14, 2011 at 7:57 PM, Laszlo Papp <lpapp at kde.org> wrote:
> >>> Hi,
> >>>
> >>>> You can try:
> >>>> DEVICE_URI=3Dlpd://host-or-ip/queue /usr/lib/cups/backend/lpd 123 user=
>  title 1
> >>>> "" filename
> >>>
> >>> That command worked just fine and I got the "/etc/hosts" file printed
> >>> out. Hence what is wrong with this command then: "lpadmin -p security
> >>> -v lpd://172.21.36.88/ps -E && lp -d security /etc/hosts"
> >>>
> >>> This is the output of the working command you sent me:
> >>> DEVICE_URI=3Dlpd://172.21.36.88/ps /usr/lib/cups/backend/lpd 123 user
> >>> title 1 "" /etc/hosts
> >>> STATE: +connecting-to-device
> >>> DEBUG: Looking up "172.21.36.88"...
> >>> DEBUG: Connecting to 172.21.36.88:515 for printer ps
> >>> INFO: Connecting to printer...
> >>> STATE: -connecting-to-device
> >>> INFO: Connected to printer...
> >>> DEBUG: Connected to 172.21.36.88:515 (IPv4) (local port 1023)...
> >>> DEBUG2: hrDeviceDesc=3D"Xerox WorkCentre Pro 238, v1 Multifunction Syst=
> em"
> >>> DEBUG2: prtGeneralCurrentLocalization=3D1
> >>> DEBUG2: prtLocalizationCharacterSet=3D106
> >>> DEBUG2: prtMarkerSuppliesColorantIndex.1.1 =3D 1
> >>> DEBUG2: prtMarkerSuppliesColorantIndex.1.2 =3D 1
> >>> DEBUG2: prtMarkerSuppliesColorantIndex.1.3 =3D 1
> >>> DEBUG2: prtMarkerSuppliesColorantIndex.1.4 =3D 1
> >>> DEBUG2: prtMarkerSuppliesType.1.1 =3D 3
> >>> DEBUG2: prtMarkerSuppliesType.1.2 =3D 20
> >>> DEBUG2: prtMarkerSuppliesType.1.3 =3D 15
> >>> DEBUG2: prtMarkerSuppliesType.1.4 =3D 4
> >>> DEBUG2: prtMarkerSuppliesDescription.1.1 =3D "Toner Bottle CRU"
> >>> DEBUG2: prtMarkerSuppliesDescription.1.2 =3D "Xerographic CRU Module"
> >>> DEBUG2: prtMarkerSuppliesDescription.1.3 =3D "Fuser CRU Module"
> >>> DEBUG2: prtMarkerSuppliesDescription.1.4 =3D "Waste Toner Bottle CRU"
> >>> DEBUG2: prtMarkerSuppliesMaxCapacity.1.1 =3D 11880
> >>> DEBUG2: prtMarkerSuppliesMaxCapacity.1.2 =3D 222000
> >>> DEBUG2: prtMarkerSuppliesMaxCapacity.1.3 =3D 422000
> >>> DEBUG2: prtMarkerSuppliesMaxCapacity.1.4 =3D -2
> >>> DEBUG2: prtMarkerSuppliesLevel.1.1 =3D 2970
> >>> DEBUG2: prtMarkerSuppliesLevel.1.2 =3D 131876
> >>> DEBUG2: prtMarkerSuppliesLevel.1.3 =3D 389203
> >>> DEBUG2: prtMarkerSuppliesLevel.1.4 =3D -3
> >>> DEBUG2: prtMarkerColorantValue.1.1 =3D "black"
> >>> ATTR: marker-colors=3D#000000,#000000,#000000,#000000
> >>> ATTR: marker-names=3D"Toner Bottle CRU","Xerographic CRU Module","Fuser
> >>> CRU Module","Waste Toner Bottle CRU"
> >>> ATTR: marker-types=3Dtoner,transferUnit,fuser,wasteToner
> >>> ATTR: marker-levels=3D25,59,92,-1
> >>> STATE: -media-low-report
> >>> STATE: +media-empty-warning
> >>> STATE: -toner-low-report
> >>> STATE: -toner-empty-warning
> >>> STATE: -door-open-report
> >>> STATE: -media-jam-warning
> >>> STATE: -input-tray-missing-warning
> >>> STATE: -output-tray-missing-warning
> >>> STATE: -marker-supply-missing-warning
> >>> STATE: -output-area-almost-full-report
> >>> STATE: -output-area-full-warning
> >>> DEBUG: lpd_command 02 ps
> >>> DEBUG: Sending command string (4 bytes)...
> >>> DEBUG: Reading command status...
> >>> DEBUG: lpd_command returning 0
> >>> DEBUG: Control file is:
> >>> HRM696
> >>> Puser
> >>> Jtitle
> >>> ldfA521RM696
> >>> UdfA521RM696
> >>> Ntitle
> >>> DEBUG: lpd_command 02 53 cfA521RM696
> >>> DEBUG: Sending command string (16 bytes)...
> >>> DEBUG: Reading command status...
> >>> DEBUG: lpd_command returning 0
> >>> INFO: Sending control file (53 bytes)
> >>> INFO: Control file sent successfully
> >>> DEBUG: lpd_command 03 26 dfA521RM696
> >>> DEBUG: Sending command string (16 bytes)...
> >>> DEBUG: Reading command status...
> >>> DEBUG: lpd_command returning 0
> >>> INFO: Sending data file (26 bytes)
> >>> INFO: Spooling LPR job, 0% complete...
> >>> INFO: Data file sent successfully
> >>> DEBUG2: prtMarkerSuppliesLevel.1.1 =3D 2970
> >>> DEBUG2: prtMarkerSuppliesLevel.1.2 =3D 131876
> >>> DEBUG2: prtMarkerSuppliesLevel.1.3 =3D 389203
> >>> DEBUG2: prtMarkerSuppliesLevel.1.4 =3D -3
> >>> ATTR: marker-levels=3D25,59,92,-1
> >>> PAGE: 1 1
> >>> helloworld:~#
> >>>
> >>> Best Regards,
> >>> Laszlo Papp
> >>>
> >>
> >
>





More information about the cups mailing list