LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu (http://www.linuxquestions.org/questions/linux-software-2/cups-error-%5Bjob-%5D-request-file-type-is-text-plain-cups-on-arm-architectu-875973/)

abhinit 04-19-2011 04:12 PM

CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu
 
Hi all,
I'm trying to run CUPS on ARM architecture (using MINI2440), The scheduler starts, I added the printer, but I'm not able to print anything to my Deskjet printer.

[root@FriendlyARM /]# lp ./abhi.txt
lp: Unsupported format 'text/plain'!

Error log shows:::

I [19/Apr/2011:23:15:51 +0000] [Job ???] Request file type is text/plain.

No job-ID's are created. Please help, Here's my error log:

Code:

I [19/Apr/2011:23:03:26 +0000] Listening to ::1:631 (IPv6)
I [19/Apr/2011:23:03:26 +0000] Listening to 127.0.0.1:631 (IPv4)
I [19/Apr/2011:23:03:26 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [19/Apr/2011:23:03:26 +0000] Remote access is disabled.
I [19/Apr/2011:23:03:26 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [19/Apr/2011:23:03:26 +0000] Using default TempDir of /var/spool/cups/tmp...
I [19/Apr/2011:23:03:26 +0000] Configured for up to 100 clients.
I [19/Apr/2011:23:03:26 +0000] Allowing up to 100 client connections per host.
I [19/Apr/2011:23:03:26 +0000] Using policy "default" as the default!
I [19/Apr/2011:23:03:26 +0000] Full reload is required.
I [19/Apr/2011:23:03:26 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [19/Apr/2011:23:03:26 +0000] Full reload complete.
I [19/Apr/2011:23:03:26 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [19/Apr/2011:23:03:26 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [19/Apr/2011:23:03:26 +0000] Listening to 127.0.0.1:631 on fd 4...
I [19/Apr/2011:23:03:26 +0000] Listening to /var/run/cups/cups.sock on fd 6...
I [19/Apr/2011:23:03:26 +0000] Resuming new connection processing...
E [19/Apr/2011:23:03:28 +0000] CUPS-Add-Modify-Printer: Unauthorized
I [19/Apr/2011:23:03:28 +0000] Setting Deskjet printer-is-accepting-jobs to 1 (was 1.)
I [19/Apr/2011:23:03:28 +0000] Setting Deskjet printer-state to 3 (was 5.)
I [19/Apr/2011:23:03:28 +0000] Saving printers.conf...
I [19/Apr/2011:23:03:28 +0000] Printer "Deskjet" modified by "root".
I [19/Apr/2011:23:03:28 +0000] Setting Deskjet device-uri to "file:///dev/lp0" (was "file:///dev/lp0".)
I [19/Apr/2011:23:03:29 +0000] Saving printers.conf...
I [19/Apr/2011:23:03:29 +0000] Printer "Deskjet" modified by "root".
I [19/Apr/2011:23:03:29 +0000] Saving printers.conf...
I [19/Apr/2011:23:03:29 +0000] Printer "Deskjet" modified by "root".
E [19/Apr/2011:23:15:31 +0000] CUPS-Set-Default: Unauthorized
I [19/Apr/2011:23:15:31 +0000] Saving printers.conf...
I [19/Apr/2011:23:15:31 +0000] Saving classes.conf...
I [19/Apr/2011:23:15:31 +0000] Default destination set to "Deskjet" by "root".
I [19/Apr/2011:23:15:51 +0000] [Job ???] Request file type is text/plain.
I [19/Apr/2011:23:53:24 +0000] [Job ???] Request file type is text/plain.
I [19/Apr/2011:23:56:14 +0000] Started "/usr/lib/cups/daemon/cups-deviced" (pid=797)
E [20/Apr/2011:00:29:22 +0000] Unknown SystemGroup "lpadmin sys root" on line 14, ignoring!
I [20/Apr/2011:00:29:22 +0000] Listening to ::1:631 (IPv6)
I [20/Apr/2011:00:29:22 +0000] Listening to 127.0.0.1:631 (IPv4)
I [20/Apr/2011:00:29:22 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [20/Apr/2011:00:29:22 +0000] Remote access is disabled.
I [20/Apr/2011:00:29:22 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [20/Apr/2011:00:29:22 +0000] Using default TempDir of /var/spool/cups/tmp...
I [20/Apr/2011:00:29:22 +0000] Configured for up to 100 clients.
I [20/Apr/2011:00:29:22 +0000] Allowing up to 100 client connections per host.
I [20/Apr/2011:00:29:22 +0000] Using policy "default" as the default!
I [20/Apr/2011:00:29:22 +0000] Full reload is required.
I [20/Apr/2011:00:29:22 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:29:22 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [20/Apr/2011:00:29:22 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:29:22 +0000] Full reload complete.
E [20/Apr/2011:00:29:22 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [20/Apr/2011:00:29:22 +0000] Listening to 127.0.0.1:631 on fd 3...
I [20/Apr/2011:00:29:22 +0000] Listening to /var/run/cups/cups.sock on fd 5...
I [20/Apr/2011:00:29:22 +0000] Resuming new connection processing...
I [20/Apr/2011:00:30:03 +0000] [Job ???] Request file type is text/plain.
I [20/Apr/2011:00:31:04 +0000] [Job ???] Request file type is text/plain.
I [20/Apr/2011:00:32:57 +0000] [Job ???] Request file type is text/plain.
E [20/Apr/2011:00:40:49 +0000] Unknown SystemGroup "lpadmin sys root" on line 14, ignoring!
I [20/Apr/2011:00:40:49 +0000] Listening to ::1:631 (IPv6)
I [20/Apr/2011:00:40:49 +0000] Listening to 127.0.0.1:631 (IPv4)
I [20/Apr/2011:00:40:49 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [20/Apr/2011:00:40:49 +0000] Remote access is disabled.
I [20/Apr/2011:00:40:49 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [20/Apr/2011:00:40:49 +0000] Using default TempDir of /var/spool/cups/tmp...
I [20/Apr/2011:00:40:49 +0000] Configured for up to 100 clients.
I [20/Apr/2011:00:40:49 +0000] Allowing up to 100 client connections per host.
I [20/Apr/2011:00:40:49 +0000] Using policy "default" as the default!
I [20/Apr/2011:00:40:49 +0000] Full reload is required.
I [20/Apr/2011:00:40:49 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:40:49 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [20/Apr/2011:00:40:49 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:40:49 +0000] Full reload complete.
E [20/Apr/2011:00:40:49 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [20/Apr/2011:00:40:49 +0000] Listening to 127.0.0.1:631 on fd 3...
I [20/Apr/2011:00:40:49 +0000] Listening to /var/run/cups/cups.sock on fd 5...
I [20/Apr/2011:00:40:49 +0000] Resuming new connection processing...
I [20/Apr/2011:00:41:07 +0000] [Job ???] Request file type is text/plain.
I [20/Apr/2011:00:44:05 +0000] Started "/usr/lib/cups/daemon/cups-deviced" (pid=926)
I [20/Apr/2011:00:45:21 +0000] Started "/usr/lib/cups/daemon/cups-deviced" (pid=953)
I [20/Apr/2011:00:47:07 +0000] Started "/usr/lib/cups/daemon/cups-deviced" (pid=978)
E [20/Apr/2011:00:57:29 +0000] Unknown SystemGroup "lpadmin sys root" on line 14, ignoring!
I [20/Apr/2011:00:57:29 +0000] Listening to ::1:631 (IPv6)
I [20/Apr/2011:00:57:29 +0000] Listening to 127.0.0.1:631 (IPv4)
I [20/Apr/2011:00:57:29 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [20/Apr/2011:00:57:29 +0000] Remote access is disabled.
I [20/Apr/2011:00:57:29 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [20/Apr/2011:00:57:29 +0000] Using default TempDir of /var/spool/cups/tmp...
I [20/Apr/2011:00:57:29 +0000] Configured for up to 100 clients.
I [20/Apr/2011:00:57:29 +0000] Allowing up to 100 client connections per host.
I [20/Apr/2011:00:57:29 +0000] Using policy "default" as the default!
I [20/Apr/2011:00:57:29 +0000] Full reload is required.
I [20/Apr/2011:00:57:29 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:57:29 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [20/Apr/2011:00:57:29 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:57:29 +0000] Full reload complete.
E [20/Apr/2011:00:57:29 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [20/Apr/2011:00:57:29 +0000] Listening to 127.0.0.1:631 on fd 3...
I [20/Apr/2011:00:57:29 +0000] Listening to /var/run/cups/cups.sock on fd 5...
I [20/Apr/2011:00:57:29 +0000] Resuming new connection processing...
E [20/Apr/2011:00:58:16 +0000] Unknown SystemGroup "lpadmin sys root" on line 14, ignoring!
I [20/Apr/2011:00:58:16 +0000] Listening to ::1:631 (IPv6)
I [20/Apr/2011:00:58:16 +0000] Listening to 127.0.0.1:631 (IPv4)
I [20/Apr/2011:00:58:16 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [20/Apr/2011:00:58:16 +0000] Remote access is disabled.
I [20/Apr/2011:00:58:16 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [20/Apr/2011:00:58:16 +0000] Using default TempDir of /var/spool/cups/tmp...
I [20/Apr/2011:00:58:16 +0000] Configured for up to 100 clients.
I [20/Apr/2011:00:58:16 +0000] Allowing up to 100 client connections per host.
I [20/Apr/2011:00:58:16 +0000] Using policy "default" as the default!
I [20/Apr/2011:00:58:16 +0000] Full reload is required.
I [20/Apr/2011:00:58:16 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:58:16 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [20/Apr/2011:00:58:16 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:00:58:16 +0000] Full reload complete.
E [20/Apr/2011:00:58:16 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [20/Apr/2011:00:58:16 +0000] Listening to 127.0.0.1:631 on fd 3...
I [20/Apr/2011:00:58:16 +0000] Listening to /var/run/cups/cups.sock on fd 5...
I [20/Apr/2011:00:58:16 +0000] Resuming new connection processing...
I [20/Apr/2011:00:58:34 +0000] [Job ???] Request file type is text/plain.
E [20/Apr/2011:02:04:23 +0000] Unknown SystemGroup "lpadmin root root" on line 14, ignoring!
I [20/Apr/2011:02:04:23 +0000] Listening to ::1:631 (IPv6)
I [20/Apr/2011:02:04:23 +0000] Listening to 127.0.0.1:631 (IPv4)
I [20/Apr/2011:02:04:23 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [20/Apr/2011:02:04:23 +0000] Remote access is disabled.
I [20/Apr/2011:02:04:23 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [20/Apr/2011:02:04:23 +0000] Using default TempDir of /var/spool/cups/tmp...
I [20/Apr/2011:02:04:23 +0000] Configured for up to 100 clients.
I [20/Apr/2011:02:04:23 +0000] Allowing up to 100 client connections per host.
I [20/Apr/2011:02:04:23 +0000] Using policy "default" as the default!
I [20/Apr/2011:02:04:23 +0000] Full reload is required.
I [20/Apr/2011:02:04:23 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:02:04:23 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [20/Apr/2011:02:04:23 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [20/Apr/2011:02:04:23 +0000] Full reload complete.
E [20/Apr/2011:02:04:23 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [20/Apr/2011:02:04:23 +0000] Listening to 127.0.0.1:631 on fd 3...
I [20/Apr/2011:02:04:23 +0000] Listening to /var/run/cups/cups.sock on fd 5...
I [20/Apr/2011:02:04:23 +0000] Resuming new connection processing...
I [20/Apr/2011:02:04:51 +0000] [Job ???] Request file type is text/plain.

I get this error whenever I try to print a file...
I found out its coz maybe CUPS isn't detecting the filters, when I tried
raw printing:

[root@FriendlyARM /]# lp -oraw ./abhi.txt
request id is Deskjet-1 (1 file(s))

the page printed...

But Filters are there in /usr/lib/cups/filters:

[root@FriendlyARM /]# ls /usr/lib/cups/filter/
gziptoany imagetops pdftops rastertodymo rastertohp
texttops
hpgltops imagetoraster pstops rastertoepson rastertolabel

[root@FriendlyARM /]# lpstat -t
scheduler is running
system default destination: Deskjet
device for Deskjet: ///dev/lp0
Deskjet accepting requests since Tue Apr 19 23:03:28 2011
printer Deskjet is idle. enabled since Tue Apr 19 23:03:28 2011

Update:

The issue was that there is no pstoraster!

hence only images can be printed.

Anyone knows how to create rasters from mixed graphics without using Ghostscript? I'm facing problems cross compiling ghostscript on ARM...

business_kid 04-20-2011 02:53 AM

Have you ghostscript, or some other txt--> ps conversion?

abhinit 04-21-2011 09:40 AM

@bussiness_kid, thts the issue, I'm having trouble cross compiling ghostscript. But m facing problems in that, I found that during the make process, an executablee was generated, which aided in further processing, but since during cross compiling we're getting ELF ARM executables, hence it the build process comes to a halt.

I was thinking on the lines of using QT4 to make an app which generates images out of text+graphics. which could be used with image to raster filter.

But I would still prefer PS.

I also noticed that using CUPS 1.3.11, I was not able to print in the newer laserjet and deskjet printers.

say I was able to print in HP DeskJet 840c and 845c and laserjet 1300n

but not in deskjet 3550 and laserjet P1505

Please suggest something!

business_kid 04-22-2011 03:19 AM

Quote:

Originally Posted by abhinit (Post 4331672)
@bussiness_kid, thts the issue, I'm having trouble cross compiling ghostscript. But m facing problems in that, I found that during the make process, an executablee was generated, which aided in further processing, but since during cross compiling we're getting ELF ARM executables, hence it the build process comes to a halt.

Let's fix this bit and the rest may follow. I would expect elf arm executables in your case. That's what you get when you compile C code. What do you want - Java?
There is a Java compiler, but it compiles java; Cups is in C.

I would also say unless you need a network capable scheduler, cups is overkill.


All times are GMT -5. The time now is 06:00 AM.