Printer doesn't work - error 1034

Bug #55283 reported by smurf
2
Affects Status Importance Assigned to Milestone
CUPS
New
Unknown
cupsys (Ubuntu)
New
Undecided
Unassigned
gs-esp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

I have an Epson Stylus Colors 580 wich driver is installed with the system (gutenprint), but I wasn't able to put this printer at work with dapper, it was ok with breezy

Here the details:
Cups version is 1.2.2
Pc is a desktop with AMD athlon 64 (so dapper is amd64 version)
the printer is connected in local via USB port.
I installed the printer with gnome printer manager
The printer is detected by the printer manager and it sets automatically the right driver
The printer in setted on USB #1 (in breezy the printer was setted on USB #0, but in dapper I can't get usb #0, neither in printer manager and in localhost:631)

No applications can print (OpenOffice, Browser, and so on).

When I try to print a test page from gnome printer manager it says:

ERROR 1034 - THE PRINTER IS PAUSED? (I hope this is the right translation)
But the printer is READY not PAUSED.

In the localhost facility everything seems to be fine, the printer is detected and configured, the printer icon shows the green led on, but if I try to print a test page it says:
Unsupported format 'application/postscript'!

If I try to print from command line this is the result:

luca@luca:~$ lp file.txt
lp: Unsupported format 'text/plain'!

This is the access_log file after a try (test page) from gnome printer manager:

localhost - - [05/Aug/2006:11:40:19 +0200] "POST / HTTP/1.1" 200 126 Get-Jobs successful-ok
localhost - - [05/Aug/2006:11:40:21 +0200] "GET /ppd/epson3.ppd HTTP/1.1" 200 65916 - -
localhost - - [05/Aug/2006:11:40:21 +0200] "POST /printers/epson3 HTTP/1.1" 200 154010 Print-Job client-error-document-format-not-supported
localhost - - [05/Aug/2006:11:40:22 +0200] "POST / HTTP/1.1" 200 126 Get-Jobs successful-ok
localhost - - [05/Aug/2006:11:40:25 +0200] "POST / HTTP/1.1" 200 126 Get-Jobs successful-ok
localhost - - [05/Aug/2006:11:40:28 +0200] "POST / HTTP/1.1" 200 126 Get-Jobs successful-ok
localhost - - [05/Aug/2006:11:40:45 +0200] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes successful-ok
localhost - - [05/Aug/2006:11:40:45 +0200] "POST /printers/epson3 HTTP/1.1" 200 259 Print-Job client-error-document-format-not-supported

And this is error_log:

E [05/Aug/2006:10:47:43 +0200] Creating missing directory "/var/run/cups/certs"
E [05/Aug/2006:11:32:59 +0200] CUPS-Delete-Printer: Unauthorized
E [05/Aug/2006:11:34:54 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [05/Aug/2006:11:35:06 +0200] CUPS-Delete-Printer: Unauthorized
E [05/Aug/2006:11:36:39 +0200] CUPS-Add-Modify-Printer: Unauthorized

Note that I was trying to fix the problem using topic #48916 so I added and removed printer and restarted cups, but I didn't solve the problem.

This is the printers.conf file:
# Printer configuration file for CUPS v1.2.2
# Written by cupsd on 2006-08-05 11:36
<Printer epson3>
Info stylus color 580
Location
DeviceURI usb://EPSON/Stylus%20COLOR%20580
State Idle
StateTime 1154770599
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

Dmesg command for printer:

luca@luca:~$ dmesg | grep printer
[ 44.612313] drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005

Lsusb command returns:
luca@luca:~$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 004: ID 046d:0921 Logitech, Inc. Labtec WebCam
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04b8:0005 Seiko Epson Corp. Stylus Printer
Bus 002 Device 001: ID 0000:0000
luca@luca:~$

Group lp contains my accountname and group lpadmin contains cupsys and hal accounts.

Many thanks to everyone who can help me.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

smurf wrote:

> if I try to print a test page it says:
> Unsupported format 'application/postscript'!

> If I try to print from command line this is the result:

> luca@luca:~$ lp file.txt
> lp: Unsupported format 'text/plain'!

This is stange, do you have the file /etc/cups/mime.types?
This file contains the mime types known to CUPS, are "application/postscript" and "text/plain" listed in this file?

Could you also give the output of the following commands?

$ lpinfo -v
This shows the printer devices detected by CUPS.

$ /usr/lib/cups/backend/usb
This should indicate if the usb backend supports your printer.

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
smurf (luca-dgh) wrote :
Download full text (4.0 KiB)

Hi! First of all many thanks for your help.

Here what I found:

This is a part of mime.types:

#
# Application-generated files...
#

#application/msword doc string(0,<D0CF11E0A1B11AE1>)
application/pdf pdf string(0,%PDF)
application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
    contains(0,128,<1B>%-12345X) + \
    (contains(0,1024,"LANGUAGE=POSTSCRIPT") \
     contains(0,1024,"LANGUAGE = Postscript") \
     contains(0,1024,"LANGUAGE = PostScript") \
     contains(0,1024,"LANGUAGE = POSTSCRIPT") \
     (contains(0,1024,<0a>%!) + \
      !contains(0,1024,"ENTER LANGUAGE")))
application/vnd.hp-HPGL hpgl string(0,<1B>&)\
    string(0,<1B>E<1B>%0B) \
    string(0,<1B>%-1B) string(0,<201B>)\
    string(0,BP;) string(0,IN;) string(0,DF;) \
    string(0,BPINPS;) \
    (contains(0,128,<1B>%-12345X) + \
     (contains(0,1024,"LANGUAGE=HPGL") \
      contains(0,1024,"LANGUAGE = HPGL")))

########################################################################
#
# Image files...
#

image/gif gif string(0,GIF87a) string(0,GIF89a)
image/png png string(0,<89>PNG)
image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
    (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
     char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
     char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
     char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
image/tiff tiff tif string(0,MM) string(0,II)
image/x-photocd pcd string(2048,PCD_IPI)
image/x-portable-anymap pnm
image/x-portable-bitmap pbm string(0,P1) string(0,P4)
image/x-portable-graymap pgm string(0,P2) string(0,P5)
image/x-portable-pixmap ppm string(0,P3) string(0,P6)
image/x-sgi-rgb rgb sgi bw icon short(0,474)
image/x-xbitmap xbm
image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
#image/x-xwindowdump xwd string(4,<00000007>)
image/x-sun-raster ras string(0,<59a66a95>)

#image/fpx fpx
image/x-alias pix short(8,8) short(8,24)
image/x-bitmap bmp string(0,BM) && !printable(2,14)
image/x-icon ico

########################################################################
#
# Text files...
#

application/x-cshell csh printable(0,1024) + string(0,#!) +\
    (contains(2,80,/csh) contains(2,80,/tcsh))
application/x-perl pl printable(0,1024) + string(0,#!) +\
    contains(2,80,/perl)
application/x-shell sh printable(0,1024) + string(0,#!) +\
    (contains(2,80,/bash) contains(2,80,/ksh)\
     contains(2,80,/sh) contains(2,80,/zsh))
application/x-csource c cxx cpp cc C h hpp \
    printable(0,1024) + \
    (string(0,/*) string(0,//)
     string(0,#include) contains(0,1024,<0a>#include) \
     string(0,#define) contains(0,1024,<0a>#define))
text/html html htm printable(0,1024) +\
    (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
text/plain txt printable(0,1024)
text/css css

########################################################################
#
# CUPS-specific types...
#

application/vnd.cups-command string(0,'#CUPS-COMMAND')
application/vnd.cups-form string(0,"<CUPSFORM>")
application/vnd.cups-pdf
application/vnd.cups-postscript
application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
application/vnd.cups-raw (...

Read more...

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

smurf,

Firstoff, please use attachments instead of posting complete files as comments.

Your /etc/cups/mime.types looks ok.

The unsupported formats indicate that there must be something missing in your CUPS installation.
Perhaps their is a cups filter missing.
Can you attach your /etc/cups/mime.convs and attach the output of following command:
$ ls -l /usr/lib/cups/filter/

You could try to reinstall cups with following command to see if this solves the problem:
$ sudo apt-get --reinstall install cupsys

Revision history for this message
smurf (luca-dgh) wrote :

HI!

 >> Firstoff, please use attachments instead of posting complete files as comments.

Sorry for that I' ll use attachment now.

this is the output for the ls command:

luca@luca:~$ ls -l /usr/lib/cups/filter/
totale 456
-rwxr-xr-x 1 root root 6544 2006-05-03 22:43 commandtocanon
-rwxr-xr-x 1 root root 7120 2006-05-03 22:43 commandtoepson
lrwxrwxrwx 1 root root 12 2006-07-11 17:37 cupsomatic -> foomatic-rip
lrwxrwxrwx 1 root root 25 2006-07-11 17:37 foomatic-rip -> ../../../bin/foomatic-rip
-rwxr-xr-x 1 root root 6688 2006-08-03 10:54 gziptoany
-rwxr-xr-x 1 root root 49680 2006-08-03 10:54 hpgltops
-rwxr-xr-x 1 root root 28544 2006-08-03 10:54 imagetops
-rwxr-xr-x 1 root root 53656 2006-08-03 10:54 imagetoraster
-rwxr-xr-x 1 root root 5628 2006-08-03 10:54 pdftops
-rwxr-xr-x 1 root root 40888 2006-08-03 10:54 pstops
-rwxr-xr-x 1 root root 1904 2006-05-03 13:46 pstopxl
-rwxr-xr-x 1 root root 1872 2006-05-03 13:46 pstoraster
-rwxr-xr-x 1 root root 5933 2006-07-20 23:08 pstoturboprint
lrwxrwxrwx 1 root root 13 2006-08-04 09:51 rastertodymo -> rastertolabel
-rwxr-xr-x 1 root root 15432 2006-08-03 10:54 rastertoepson
-rwxr-xr-x 1 root root 29584 2006-05-03 22:43 rastertogutenprint.5.0
-rwxr-xr-x 1 root root 15048 2006-08-03 10:54 rastertohp
-rwxr-xr-x 1 root root 15920 2006-08-03 10:54 rastertolabel
-rwxr-xr-x 1 root root 2038 2006-07-20 23:08 rastertoturboprint
-rwxr-xr-x 1 root root 97862 2003-08-21 08:36 rastertoz600
-rwxr-xr-x 1 root root 40344 2006-08-03 10:54 texttops
luca@luca:~$

Now I'll reinstall the cups and I'll post any news.

Thanks

Revision history for this message
smurf (luca-dgh) wrote :

After reinstall cups nothing has changed, still the same error.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Everything look ok in your mime files.
IPP error 1034 means client-error-document-format-not-supported.

Looking at the CUPS forums I see some people have found a solution for it:
http://www.cups.org/newsgroups.php?gcups.general and look for client-error-document-format-not-support

Please try their suggestions which could help you solve the problem. Let us know what you tried and if it worked for you.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

This bug has also been reported in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=381743

Revision history for this message
smurf (luca-dgh) wrote :

OK. MY PRINTER IS WORKING!!!!!!!!!!!!!!!!!!!!

Well , that is what happened. In the cups forum people was discussing the same error than mine (I red it before), but the solutions they gave was not working for me. The solution was to uncomment the last line of the mime.convs file concerning raw printing

this is the line:
application/octet-stream application/vnd.cups-raw 0 -

Desesperate I said: ok there are more lines commented, so i'll try to uncomment them one by one.
And I had to uncomment just one, this one:
# pstoraster is now part of ESP Ghostscript...
application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster

And my printer started to work.
Probably is not 100% true that pstoraster is part of ESP Ghostscript, or ESP Ghostscript is not installed on my system, but it should be?
Anyway if you need more details from me or if I can do something for you let me know.

Thank you so much.
Bye

Changed in cupsys:
status: Unknown → Unconfirmed
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

I'm glad you found this solution for your problem.
Since you indicate you had to uncomment this line:
application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster
I think a lot of other people would have the problem too if they use the gutenprint cups-raster drivers, but at least we have a workaround now.
> Probably is not 100% true that pstoraster is part of ESP
> Ghostscript, or ESP Ghostscript is not installed on my system,
> but it should be?
> Anyway if you need more details from me or if I can do
> something for you let me know.
It would be nice if you could tell us which version of ghostscript is installed on your system.
I have written a little script to help with printing bugs, it gives some basic information about the important printing packages installed on your system, including gs. Please attach the output of this script.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

The script can be found here: https://wiki.ubuntu.com/PrintingBugInfoScript.

Revision history for this message
smurf (luca-dgh) wrote :

Hi! sorry for delay in answering, but it has been a very hard day.

So, attached the result of your script.
Cheers.
Luca

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

I think I found something.
On my system the file /etc/cups/pstoraster contains the line you need and comes installed with gs-esp:
application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster

Do you have this file? Please give the output of the following commands:
$ ls -l /etc/cups/*.types /etc/cups/*.convs
$ grep -H "application/vnd.cups-raster" /etc/cups/*.types /etc/cups/*.convs | grep pstoraster
$ grep -H "application/vnd.cups-command" /etc/cups/*.types /etc/cups/*.convs

Why do you have both gs-afpl, gs-gpl and gs-esp installed? You only need gs-esp for printing with CUPS.

Revision history for this message
smurf (luca-dgh) wrote :

No, I don't have the file /etc/cups/pstoraster on my system.

Here the outputs of the commands:
luca@luca:~$ ls -l /etc/cups/*.types /etc/cups/*.convs
-rw-r--r-- 1 root root 1215 2006-05-03 22:43 /etc/cups/command.types
-rw-r--r-- 1 root root 4459 2006-08-08 23:02 /etc/cups/mime.convs
-rw-r--r-- 1 root root 6109 2006-07-11 00:53 /etc/cups/mime.types
-rw-r--r-- 1 root lp 242 2006-07-16 18:09 /etc/cups/raw.convs
-rw-r--r-- 1 root lp 213 2006-07-16 18:09 /etc/cups/raw.types

luca@luca:~$ grep -H "application/vnd.cups-raster" /etc/cups/*.types /etc/cups/*.convs | grep pstoraster
/etc/cups/mime.convs:application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster

luca@luca:~$ grep -H "application/vnd.cups-command" /etc/cups/*.types /etc/cups/*.convs
/etc/cups/command.types:# Define the new application/vnd.cups-command filetype...
/etc/cups/command.types:application/vnd.cups-command string(0,'#CUPS-COMMAND')
/etc/cups/mime.types:application/vnd.cups-command string(0,'#CUPS-COMMAND')

> Why do you have both gs-afpl, gs-gpl and gs-esp installed? You only need
> gs-esp for printing with CUPS.
Well, I spent about one month looking for a solution to my problem, and I asked for help on many linux forum. So that is the result of different trials to fix the problem, once someone said "try this..." after another one said "try that..." and so on. The last I refused to try was Turboprinting, because I realized that my system was becoming a "printing salad".. do you understand?
Anyway... if you think it's better I can uninstall all that, but I don't know if uninstall packets can cause problems.... I'd prefere to let them there, for sure only if there is no risks of interferences.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Geoff Jacobsen has the same problem in bug #36532.

He was able to solve the issue by reinstalling gs-esp with following commands:

$ sudo dpkg --purge --force-all gs-esp
$ sudo apt-get install gs-esp

Then you can add the comment in mime.convs again:
#application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster

You only need gs-esp, you can safely remove gs-afpl and gs-gpl with following command:
$ sudo apt-get --purge remove gs-afpl gs-gpl

Revision history for this message
smurf (luca-dgh) wrote :

Ok. I've removed gs-afpl and gs-gpl without problems, and then commented the line in mime.convs.
Reinstalled gs-esp with the commands you gave, restarted cups and the printer is working now.
So the problem is fixed.
Can I ask which was the problem with gs-esp?
Thank you for everything and for the time you spent on this.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Marking this bug as a duplicate of bug #36532.
Please add further comments in bug #36532.

Changed in cupsys:
status: Needs Info → Confirmed
Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :

For the record:

I had the same error 1034, but the solution

 $ sudo dpkg --purge --force-all gs-esp
 $ sudo apt-get install gs-esp

did not work for me.

However, running

> sudo dpkg --purge --force-all cupsys cupsys-common foomatic-db

and reinstalling those did remedy.

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :

I might add that i came the upgrade path ubuntu 5.10->6.06 -> 6.10

there was a folder /etc/cups.backup

/etc/cups/mime.types did not exist, copying over from the cups.backup folder did not help

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.