Failed to print document - can't prompt for authorization

Bug #305030 reported by Christians
40
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evince
Invalid
Undecided
Unassigned
GTK+
Fix Released
Unknown
cups (Ubuntu)
Incomplete
Undecided
Unassigned
evince (Debian)
Fix Released
Unknown
evince (Ubuntu)
Invalid
Low
Unassigned
gtk+2.0 (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

PDF document fails to print with Document Viewer 2.24.1 with

      ¨Failed to print document - can't prompt for authorization¨

The same document prints with ePDF and Okular. Reproduceable with any PDF file I could find. Same problem after reboot.

I am printing to a NAS attached print server. But I don't think this is the problem because I had the same issue a month ago with Ubuntu 8.04 on a different desktop printing to the same printer over USB cable. There are no print restrictions set on the print server.

My problem occurs on a desktop running 8.10, 2.6.27-10-generic (#1 SMP Fri Nov 21 12:00:22 UTC 2008), pre-release updates, fresh install.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/evince
Package: evince 2.24.1-0ubuntu1
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux 2.6.27-10-generic i686

Tags: apport-bug
Revision history for this message
Christians (script-vollbio) wrote :
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

this looks similar: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499759
are you sure the smb printer doesn't need authorization?
have you checked the printer's settings?

Changed in evince:
status: New → Incomplete
Revision history for this message
Christians (script-vollbio) wrote : Re: [Bug 305030] Re: Print PDF fails with Document Viewer, but works with ePDF

Dimitrios,

I can print with any other application to this NAS attached printer, including printing the same file with Okular. I'll try tonight hooking up the printer directly and let you know.

Yes, this bug looks a lot like http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499759

thanks for so swiftly looking into my report.

rgds
Christian

-------- Original-Nachricht --------
> Datum: Thu, 11 Dec 2008 21:14:59 -0000
> Von: Dimitrios Symeonidis <email address hidden>
> An: <email address hidden>
> Betreff: [Bug 305030] Re: Print PDF fails with Document Viewer, but works with ePDF

> this looks similar:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499759
> are you sure the smb printer doesn't need authorization?
> have you checked the printer's settings?
>
> ** Changed in: evince (Ubuntu)
> Status: New => Incomplete
>
> --
> Print PDF fails with Document Viewer, but works with ePDF
> https://bugs.launchpad.net/bugs/305030
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “evince” source package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: evince
>
> PDF document fails to print with Document Viewer 2.24.1 with
>
> ¨Failed to print document - can't prompt for authorization¨
>
> The same document prints with ePDF and Okular. Reproduceable with any PDF
> file I could find. Same problem after reboot.
>
> I am printing to a NAS attached print server. But I don't think this is
> the problem because I had the same issue a month ago with Ubuntu 8.04 on a
> different desktop printing to the same printer over USB cable. There are no
> print restrictions set on the print server.
>
> My problem occurs on a desktop running 8.10, 2.6.27-10-generic (#1 SMP Fri
> Nov 21 12:00:22 UTC 2008), pre-release updates, fresh install.
>
> ProblemType: Bug
> Architecture: i386
> DistroRelease: Ubuntu 8.10
> ExecutablePath: /usr/bin/evince
> Package: evince 2.24.1-0ubuntu1
> ProcEnviron:
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: evince
> Uname: Linux 2.6.27-10-generic i686

--
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

Revision history for this message
axelsvag (darinsson) wrote :

I have exactly the same problem with the same settings. Every other application on my system print perfectly but not document viewer. So I use the acroread and it works without any problem.

Changed in evince:
importance: Undecided → Low
status: Incomplete → Triaged
Revision history for this message
TiagoCruz (tiagocruz) wrote :
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Please try printing with other GTK+ apps like GEdit or Firefox - this shouldn't work if this is a GTK+ bug, like it was reported on the blog post above. There's a kind of workaround on that page.

Changed in gtk+2.0:
status: New → Confirmed
Changed in evince:
status: Triaged → Invalid
Changed in gtk+2.0:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
TiagoCruz (tiagocruz) wrote :

- Firefox = Not work
- Gedit = Not work
- Evince = Not work
- OpenOffice = Work

Revision history for this message
n3rd (n3rd) wrote :

I can contribute.

- Firefox = Not work
- Gedit = Not work
- Evince = Not work

- Okular = Worked !
- Emacs (GTK) = Worked !

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

OK, so the bug is in GTK+. I've opened an upstream report, we'll see what they say.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

GTK+ developers confirm this is a known limitation that should be fixed at some point. Don't know when, though.

Revision history for this message
novakov (stoyan-novakov) wrote :

I have the same problem. I use xpdf to open .pdf files and print them.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

I realize I've missed something here: you said your printer does not require any authentication. So there's also a bug in the CUPS printing system, which sets up the printer the wrong way.

From the blog post quoted above, the problem is that the second line should not be present, and removing it is said to solve the bug. This is because the 'Guest' user (passed via the printer address) is does not need a password to print. Is that the situation of all reporters here?
<DefaultPrinter tp0>
AuthInfoRequired username,password
Info Canon_PIXMA_iP8500
Location
DeviceURI smb://Guest@Home/Desktop/CanonPIX

Changed in cups:
status: New → Incomplete
Changed in libgtk:
status: Unknown → Confirmed
Changed in evince:
status: Unknown → Confirmed
Revision history for this message
glass.dimly (jmjohn) wrote :

So what's the workaround, folks? Can you be a bit more specific? What file do I edit?

Revision history for this message
glass.dimly (jmjohn) wrote :

OK,

I found the blog entry that was linked to above: http://blog.avirtualhome.com/2008/11/21/cant-print-in-evince-gedit-claws-mail/ .

Apparently, in the /etc/cups/printer.conf file one can try commenting out AuthInfoRequired username,password, such that it becomes

# AuthInfoRequired username,password
Info SlicerDicer

Now, the other option is to enter a valid user on your network. You can do this through the GUI (system > administration > printing > change location ). Or, you can do it like so in the /etc/cups/printer.conf file:

AuthInfoRequired username,password
Info PrinterName
Location LocationName
DeviceURI smb://user:password@/COMPUTERNAME/PrinterName

If this doesn't work, then it's truly a bug.

glass.dimly

Changed in evince:
importance: Unknown → Undecided
status: Confirmed → New
status: New → Invalid
Changed in libgtk:
importance: Unknown → Undecided
status: Confirmed → New
status: New → Invalid
Changed in gtk:
status: Unknown → Confirmed
Changed in evince:
status: Unknown → Confirmed
Revision history for this message
Ralph (christian-asker) wrote :

I have a similar problem with IPP printing that requires authentication, and I think it's the same bug (or related at least).

I set up the printer (IPP) and the first time I printed I was prompted for a password, but it worked.
After this, however, I got the authentication error described above.

After som digging, I have it kind of working by doing this:
1. Changing the URI in /etc/cups/printers.conf from
DeviceURI ipp://<ipp-printer-server-adress>:631/printers/printer1
to
DeviceURI ipp://USER:PASSWORD@<ipp-printer-server-adress>:631/printers/printer1
2. Removed myself from the lpadmin group.

Now I can print using lpr or Acroreader (which uses lp/lpr), but I still can't print from Evince!

Adding the USER:PASSWORD in system-config-printer does not work, but manually editing /etc/cups/printers.conf did.
As a first try, I commented out the "AuthInfoRequired" line, but it crept back in when I restarted Cups!

Another thing which may or may not be related is that I can't change the printer settings for this printer that require authentication. [And yes, I tried it while still begin in the lpadmin group...]
If I use the Cups web interface, it works however. But it's not very convenient...

Revision history for this message
Paul Dufresne (paulduf) wrote :

For me, this is the same bug has bug #283811.
Not sure which should be made the main one, here you have figure out that it affects GTK apps only, there,
the line that make it reappears in printers.conf is believed to be known, I am trying to figure out if it is right
or not by investigating the patch that added Auth-info-required in CUPS. (Just put it aside while I was triaging more cups bugs).

Revision history for this message
DERG (georgeaross) wrote :

Has any progress been made as I'm having the same issues as above & have not had any success fixing it?

Revision history for this message
Lord Malik (j-french) wrote :

Got printing to work.. after an hour or so of google'ing and tinkering

I'm new to Launchpad (today) - didn't see where to post on the 'non duplicate or original bug...'

I have this issue on Ubuntu 8.10 x86_64 Intrepid. Printing used to work. Have not printed for a while from my laptop and now after numerous updates it only works for some apps like Openoffice but not for others like Evolution. Printer is a Brother MFC-8440 connected to a Windows Vista system via USB.

Anyway, I mucked around with the /etc/cups/printer.conf file without luck - different error messages depending on what I did - rotate between "Error printing. Can't prompt for authorization" to "Error printing: Too many failed attempts".

I copied the existing printer through the Gnome GUI and pasted it with a different name and then choose this new one as my default printer. Voila it worked fine from all the applications (no cupsys restarting needed).

Also, seems to me that config files being reverted and not keeping changes might have to do with debconf. If i recall correctly there's an argument to dpkg that allows reconfiguring pkgs so that they either don't use debconf or at least you can modify your configuration so it's configuration change takes ahold.

I did check the Vista System and Domain Event Logs to see if there were any failed auth attempts (yes auditing is turned on for this). There were none.

Changed in gtk:
status: Confirmed → Fix Released
Changed in evince (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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