Help!

Bug#554424: cups-pdf: printing fails - '[ERROR] failed to ..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist RSS
Next:  Bug#530550: About the possible solution  
Author Message
Celejar
External


Since: Apr 09, 2006
Posts: 47



PostPosted: Wed Nov 04, 2009 1:10 pm    Post subject: Bug#554424: cups-pdf: printing fails - '[ERROR] failed to set file mode for PDF file (non fatal)'
Archived from groups: linux>debian>bugs>dist (more info?)

Package: cups-pdf
Version: 2.5.0-11
Severity: important


Printing fails - no output under ~/PDF. /var/log/cups/cups-pdf_log contains:

Wed Nov 4 09:27:08 2009 [ERROR] failed to set file mode for PDF file (non fatal) *filename.pdf*

I saw this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301406

which suggests:

---
Since you mention "paranoid" settings please make sure that you (as
non-root user) can change into the directory /var/spool/cups-pdf/SPOOL.
You need user-read access to this directory in order for cups-pdf to work.
---

The permissions are actually:

drwxr-x--x 2 root lpadmin 4096 2009-11-04 09:27 SPOOL

but adding universal read access doesn't help.

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-rc5-lizzie-00402-gb6727b1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-Cool
Shell: /bin/sh linked to /bin/dash

Versions of packages cups-pdf depends on:
ii cups 1.3.8-1+lenny6 Common UNIX Printing System(tm) -
ii cups-client 1.4.1-5 Common UNIX Printing System(tm) -
ii ghostscript 8.70~dfsg-2 The GPL Ghostscript PostScript/PDF
ii libc6 2.10.1-5 GNU C Library: Shared libraries
ii libpaper-utils 1.1.23+nmu1 library for handling paper charact

cups-pdf recommends no packages.

Versions of packages cups-pdf suggests:
pn system-config-printer-gnome | <none> (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Martin-Éric
External


Since: Aug 09, 2005
Posts: 54



PostPosted: Fri Nov 13, 2009 11:10 am    Post subject: Bug#554424: [Pkg-cups-devel] Bug#554424: cups-pdf: printing fails - '[ERROR] failed to set file mode for PDF file (non fatal)' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, Nov 4, 2009 at 4:33 PM, Celejar <celejar.TakeThisOut@gmail.com> wrote:
> Package: cups-pdf
> Version: 2.5.0-11
> Severity: important
>
>
> Printing fails - no output under ~/PDF.  /var/log/cups/cups-pdf_log contains:
>
> Wed Nov  4 09:27:08 2009  [ERROR] failed to set file mode for PDF file (non fatal) *filename.pdf*
>
> I saw this:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301406
>
> which suggests:
>
> ---
> Since you mention "paranoid" settings please make sure that you (as
> non-root user) can change into the directory /var/spool/cups-pdf/SPOOL.
> You need user-read access to this directory in order for cups-pdf to work..
> ---

We do not ship any such directory.

What we ship is /var/spool/cups-pdf/ANONYMOUS and our post-install
script fixes permissions and ownership as follow:

chown nobody:nogroup /var/spool/cups-pdf/ANONYMOUS
chmod 1777 /var/spool/cups-pdf/ANONYMOUS

Martin-Éric



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Celejar
External


Since: Apr 09, 2006
Posts: 47



PostPosted: Fri Nov 13, 2009 3:10 pm    Post subject: Bug#554424: [Pkg-cups-devel] Bug#554424: cups-pdf: printing fails - '[ERROR] failed to set file mode for PDF file (non fatal)' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 13 Nov 2009 17:14:24 +0200
Martin-Éric Racine <q-funk.TakeThisOut@iki.fi> wrote:

> On Wed, Nov 4, 2009 at 4:33 PM, Celejar <celejar.TakeThisOut@gmail.com> wrote:
> > Package: cups-pdf
> > Version: 2.5.0-11
> > Severity: important
> >
> >
> > Printing fails - no output under ~/PDF.  /var/log/cups/cups-pdf_log contains:
> >
> > Wed Nov  4 09:27:08 2009  [ERROR] failed to set file mode for PDF file (non fatal) *filename.pdf*
> >
> > I saw this:
> >
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301406
> >
> > which suggests:
> >
> > ---
> > Since you mention "paranoid" settings please make sure that you (as
> > non-root user) can change into the directory /var/spool/cups-pdf/SPOOL.
> > You need user-read access to this directory in order for cups-pdf to work.
> > ---
>
> We do not ship any such directory.
>
> What we ship is /var/spool/cups-pdf/ANONYMOUS and our post-install
> script fixes permissions and ownership as follow:
>
> chown nobody:nogroup /var/spool/cups-pdf/ANONYMOUS
> chmod 1777 /var/spool/cups-pdf/ANONYMOUS

I was merely quoting the referenced bug report.

In any event, I have just reinstalled cups/cups-pdf, and pdf generation
is working now. I note that when I filed my original report, I had the
uptodate cups-pdf, but cups itself (due to some dependency trouble) was
version 1.3.8-1+lenny6. Perhaps the error was due to some
incompatibility between the old cups and the current cups-pdf? I
suppose that I can try downgrading cups to see if I can reproduce the
error. If that's indeed the problem, does that mean that cups-pdf
needs a versioned dependency on a recent cups?

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Martin-Éric
External


Since: Aug 09, 2005
Posts: 54



PostPosted: Fri Nov 13, 2009 3:10 pm    Post subject: Bug#554424: [Pkg-cups-devel] Bug#554424: cups-pdf: printing fails - '[ERROR] failed to set file mode for PDF file (non fatal)' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, Nov 13, 2009 at 8:51 PM, Celejar <celejar RemoveThis @gmail.com> wrote:
> On Fri, 13 Nov 2009 17:14:24 +0200
> Martin-Éric Racine <q-funk RemoveThis @iki.fi> wrote:
>> We do not ship any such directory.
>>
>> What we ship is /var/spool/cups-pdf/ANONYMOUS and our post-install
>> script fixes permissions and ownership as follow:
>>
>> chown nobody:nogroup /var/spool/cups-pdf/ANONYMOUS
>> chmod 1777 /var/spool/cups-pdf/ANONYMOUS
>
> I was merely quoting the referenced bug report.
>
> In any event, I have just reinstalled cups/cups-pdf, and pdf generation
> is working now.  I note that when I filed my original report, I had the
> uptodate cups-pdf, but cups itself (due to some dependency trouble) was
> version 1.3.8-1+lenny6. Perhaps the error was due to some
> incompatibility between the old cups and the current cups-pdf?  I
> suppose that I can try downgrading cups to see if I can reproduce the
> error.  If that's indeed the problem, does that mean that cups-pdf
> needs a versioned dependency on a recent cups?

It should not need any versioning, since the package has always been
expected to work fine with those restrictive permissions, at least on
Debian. The only recent change I've done is to make the post-install
script enforce expected ownership and permissions on all files, just
to sanitize everything after an upgrade, in case someone messed with
the default settings.

Martin-Éric



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum