Silas Silva | 19 May 21:40 2011
Picon

Unsupported format 'application/vnd.cups-banner'!

Hi all.

I just installed cups 1.4.6 from pkgsrc (www.pkgsrc.org) in my NetBSD 5.1 system.

Printers are found and installed fine, but when I try to print a test from the web interface, this error shows up:

Unsupported format 'application/vnd.cups-banner'!

After enabling debugging in cupsd.conf, I could get the following information:

(...)
D [19/May/2011:16:29:38 -0300] Print-Job ipp://localhost:631/printers/hp_LaserJet_4250
D [19/May/2011:16:29:38 -0300] [Job ???] Auto-typing file...
I [19/May/2011:16:29:38 -0300] [Job ???] Request file type is application/vnd.cups-banner.
D [19/May/2011:16:29:38 -0300] Print-Job client-error-document-format-not-supported:
Unsupported format 'application/vnd.cups-banner'!
E [19/May/2011:16:29:38 -0300] Returning IPP client-error-document-format-not-supported for
Print-Job (ipp://localhost:631/printers/hp_LaserJet_4250) from localhost
D [19/May/2011:16:29:38 -0300] PID 12564 (/usr/pkg/libexec/cups/cgi-bin/printers.cgi) exited with
no errors.
(...)

Both mime.types and mime.convs have an entry for application/vnd.cups-banner:

$ grep banner *
mime.convs:application/vnd.cups-banner  application/postscript          33      bannertops
mime.types:application/vnd.cups-banner  string(0,'#CUPS-BANNER')

And bannertops exist.

(Continue reading)

Michael Sweet | 19 May 22:17 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

Are you using a raw queue, or ???

On May 19, 2011, at 12:40 PM, Silas Silva wrote:

> Hi all.
> 
> I just installed cups 1.4.6 from pkgsrc (www.pkgsrc.org) in my NetBSD 5.1 system.
> 
> Printers are found and installed fine, but when I try to print a test from the web interface, this error
shows up:
> 
> Unsupported format 'application/vnd.cups-banner'!
> 
> After enabling debugging in cupsd.conf, I could get the following information:
> 
> (...)
> D [19/May/2011:16:29:38 -0300] Print-Job ipp://localhost:631/printers/hp_LaserJet_4250
> D [19/May/2011:16:29:38 -0300] [Job ???] Auto-typing file...
> I [19/May/2011:16:29:38 -0300] [Job ???] Request file type is application/vnd.cups-banner.
> D [19/May/2011:16:29:38 -0300] Print-Job client-error-document-format-not-supported:
Unsupported format 'application/vnd.cups-banner'!
> E [19/May/2011:16:29:38 -0300] Returning IPP client-error-document-format-not-supported for
Print-Job (ipp://localhost:631/printers/hp_LaserJet_4250) from localhost
> D [19/May/2011:16:29:38 -0300] PID 12564 (/usr/pkg/libexec/cups/cgi-bin/printers.cgi) exited
with no errors.
> (...)
> 
> Both mime.types and mime.convs have an entry for application/vnd.cups-banner:
> 
> $ grep banner *
(Continue reading)

Silas Silva | 19 May 22:28 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

Sorry, I'm not used to most of the CUPS functionality.

On the web interface, I just clicked the network printer (among many on this organization) that I wanted to
work with. I could also change just Internet Printing Protocol or other option not directly associated to
a printer.  Is that what you mean?

> Are you using a raw queue, or ???
>
> On May 19, 2011, at 12:40 PM, Silas Silva wrote:
>
> > Hi all.
> >
> > I just installed cups 1.4.6 from pkgsrc (www.pkgsrc.org) in my NetBSD 5.1 system.
> >
> > Printers are found and installed fine, but when I try to print a test from the web interface, this error
shows up:
> >
> > Unsupported format 'application/vnd.cups-banner'!
> >
> > After enabling debugging in cupsd.conf, I could get the following information:
> >
> > (...)
> > D [19/May/2011:16:29:38 -0300] Print-Job ipp://localhost:631/printers/hp_LaserJet_4250
> > D [19/May/2011:16:29:38 -0300] [Job ???] Auto-typing file...
> > I [19/May/2011:16:29:38 -0300] [Job ???] Request file type is application/vnd.cups-banner.
> > D [19/May/2011:16:29:38 -0300] Print-Job client-error-document-format-not-supported:
Unsupported format 'application/vnd.cups-banner'!
> > E [19/May/2011:16:29:38 -0300] Returning IPP client-error-document-format-not-supported for
Print-Job (ipp://localhost:631/printers/hp_LaserJet_4250) from localhost
> > D [19/May/2011:16:29:38 -0300] PID 12564 (/usr/pkg/libexec/cups/cgi-bin/printers.cgi) exited
(Continue reading)

Michael Sweet | 19 May 22:55 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

Did you select "Raw Device" for the make and model, or a particular driver?

On May 19, 2011, at 1:28 PM, Silas Silva wrote:

> Sorry, I'm not used to most of the CUPS functionality.
> 
> On the web interface, I just clicked the network printer (among many on this organization) that I wanted to
work with. I could also change just Internet Printing Protocol or other option not directly associated to
a printer.  Is that what you mean?
> 
>> Are you using a raw queue, or ???
>> 
>> On May 19, 2011, at 12:40 PM, Silas Silva wrote:
>> 
>>> Hi all.
>>> 
>>> I just installed cups 1.4.6 from pkgsrc (www.pkgsrc.org) in my NetBSD 5.1 system.
>>> 
>>> Printers are found and installed fine, but when I try to print a test from the web interface, this error
shows up:
>>> 
>>> Unsupported format 'application/vnd.cups-banner'!
>>> 
>>> After enabling debugging in cupsd.conf, I could get the following information:
>>> 
>>> (...)
>>> D [19/May/2011:16:29:38 -0300] Print-Job ipp://localhost:631/printers/hp_LaserJet_4250
>>> D [19/May/2011:16:29:38 -0300] [Job ???] Auto-typing file...
>>> I [19/May/2011:16:29:38 -0300] [Job ???] Request file type is application/vnd.cups-banner.
>>> D [19/May/2011:16:29:38 -0300] Print-Job client-error-document-format-not-supported:
(Continue reading)

Silas Silva | 20 May 00:12 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

I didn't know about the Raw Device thing, thanks.

The error persists with any particular driver (There are several different models in the network), but it
prints with "Raw Device". But, for a test page, it just prints a boring raw string on the sheet:
#CUPS-BANNER Show printer-name printer-info ...

At least we can be sure that the LAN connection is working, thanks :-)

But why it wouldn't work with specific drivers?  Is there something I can do?

> Did you select "Raw Device" for the make and model, or a particular driver?
>
> On May 19, 2011, at 1:28 PM, Silas Silva wrote:
>
> > Sorry, I'm not used to most of the CUPS functionality.
> >
> > On the web interface, I just clicked the network printer (among many on this organization) that I wanted
to work with. I could also change just Internet Printing Protocol or other option not directly associated
to a printer.  Is that what you mean?
> >
> >> Are you using a raw queue, or ???
> >>
> >> On May 19, 2011, at 12:40 PM, Silas Silva wrote:
> >>
> >>> Hi all.
> >>>
> >>> I just installed cups 1.4.6 from pkgsrc (www.pkgsrc.org) in my NetBSD 5.1 system.
> >>>
> >>> Printers are found and installed fine, but when I try to print a test from the web interface, this error
shows up:
(Continue reading)

Michael Sweet | 20 May 00:19 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

On May 19, 2011, at 3:12 PM, Silas Silva wrote:
> I didn't know about the Raw Device thing, thanks.
> 
> The error persists with any particular driver (There are several different models in the network), but it
prints with "Raw Device". But, for a test page, it just prints a boring raw string on the sheet:
#CUPS-BANNER Show printer-name printer-info ...
> 
> At least we can be sure that the LAN connection is working, thanks :-)
> 
> But why it wouldn't work with specific drivers?  Is there something I can do?

What you'll need to do is set the LogLevel to debug2 with:

	cupsctl LogLevel=debug2

and then run:

	grep add_printer_filter /var/log/cups/error_log

I'm guessing that the drivers you are using are specifying filters that do not exist...

> 
>> Did you select "Raw Device" for the make and model, or a particular driver?
>> 
>> On May 19, 2011, at 1:28 PM, Silas Silva wrote:
>> 
>>> Sorry, I'm not used to most of the CUPS functionality.
>>> 
>>> On the web interface, I just clicked the network printer (among many on this organization) that I wanted
to work with. I could also change just Internet Printing Protocol or other option not directly associated
(Continue reading)

Silas Silva | 20 May 00:30 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

> What you'll need to do is set the LogLevel to debug2 with:
>
> 	cupsctl LogLevel=debug2
>
> and then run:
>
> 	grep add_printer_filter /var/log/cups/error_log
>
> I'm guessing that the drivers you are using are specifying filters that do not exist...

grep found nothing. Anyway, the entire log file (I reset it before setting LogLevel=debug2) is here: http://www.silas.net.br/spare/error_log

Are the drivers the PPD files?

Thanks.
Michael Sweet | 20 May 00:48 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

On May 19, 2011, at 3:30 PM, Silas Silva wrote:
>> What you'll need to do is set the LogLevel to debug2 with:
>> 
>> 	cupsctl LogLevel=debug2
>> 
>> and then run:
>> 
>> 	grep add_printer_filter /var/log/cups/error_log
>> 
>> I'm guessing that the drivers you are using are specifying filters that do not exist...
> 
> grep found nothing. Anyway, the entire log file (I reset it before setting LogLevel=debug2) is here: http://www.silas.net.br/spare/error_log

The log shows you are missing the pstoraster filter; have you installed Ghostscript?

> Are the drivers the PPD files?

The PPD files are part of drivers; in some cases (PostScript printers) they can be all of the driver, but
usually there are one or more helper programs ("filters") that CUPS uses to convert things to a printable format.

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
Silas Silva | 20 May 01:23 2011
Picon

Re: Unsupported format 'application/vnd.cups-banner'!

> On May 19, 2011, at 3:30 PM, Silas Silva wrote:
> >> What you'll need to do is set the LogLevel to debug2 with:
> >>
> >> 	cupsctl LogLevel=debug2
> >>
> >> and then run:
> >>
> >> 	grep add_printer_filter /var/log/cups/error_log
> >>
> >> I'm guessing that the drivers you are using are specifying filters that do not exist...
> >
> > grep found nothing. Anyway, the entire log file (I reset it before setting LogLevel=debug2) is here: http://www.silas.net.br/spare/error_log
>
> The log shows you are missing the pstoraster filter; have you installed Ghostscript?

That was the problem! I had ghostscript installed, but it was compiled without support for cups, so it
didn't compile  pstoraster and other files. I'm going to suggest to pkgsrc guys to enable it by default in
the package management.

Really, thank you very much!

Gmane