Cannot print to remote authenticated printer

Bug #248902 reported by Ryan Lovett
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Invalid
Undecided
Unassigned
gtk+2.0 (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs
system-config-printer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: evince

I have a print queue where the device uri is "https://username:<email address hidden>:631/printers/myqueue". The remote queue requires authentication. This queue works fine when printing via lpr.

When I printed a PDF with evince, however, it throws up a dialog with the text "Failed to print document" and "Can't prompt for authorization".

This seems to be somewhat related to the bug

https://bugs.launchpad.net/ubuntu/+source/evince/+bug/158411

except my remote queue requires authentication.

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :
Revision history for this message
Ted (ted276) wrote :

I had the same problem. I was using the Codehost drivers for a Canon C3380. I was able to solve the problem by using codehost-config to duplicate the printer. This workaround also seems to work when using standard printer drivers and the System > Administration > Printing interface.

The printer was set up using IPP and required both normal authentication and Canon-specific mailbox authentication.

Related forum thread: http://ubuntuforums.org/showthread.php?p=5596724

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, does printing in other applications like gedit or gtk-demo works correctly?

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : Re: [Bug 248902] Re: Cannot print to remote authenticated printer

On Fri, Sep 12, 2008 at 10:57:29AM -0000, Sebastien Bacher wrote:
> thank you for your bug report, does printing in other applications like
> gedit or gtk-demo works correctly?

gedit also failed. The only difference was that the title of the dialog
window was "Error printing".

What happens when you try?

Ryan

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've no configured printer to try that, reassigning to gtk, to send on bugzilla.gnome.org by somebody having the issue

Changed in evince:
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

what ubuntu version do you use? could be an issue similar to bug #258104, could you try using the current intrepid?

Changed in gtk+2.0:
status: New → Incomplete
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

I'm using current intrepid.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you look in the cups logs to see if there is any error there?

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

I, too, encountered authentication problems since yesterday's Ubuntu 8.10 updates (printing via network). Everything worked fine until these updates. Now it keeps prompting for authentication but does not accept the login data.

Sebastien, would you please tell us where we find these logs?

Revision history for this message
Sebastien Bacher (seb128) wrote :

the logs are in the /var/log/cups directory

Revision history for this message
Franklin Bynum (frabyn) wrote :

I'm having the same problem after the recent updates to Intrepid. Added an attachment of my entire /var/log/cups/error_log

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

I confirm this bug for the following applications: Evince, OpenOffice.org, Firefox 3.

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

Okay, just tried to print, and there is only one entry in the error_log relating to this:

----
E [06/Nov/2008:09:40:44 +0100] Print-Job: Unauthorized
----

Revision history for this message
Sebastien Bacher (seb128) wrote :

the new comments are likely a different issue than the one described in this bug and cupsys bug, openoffice doesn't use gtkprint

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

Just tried the same printer via USB, and it has the same problem now: Document stays in the queue but is not printed.

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

The file error_log is empty here, but I found one called error_log.1. That one says:

----
E [17/Nov/2008:17:30:06 +0100] Print-Job: Unauthorized
E [17/Nov/2008:17:30:07 +0100] [Job 120] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:30:07 +0100] [Job 120] Session setup failed: NT_STATUS_NO_SUCH_FILE
E [17/Nov/2008:17:30:07 +0100] [Job 120] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:30:07 +0100] [Job 120] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [17/Nov/2008:17:30:07 +0100] PID 12023 (/usr/lib/cups/backend/smb) stopped with status 2!
E [17/Nov/2008:17:31:43 +0100] [Job 121] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:31:43 +0100] [Job 121] Session setup failed: NT_STATUS_NO_SUCH_FILE
E [17/Nov/2008:17:31:43 +0100] [Job 121] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:31:43 +0100] [Job 121] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [17/Nov/2008:17:31:43 +0100] PID 12306 (/usr/lib/cups/backend/smb) stopped with status 2!
E [17/Nov/2008:17:32:07 +0100] [Job 121] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:32:07 +0100] [Job 121] Session setup failed: NT_STATUS_NO_SUCH_FILE
E [17/Nov/2008:17:32:07 +0100] [Job 121] Session setup failed: NT_STATUS_LOGON_FAILURE
E [17/Nov/2008:17:32:07 +0100] [Job 121] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [17/Nov/2008:17:32:07 +0100] PID 12340 (/usr/lib/cups/backend/smb) stopped with status 2!
E [17/Nov/2008:17:35:42 +0100] PID 12579 (/usr/lib/cups/filter/pstopdf) stopped with status 1!
E [18/Nov/2008:12:26:45 +0100] [CGI] Unable to scan "@LOCAL"!
----

