cupsys won't print octet-stream

Bug #43145 reported by grendel970
38
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: cupsys

When samba is set to pass print jobs to cups, it passes raw jobs as octet-stream, unfortunately, it doesn't work. Many posts reference uncommenting
2 lines, one in mime.convs, and one in mime.types, but this does not work. Additionally the lines are automatically added in raw.types and raw.convs as default enabled, but still no dice.

the cups error_log shows the following:
Print-Job client-error-document-format-not-supported: Unsupported format 'application/octet-stream'!

I have tried the following:
1. dpkg-reconfigure cupsys, with and without raw enabled
2. all combos of octet-stream and vnd.cups-raw commented, including cups-raw "typing" removed
3. moving the raw.convs/types files elsewhere so it would only read mime.types/mime.convs

No response in the ubuntu forums either.. compiling the cupsys package with debugging enabled gave no joy.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Rejecting as duplicate

Changed in cupsys:
status: Unconfirmed → Rejected
Revision history for this message
grendel970 (dn) wrote :

I don't think this is a dup, as this has nothing to do with the cups smb backend. Also, I cannot print a raw job from the command line either, eg using lpr. I think these are 2 entirely seperate issues. Can we reopen this?

Revision history for this message
Martin Pitt (pitti) wrote :

Reopening.

What does

  grep raw /etc/cups/mime.*

print for you? Does enabling raw printing in both files fix it for you?

Changed in cupsys:
status: Rejected → Needs Info
Revision history for this message
grendel970 (dn) wrote :

I have tried many combinations of the above,

in mime.convs as it states:
application/octet-stream application/vnd.cups-raw 0 -
in mime.types:
application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
(and then more lines as part of this, but all looks formatted fine)

Funny thing is in the cups package this is enabled by default, in raw.types and raw.convs which has the same things, and both raw.types and mime.types have:
application/octet-stream

I have tried commenting, uncommenting, multiple configurations of, removing the vnd.cups-raw relation, removing raw.* , etc..
I can provide you with a raw print job which will be of type "octet-stream" to test with.

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

same here...

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

it could possibly be related to this
http://www.cups.org/str.php?L1667

Revision history for this message
grendel970 (dn) wrote :

That looks like exactly the same issue, hopefully we can get it fixed in short order.

Martin Pitt (pitti)
Changed in cupsys:
assignee: nobody → pitti
status: Needs Info → Confirmed
Revision history for this message
Mark (nix4me) wrote : Re: [Bug 43145] Re: cupsys won't print octet-stream

Martin Pitt wrote:

>** Changed in: cupsys (Ubuntu)
> Severity: Normal => Major
> Assignee: (unassigned) => Martin Pitt
> Status: Needs Info => Confirmed
> Target: None => ubuntu-6.06
>
>** Bug 43303 has been marked a duplicate of this bug
>
>
>
This bug is serious and yet has been downgraded by the cups team. This
is crap!

I don't understand how a bug that allows an OS NOT to be able to act as
a network print server is minor.

nix4me

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Afters some comments on cupsys bug system ... priority is "High" now :)

Revision history for this message
Martin Pitt (pitti) wrote :

For the record, I added myself to the CC list of the upstream bug; I'll grab the fix as soon as it's available.

Revision history for this message
Ante Karamatić (ivoks) wrote :

On Tue, 16 May 2006 09:40:45 -0000
VETSEL Patrice <email address hidden> wrote:

> Afters some comments on cupsys bug system ... priority is "High"
> now :)

Well... It was, for 2 hours :)

