What do CUPS error messages mean?
What do CUPS error messages mean? Or, where can I find out what they mean?
I have recently installed Ubuntu Linux. I have installed my Canon-BJC 265sp printer through CUPS. Or at least it looks as if I have. The CUPS web interface shows:
Description: CANON
Location: Local Printer
Make and Model: Canon BJC-265SP Foomatic/bjc250gs (recommended)
Printer State: processing, accepting jobs, published.
Device URI: canon:/dev/lp0
Only, when I tried to print a test page, or anything else, the light on the printer flashes, paper starts feeding - and then nothing happens.
This is the CUPS error log from my last attempt to print:
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
This is the error log from previous attempts:
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
E [10/Oct/
Can anyone tell me what these error messages mean, or where to find out what they mean?
Thanks,
Martin
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu cups Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alan Pope πΊπ§π± π¦
- Solved:
- 2006-10-15
- Last query:
- 2006-10-15
- Last reply:
- 2006-10-15
Personally I'd ignore all those messages except this one...
> E [10/Oct/
It says to me that it can't find the driver (the ppd) for your printer - or
rather the driver you chose when you set the printer up.
To find out what package contains that file visit
http://
of packages"οΏ½put in "Canon-
button.
You will find that file is contained in the foomatic-
which you should be able to install either with synaptic or by typing..
$ sudo apt-get update
$ sudo apt-get install foomatic-
Hope that helps.
Under http://
You have searched for Canon-BJC-
Found 1 matching files/directories, displaying files/directories 1 to 1.
FILE PACKAGE
usr/share/
But then I get:
martin@Ava:~$ sudo apt-get install foomatic-
Reading package lists... Done
Building dependency tree... Done
foomatic-
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
That seems to say that it's already installed.
But then what can I do now about the CUPS error message?
Unable to open "/usr/share/
I have /home/martin/
The directory /usr/share/
I've tried copying the ppd file into /usr/share/
Error while copying to "/usr/share/
You do not have permissions to write to this folder.
How do I get round this permissions problem?
I used sudo cp from a terminal session to copy the ppd file into /usr/share/
Meanwhile:
1. When I tried (unsuccessfully) to print a test page from CUPS, I noticed that CUPS had the user on the print job set as "guest". I went to the bit in CUPS where you set which users are allowed to use the printer. I added myself. Fine. I added another user on this computer. CUPS then told me it had no printers - i.e. it uninstalled the printer.
2. I tried to reinstall the printer through CUPS. I couldn't remember (sorry) how I had previously got round the problem that when you install a printer, CUPS says:
choose "Device" from the following list:
App Socket/HP Jet Direct
Backend Error Handler
Bluetooth Printer
hp no_device_found
Internet Printing Protocol (http)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
Windows printer via Samba
I chose LPD/LPR Host or Printer (no idea what this means, sorry) and then typed canon:/dev/lp0 in the Device URI box (because that's what I had before, and it seemed to work at least to get the computer to recognise the printer: the printer light does flash, and the paper beings to feed as if preparing to print, when you try to print something).
3. That seemed to work, but on trying to print a test page now from CUPS I didn't even get the flashing light on the printer and the paper beginning to feed.
4. I tried the business of adding users, and again, when I added the second user CUPS "vanished" the printer.
5. I looked in System>
is the printer paused ?
However, if you look at "Properties" for the printer, its status is shown as "Ready".
6. I've deleted the second printer from System>
Should I delete all printers from System>
If so:
1. How do I negotiate the request from CUPS to specify "Device" from among the options:
App Socket/HP Jet Direct
Backend Error Handler
Bluetooth Printer
hp no_device_found
Internet Printing Protocol (http)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
Windows printer via Samba
2. What should I do about the "Allow users" bit? Just leave well alone for now?
> I have /home/martin/
>
> The directory /usr/share/
>
You could certainly try it
$ sudo cp /home/martin/
/usr/
Would do it
> I've tried copying the ppd file into /usr/share/
>
> Error while copying to "/usr/share/
> You do not have permissions to write to this folder.
>
> How do I get round this permissions problem?
>
Can you close some of these tickets, and leave just one open, it's getting
very confusing to follow them all.
OK, sorry. I was trying to break the problem up into manageable bits, hoping that someone might offer advice on one bit when they found the whole thing too complicated to bother with. Maybe not a good idea.
Summary of how things stand now.
1. I had installed my old Canon BJC 265-sp printer, apparently successfully, through CUPS, but it would not print test pages. The printer light flashed, and the paper started to feed as if preparing to print, but nothing more would happen.
2. One of the messages in the CUPS error log was E [10/Oct/
I have copied Canon-BJC-
3. While I was trying to use the "allow users" feature in CUPS (in case the problem was that it didn't recognise me as an allowable user), CUPS "vanished" the printer. It came up with a message: "No printer installed". (Though, if you clicked on "Printers" in CUPS, it gave a page which should be a list of printers, blank, with the words "Showing 0 of 1 printer", as if it still had some record of a printer somewhere).
4. The printer was still shown on System>
5. I deleted the printer from System>
6. I have reinstalled. I can't remember (sorry) how I previously negotiated the bit in CUPS where it asks you to choose "Device" from a list as follows:
App Socket/HP Jet Direct
Backend Error Handler
Bluetooth Printer
hp no_device_found
Internet Printing Protocol (http)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
Windows printer via Samba
I chose LPD/LPR Host or Printer (just a stab in the dark). I then typed in the "Device URI" as canon:/dev/lp0 (because that is what it was on the previous installation).
Under "Driver", I chose Canon BJC-240, because the Canon BJC-265sp manual says: "The Canon BJC-265sp can use printer drivers designed for other printers and still be able to use most (if not all) of the BJC 265-sp's printer functions". The Canon BJC-240 is listed as no.3 of 27 alternative printer drivers.
CUPS now says:
Description: Canon BJC-265sp
Location: Parallel port
Make and Model: Canon BJC-240 Foomatic/bjc600 (recommended)
Printer State: processing, accepting jobs, published.
Device URI: canon:/dev/lp0
When I try to print a test page now, I don't even get the printer light flashing and the paper beginning to feed.
7. I would try a generic driver, only CUPS lists a wide range of generic drivers and I have no idea which one to choose.
8. Here is the latest CUPS error log:
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
E [14/Oct/
... repeated lots and lots of times ...
E [14/Oct/
E [14/Oct/
E [14/Oct/
9. What does all the "unauthorised" stuff mean? What can I do about it? What should I have done under the "Device" bit on CUPS? Does the "Device URI" canon:/dev/lp0 look right?
I tried the Epson LQ-850 driver, another one which the Canon manual says should work with the BJC-265sp. Same (lack of) result.
Error log entries:
E [15/Oct/
E [15/Oct/
http://
suggests that the "Device URI" should look quite different, and also suggests that I need to do commands to "restart CUPS". But I don't really understand it.
Should I reset the "Device URI"? To what?
And do I need to "restart CUPS"?
Could there be a problem in cupsd.conf? Does this cupsd.conf look ok?
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
# These settings are configured in /etc/cups/
# changing them does not require to change this file.
# Listen localhost:631
# Listen /var/run/
# Show shared printers on the local network.
# The 'Browsing' setting is configured in /etc/cups/
# so that changing it does not require to change this file.
# Browsing Off
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authentica
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Include files in /etc/cups/conf.d
Include /etc/cups/
Include /etc/cups/
#
#
According to http://
After clicking "Continue" you are asked for the "Device" for your queue. Choose the appropriate parallel or USB port. The entry should contain the model name of your printer.
I think that when I first (apparently) succeeded in setting up the printer, the CUPS options under "Device" did indeed include something which was recognisably my printer - and that is why I now don't know how to deal with those options, seeing only the baffling choices:
App Socket/HP Jet Direct
Backend Error Handler
Bluetooth Printer
hp no_device_found
Internet Printing Protocol (http)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
Windows printer via Samba
In other words, CUPS has "lost" the ability to "see" the printer which it once had (though even then it could only "see" it and send messages sufficient to make the printer light flash, the paper begin to feed, etc., not messages sufficient to make it print anything).
How can I restore the ability of CUPS to "see" the printer?
By deleting the printer from CUPS and then restarting the machine, I got CUPS once again to "recognise" the printer.
It gives the options "Canon printer" and "Epson printer", and then does not ask for "Device".
I told CUPS to use the BJC-250 PPD again, and so CUPS once again shows:
Description: CANON
Location: Local Printer
Make and Model: Canon BJC-265SP Foomatic/bjc250gs (recommended)
Printer State: processing, accepting jobs, published.
Device URI: canon:/dev/lp0
And once again, when I try to print a test page, the printer light does flash, and the paper does begin to feed, showing that there is communication between the computer and printer. But it prints nothing. Back to square one.
CUPS error log this time round shows only:
E [15/Oct/
I could try running the printer with a generic driver, if someone can suggest which of the many generic drivers offered as options by CUPS might be right.
I've fixed it (for myself) by resetting the printer to emulate an Epson LQ 850, and downloading and installing the Epson LQ 850 PPD. Many thanks to Alan, Luca, Danny, and others who have helped over the last week or so.
So the problem is probably with Canon-BJC-
It sounds like CUPS is looking in the wrong place for the ppd file when you use the Canon. If you look in the CUPS log file does it tell you where it's loading the LQ 850 driver from?
I am using Ubuntu 6.10 and note that the Canon driver is in /usr/share/
These are the references to PPD in the CUPS access log.
localhost - - [15/Oct/
localhost - martin [15/Oct/
localhost - martin [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - martin [15/Oct/
localhost - - [15/Oct/
localhost - martin [15/Oct/
localhost - martin [15/Oct/
localhost - martin [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - - [15/Oct/
localhost - martin [15/Oct/
localhost - martin [15/Oct/
I find it hard to see how the problem can be CUPS looking in the wrong place for the Canon PPD.
1. I put the Epson and Canon PPDs in the same directory, /usr/share/
2. First time round, I just had the Canon PPD on the desktop, and told CUPS to find it there in the installation. But (1) CUPS gave no indication of not being able to find it during installation; (2) On subsequent attempts - deleting the printer, and then letting CUPS find it again - I had already copied the Canon PPD into /usr/share/
3. On those subsequent attempts, the CUPS error messages (when I tried to print) included no reference to being unable to find the PPD.
But this is just how it seems to me, and I'm very much a beginner with both Linux and CUPS, so I may well have missed something.
By the way, these are the files in /usr/cups/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/ppd also includes a raft of PPD files, including the Canon one (twice). I don't know what to make of this, but here's a listing.
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
The Canon driver is in the /custom directory, and also in a /Canon directory within /linuxprinting.
Those copies of the Canon and Epson PPDs are in addition to the copies in /usr/share/