Revision history for this message
Peter van der Does (pdoes) wrote :

I had the same problem, couldn't print in Claws Mail and Gedit, didn't try evince but the work around described here: http://blog.avirtualhome.com/2008/11/21/cant-print-in-evince-gedit-claws-mail/ worked for me.

Revision history for this message
Wladston Viana (wladston) wrote :

thansk, the worarround works for me too.
please, fix this bug, it made me lost a lot of time searching for the fix ...

Revision history for this message
sinus_asperitatis (sinus-asperitatis) wrote :

I'm having the same problem and I use Intrepid. I can print only under OpenOffice.

My entire /var/log/cups/error_log is:

E [28/Nov/2008:12:51:56 +0100] Print-Job: Unauthorized
E [28/Nov/2008:13:31:52 +0100] Print-Job: Unauthorized
E [28/Nov/2008:13:42:29 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:42:29 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:42:29 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:42:47 +0100] Print-Job: Unauthorized
E [28/Nov/2008:13:55:01 +0100] Print-Job: Unauthorized
E [28/Nov/2008:13:55:01 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms (2)
E [28/Nov/2008:13:55:01 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms2 (2)
E [28/Nov/2008:13:55:02 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:55:02 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:55:02 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:13:55:06 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms (2)
E [28/Nov/2008:13:55:06 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms2 (2)
E [28/Nov/2008:13:55:10 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms (2)
E [28/Nov/2008:13:55:10 +0100] [Job 83] SpliX Cannot open CMS file /usr/share/cups/model/samsung/cms/CLP-510cms2 (2)
E [28/Nov/2008:14:42:55 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:14:42:55 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:14:42:55 +0100] cupsdAuthorize: Local authentication certificate not found!
E [28/Nov/2008:16:09:00 +0100] Print-Job: Unauthorized

Revision history for this message
era (era) wrote :

Why is this "Incomplete" and "low"!? The problem -- if I understand it correctly -- is that the "AuthInfoRequired" entry is added to the printer's definition even if you enter explicit authorization credentials instead of clicking the "Prompt user if authentication is required" radio button in the Device URI dialog box of the printer setup tool (system-config-printer-gnome?).

Revision history for this message
sinus_asperitatis (sinus-asperitatis) wrote :

You have reason
The problem was that I did not find the setup option. I have had
reinstallare printing in order to find the setup option.

Thanks for the aid.

era ha scritto:
> Why is this "Incomplete" and "low"!? The problem -- if I understand it
> correctly -- is that the "AuthInfoRequired" entry is added to the
> printer's definition even if you enter explicit authorization
> credentials instead of clicking the "Prompt user if authentication is
> required" radio button in the Device URI dialog box of the printer setup
> tool (system-config-printer-gnome?).
>
> ** Also affects: system-config-printer (Ubuntu)
> Importance: Undecided
> Status: New
>
>

Revision history for this message
sinus_asperitatis (sinus-asperitatis) wrote :

You have reason
The problem was that I did not find the setup option. I have had reinstallare printing in order to find the setup option.

Now printing works.

Thanks for the aid.

Revision history for this message
Oliver Joos (oliver-joos) wrote :

I support era's comment above. I saw this problem too after an Upgrade from Hardy to Intrepid.

For me the solution was to remove the line with "AuthInfoRequired" in /etc/cups/printers.conf and to prepend username and password to the line with "DeviceURI", like this:

DeviceURI smb://<user>:<password>@/192.168.0.<x>/usbprinter

Revision history for this message
Pedro Villavicencio (pedro) wrote :

evince uses gtk+ as a print backend, please do not assign the bug again to evince.

Changed in evince:
status: New → Invalid
Revision history for this message
era (era) wrote :

This appears to be fixed in the Jaunty beta.

Changed in system-config-printer (Ubuntu):
status: New → Fix Committed
Revision history for this message
era (era) wrote :

Marking as Invalid for gtk+2.0

Changed in gtk+2.0 (Ubuntu):
status: Incomplete → Invalid
Przemek K. (azrael)
Changed in system-config-printer (Ubuntu):
status: Fix Committed → 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.