LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2011, 04:12 PM   #1
abhinit
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
Question 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...

Last edited by abhinit; 04-19-2011 at 05:33 PM. Reason: update
 
Old 04-20-2011, 02:53 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,878

Rep: Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427
Have you ghostscript, or some other txt--> ps conversion?
 
Old 04-21-2011, 09:40 AM   #3
abhinit
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
@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!
 
Old 04-22-2011, 03:19 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,878

Rep: Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427
Quote:
Originally Posted by abhinit View Post
@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.
 
  


Reply

Tags
arm, cups, embedded, printer driver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] postfix / squirrelmail How to configure to request plain text email garyrickert Red Hat 3 07-17-2010 07:28 AM
CUPS, and CUPS-PDF error when restarting, or starting process Predatorian Linux - Desktop 0 10-28-2009 09:21 AM
What would cause text-to-file and PDF to file printers on a cups system to stop? slinx Linux - Software 2 12-02-2008 09:32 AM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
Most Wanted postscript to plain text filter for cups pddm Linux - Software 1 08-07-2006 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration