Intrepid, CUPS does not print jobs sent to network printer

Bug #314543 reported by Antonio Cortes-Rodriguez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: cups

Release 8.10(intrepid)
Kernel Linux 2.6.27-11-generic
GNOME 2.24.1

cups:
  Installed: 1.3.9-2ubuntu6
  Candidate: 1.3.9-2ubuntu6
  Version table:
 *** 1.3.9-2ubuntu6 0
        500 http://archive.ubuntu.com intrepid-updates/main Packages
        100 /var/lib/dpkg/status
     1.3.9-2 0
        500 http://archive.ubuntu.com intrepid/main Packages

After creating network printer, first job is printed Ok, but any job sent after is rejected.
When trying to print from text editor the following message appears:
ERROR PRINTING, Too many failed attempts

This was discovered after having been working Ok for some time, several updates have been loaded since last time that worked Ok.

If I delete and create the printer again, the behaviour is the same, first time prints Ok, successive attempts fail.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/yelp
Package: yelp 2.24.0-0ubuntu2
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux 2.6.27-11-generic x86_64

Tags: apport-bug
Revision history for this message
Antonio Cortes-Rodriguez (antonio-cortes) wrote :
Revision history for this message
Chris Crisafulli (itnet7) wrote :

Thanks for reporting this issue in effort to help improve Ubuntu.
What kind of printer are you printing to? Vendor and Model number.

https://bugs.edge.launchpad.net/ubuntu/+source/cupsys/+bug/235670 this bug has something you can attempt to try to see if it helps you with this issue:

First:

sudo aa-complain cupsd

Can you print now?

Can you post the messages containing "audit" in your /var/log/syslog?

You get back to the standard AppArmor configuration with

sudo aa-enforce cupsd

Setting to incomplete, since awaiting answers from Antonio.

Chris

Changed in cups:
status: New → Incomplete
Revision history for this message
antoniocortes (ant-cortes) wrote : Re: [Bug 314543] Re: Intrepid, CUPS does not print jobs sent to network printer

Hi,

The printer is an EPSON Stylus Photo 830U, that is accessed via LAN
(using samba) as it is attached to Link Station 250 from BUFFALO.

When I connect the printer* directly to USB port* of the Ubuntu machine,
*it works Ok*.

If I access the same as LAN from the same computer but *booted as
windows, it works Ok as well*.

Sorry I forgot to mention that I tried tha AppArmor method, but *it does
not work* either.
I am repeating the procedure and I have attached the requested lines
containing "audit" from syslog file

Chris Crisafulli wrote:
> Thanks for reporting this issue in effort to help improve Ubuntu.
> What kind of printer are you printing to? Vendor and Model number.
>
> https://bugs.edge.launchpad.net/ubuntu/+source/cupsys/+bug/235670 this
> bug has something you can attempt to try to see if it helps you with
> this issue:
>
> First:
>
> sudo aa-complain cupsd
>
> Can you print now?
>
> Can you post the messages containing "audit" in your /var/log/syslog?
>
> You get back to the standard AppArmor configuration with
>
> sudo aa-enforce cupsd
>
> Setting to incomplete, since awaiting answers from Antonio.
> file:///var/log/syslog
>
> Chris
>
>
> ** Changed in: cups (Ubuntu)
> Status: New => Incomplete
>
>

Revision history for this message
antoniocortes (ant-cortes) wrote :

Further investigation is showing the following:

Printing is FAILING when trying to print from "gedit" or form""; but printing form "Thuderbird" or from" Open Offfice Word Processor", it WORKS fine.

When it fails, the job DOES NOT APPEAR in the printing queue

Revision history for this message
antoniocortes (ant-cortes) wrote :

I tried printing also from "Opera" (Ok) and from "Eclipse" (FAILS).
I hope this info helps to find out the failing component.
I just noticed that there is something missing in my previous comment, so in summary here are the list of applications that print Ok and the ones that FAIl:

Printing OK:
Open Office, Thunderbird, Opera.

Failing to even queue the job:
gedit, Firefox, Eclipse.

Revision history for this message
Chris Crisafulli (itnet7) wrote :

Can you try opening a document with: sudo gedit <document_example.txt>
then once it's open print it and see if you get the same error...

After looking at your cups error log It has several lines that might indicate a samba configuration issue. Can you take a look at this document and confirm this is how you setup your printing? http://www.swerdna.net.au/linhowtosambaprint.html

Also in my opinion you would have better results sharing the printer through your ubuntu http://www.swerdna.net.au/linhowtosambaprint_1.html.

Can you tell me which printer driver your using also?

It will not expire for a while, and I cannot confirm this as a true bug when i believe it is more of a possible configuration issue.

Revision history for this message
antoniocortes (ant-cortes) wrote :

Hi Chris,

Trying to print using gedit from sudo does not work either, it presents
same error as from my user.
The printer driver is: Epson Stylus Photo 830U - CUPS+Gutenprint v5.2.0-rc1

I agree that it looks like samba client is not working properly, but
what really puzzles me is that it was working well when I was using
Ubuntu 8.04, but it has started to fail after upgrading to 8.10, and the
fact that for some applications it works well (Open Office,
Thunderbird, and Opera), but not for others (gedit, Firefox, eclipse).

I have just checked the setup for the printing against document

http://www.swerdna.net.au/linhowtosambaprint.html

and the only difference was in the URI; I was using
smb://workgroup/HD-HLAN83B/lp
and I changed it to
smb://workgroup/username:password@HD-HLAN83B/lp

But there is no change of behaviour, it still has problems with gedit,
firefox and eclipse, working with the others mentioned before.

The reason I am using the Buffalo Link Station for sharing the printer,
is hat it is a stand alone networked hard drive with printer sharing
facilities that I bought for this purposes, and the rest of the
computers at home (one Ubuntu 8.04 and a Windows XP laptop) are
accessing it without any problem.
So I would prefer to keep using it.

Is there any other document about the samba settings that could help me
to check if with the changes to CIFS (that I seem to remember were
mentioned in the release notes) I should change any configuration?

Thanks for your help,

Antonio

Chris Crisafulli wrote:
> Can you try opening a document with: sudo gedit <document_example.txt>
> then once it's open print it and see if you get the same error...
>
> After looking at your cups error log It has several lines that might
> indicate a samba configuration issue. Can you take a look at this
> document and confirm this is how you setup your printing?
> http://www.swerdna.net.au/linhowtosambaprint.html
>
> Also in my opinion you would have better results sharing the printer
> through your ubuntu http://www.swerdna.net.au/linhowtosambaprint_1.html.
>
> Can you tell me which printer driver your using also?
>
> It will not expire for a while, and I cannot confirm this as a true bug
> when i believe it is more of a possible configuration issue.
>
>

Revision history for this message
Matthew Monaco (dgbaley27) wrote :

I am having a similar problem. I have an Epson Stylus CX6600 shared by a windows XP machine. I can print once, but then after that I need to restart CUPS so that I don't get the "Too many failed attempts" message. I set the loglevel to debug:

access_log: doesn't indicate any problem. It says that the print job was accepted and all that.

error_log: I've attached my error l log starting with a successful print immediately followed by an unsuccessful print. (Just a blank page from gedit).

I think what is happening is that authentication is actually failing after the first print job - but it's printing anyway. Then for the second print job it won't even let me try.

Revision history for this message
Matthew Monaco (dgbaley27) wrote :

Here is also my printers.conf. Note that I have commented out the AuthInfoRequired line and made printers.conf immutable as discussed in bug #283811

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

For me this indeed looks like the same cause as bug #283811 leading to a slightly different error mesg.

Antonio, please look at you /etc/cups/printers.conf (e.g. by opening a terminal window, and using 'sudo nano -v /etc/cups/printers.conf') to see if it contains a line like:
AuthInfoRequired username,password

Revision history for this message
antoniocortes (ant-cortes) wrote :

Thanks Paul,

I have checked the /etc/cups/printers.conf, and after reading bug #
283811
, I have changed the line to:
AuthInfoRequired none
and it is working now for Eclipse and Firefox; therefore I can confirm
that is the same bug, but with another simptoms.

Antonio Cortes

Paul Dufresne wrote:
> For me this indeed looks like the same cause as bug #283811 leading to a
> slightly different error mesg.
>
> Antonio, please look at you /etc/cups/printers.conf (e.g. by opening a terminal window, and using 'sudo nano -v /etc/cups/printers.conf') to see if it contains a line like:
> AuthInfoRequired username,password
>
>

Revision history for this message
antoniocortes (ant-cortes) wrote :

Thanks Paul,

I have checked the /etc/cups/printers.conf, and after reading bug #283811, I have changed the line to:
AuthInfoRequired none
and it is working now for Eclipse and Firefox; therefore I can confirm that is the same bug, but with another symptoms.

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.