--
Ante Karamatic | 0xD3BDA225 | 0x0A4A0161
<email address hidden> | <email address hidden> | ivoks.blogspot.com
"Tomorrow is my day off, so please stay off the powder!"

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Gasp :( indeed :D

Revision history for this message
grendel970 (dn) wrote :

Now it's back down to low priority.

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

well, it seems there actually is a workaround, shame on me for not having read samba docs.
we could try to add
cups options = "raw"
in /etc/samba/smb.conf
i'm going to try it now, reading man smb.conf turns out that it's supposed to be new cups printing policy in samba

Revision history for this message
Ante Karamatić (ivoks) wrote :

On Tue, 16 May 2006 16:48:05 -0000
hva <email address hidden> wrote:

> well, it seems there actually is a workaround, shame on me for not
> having read samba docs. we could try to add
> cups options = "raw"
> in /etc/samba/smb.conf
> i'm going to try it now, reading man smb.conf turns out that it's
> supposed to be new cups printing policy in samba

Argh... But that's not the solution. This will fix printing over SMB,
but not over IPP.

--
Ante Karamatic | 0xD3BDA225 | 0x0A4A0161
<email address hidden> | <email address hidden> | ivoks.blogspot.com
"Tomorrow is my day off, so please stay off the powder!"

Revision history for this message
grendel970 (dn) wrote :

A patch was just checked in which fixes this issue, woohoo!

Revision history for this message
André Klitzing (misery) wrote : Patch to solve it
Revision history for this message
Ante Karamatić (ivoks) wrote :

I can confirm that upstream patch fixes this issue.

Martin Pitt (pitti)
Changed in cupsys:
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 cupsys (1.2.0-0ubuntu4) dapper; urgency=low
 .
   * Add debian/patches/svn5530_str1667_octet_stream.dpatch: Fix printing of
     application/octet-stream jobs (usually from Windows clients with locally
     installed driver). (STR #1667) Closes: LP#43145

Can you please cry out loudly if you still have problems with this version?

Changed in cupsys:
status: Fix Committed → Fix Released
Revision history for this message
Mark (nix4me) wrote : Re: [Bug 43145] Re: cupsys won't print octet-stream

Martin Pitt wrote:

> cupsys (1.2.0-0ubuntu4) dapper; urgency=low
> .
> * Add debian/patches/svn5530_str1667_octet_stream.dpatch: Fix printing of
> application/octet-stream jobs (usually from Windows clients with locally
> installed driver). (STR #1667) Closes: LP#43145
>
>Can you please cry out loudly if you still have problems with this
>version?
>
>
>** Changed in: cupsys (Ubuntu)
> Status: Fix Committed => Fix Released
>
>
>
I am not in a position right now to try out the patch. I had so many
problems that i had to use another OS for the time being for my
print/file server. I hope it works though. I plan to try Dapper again
once its final.

I really appreciate all the hard work to validate and fix my bug.

Thanks aagain!
Mark Ryan

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

it works for me, thanks

Revision history for this message
Mark (nix4me) wrote :

Martin Pitt wrote:

> cupsys (1.2.0-0ubuntu4) dapper; urgency=low
> .
> * Add debian/patches/svn5530_str1667_octet_stream.dpatch: Fix printing of
> application/octet-stream jobs (usually from Windows clients with locally
> installed driver). (STR #1667) Closes: LP#43145
>
>Can you please cry out loudly if you still have problems with this
>version?
>
>
>** Changed in: cupsys (Ubuntu)
> Status: Fix Committed => Fix Released
>
>
>
I tested new cups and it works fine. I was running another OS and i
upgraded some packages on that OS and low and behold, cups broke.
Heheheh. I filed a bug and wiped the drive. This was a great
opportunity to switch the machine back to Ubuntu.

Thanks again,
Mark Ryan

Revision history for this message
sjpatrick (steves-planettwelve) wrote :

I hate to sound like an moron and bring down the average intelligence quotient of the members of this post, but can someone point me to an idiot's guide to what to do with that patch file to use it?

I downloaded the latest code package from cups.org, did the usual configure/make/make install, restarted the cups services and stil have the very same problem.

The file dates of the source files in question don't suggest that the patch was applied, but all plus sign(+) lines are present and the minus signs(-) are gone... Or am I thinking about that backwards; should the plus sign lines disappear in favor of the minus sign lines?

Revision history for this message
sjpatrick (steves-planettwelve) wrote :

Answered my own stupid questions, but will pass along what I did and what I learned for the benefit of the other brain-challenged, frustrated, non-printing fools...

The latest (as of Saturday night, 8/19/2006) code from cups.org already has the patches applied. Had they not been, I discovered a nifty little tool called, apropriately, patch, that would have applied the changes needed. I should have known.

Anyhow, the reason the new code didn't work for me at first was that I had about eleven (exaggeration) flavors of cupsys* packages installed on my knoppix/debian system. I purged them all, and on seeing that the purge didn't get rid of my /etc/cups folder, moved said folder completely out of harms way.

Oh yeah, I was sure to stop the running cups services before the purge.

One more make intstall in the code folder, started the service, installed an ipp printer, printed a test page and shed a tear of joy. All is well, patch does indeed work as advertised.

Thanks to all in this post, I'd have been dead in the water without you.

Steve

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.