Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have set up a public file server and I also want to enable it as a print server. I have connected it via USB and installed it over CUPS web interface.
The printer successfully installs but I am unable to print a test page. In completed jobs it states “aborted.” When I click “restart job” it gives me this: “client-error-not-possible”
In /var/log/messages:
Code:
kernel: 192.168.2.254 sent an invalid ICMP type 3, code 3 error to a broadcast: 192.168.2.255 on eth0
I went ahead to try to share it with Samba using standard printer settings but nothing showed up.
Code:
[Printers]
comment = All Printers
path = /var/spool/samba
browsable = Yes
public = Yes
guest ok = Yes
writable = No
printable = Yes
Any ideas on what could be wrong or how to troubleshoot?
This is from the last restart. You can see job 7 going through.
Code:
I [12/Sep/2005:01:58:45 -0400] Full reload complete.
I [12/Sep/2005:02:22:33 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=19901)
I [12/Sep/2005:02:22:36 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=19902)
I [12/Sep/2005:02:22:39 -0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=19903)
I [12/Sep/2005:02:32:44 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=19907)
I [12/Sep/2005:02:32:44 -0400] Adding start banner page "none" to job 7.
I [12/Sep/2005:02:32:44 -0400] Adding end banner page "none" to job 7.
I [12/Sep/2005:02:32:44 -0400] Job 7 queued on 'HP_LaserJet_1300' by 'root'.
I [12/Sep/2005:02:32:44 -0400] Started filter /usr/lib/cups/filter/pstops (PID 19908) for job 7.
I [12/Sep/2005:02:32:44 -0400] Started filter /usr/lib/cups/filter/pstoraster (PID 19909) for job 7.
I [12/Sep/2005:02:32:44 -0400] Started filter /usr/lib/cups/filter/rastertohp (PID 19911) for job 7.
I [12/Sep/2005:02:32:44 -0400] Started backend /usr/lib/cups/backend/usb (PID 19912) for job 7.
E [12/Sep/2005:02:32:44 -0400] PID 19909 stopped with status 127!
I [12/Sep/2005:02:32:44 -0400] Hint: Try setting the LogLevel to "debug" to find out more.
E [12/Sep/2005:02:32:44 -0400] PID 19911 stopped with status 1!
I [12/Sep/2005:02:32:44 -0400] Hint: Try setting the LogLevel to "debug" to find out more.
E [12/Sep/2005:02:32:44 -0400] [Job 7] No pages found!
I [12/Sep/2005:02:32:45 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=19913)
I [12/Sep/2005:02:32:47 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=19914)
I [12/Sep/2005:02:32:52 -0400] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=19915)
E [12/Sep/2005:02:32:52 -0400] restart_job: job #6 cannot be restarted - no files!
I have the same error - please give some more details of the solution
Hi,
I have the same problem as you described. I have got as far as investigating the log files with the "Hint: Have you installed Ghostscript" message.
I have tried a couple of installations of ghostscript, both generated compilation errors of one sort or another. So I am working my way back down the version levels to find one that compiles cleanly.
Which version of Ghostscript did you use?
So far I have access to the Localhost:631 configuration tool, and it claims to have installed my Epson Stylus Color 440 printer correctly. I send a test page and it just gets cancelled. When I try to restart the job I get the error:
"client-error-not-possible"
Did you just get ghostcript running and it worked fine, or was there some other command as well?
I started there - the SuSE set up would not work: I got the error: D [29/Dec/2005:17:44:22 +0000] SendError() 7 code=413 (Request Entity Too Large)when I tried to print documents.
I could not even install the printer. I tried to use the web based tool, but got it would not recognise the login. SuSE require you to use lppasswd, but that refused me access to the password file ("permission denied") even though I was root. I could find no real help on the web: lots of people seem to have a problem with CUPS, but their problems are different and nobody is publishing a useable HOW-TO.
I ripped out the SuSE installation and installed CUPS from scratch (version 1.1.23). That allowed me to use the web based tool and install the printer OK.
However, when I ran a test page it just got cancelled, the log files "hinted" that I install Ghostscript.
[29/Dec/2005:19:49:57 +0000] Unable to convert file 0 to printable format for job 1!
I [29/Dec/2005:19:49:57 +0000] Hint: Do you have ESP Ghostscript installed?
I [29/Dec/2005:19:49:57 +0000] Hint: Try setting the LogLevel to "debug".
I tried that (version 8.15.1), but got compilation errors - "no rule for png.c". In the end I started exploring the Makefile for Ghostscript. This mentioned that I needed to modify libpng.mak to take account of the actual installation directory for libpng. I got the libpng files from SuSE (shame I deleted them earlier!) and modified the libpng.mak file in my Ghostscript source directory: I set the PNGSRCDIR variable to the actual directory that rpm put the libpng files.
Ghostscript now compiled without errors, although there were dozens of warnings!
Now when I tried to print, the test page "aborted" instead of "cancelled". This was because CUPS could not create the spool file in the spool directory - "permission denied".
[Job 13] unable to open print file "/var/spool/cups/d00013-001" - Permission denied
I spent hours playing with different combinations of ownership and permissions for the spool directory and its parent. lp:lp, lp:sys, rwxrwxr-x, rwsrwsr-x etc. I finally gave up when I found that the cups daemon was changing the ownership back to root:lp rxwr-x--- whenever it restarted!
I amended cupsd.conf to run as root:root with RunAsUser Yes.
This solved the permission problem, but threw up an error: Error: /invalidfont in findfont
Job 18] ESP Ghostscript 815.01: Unrecoverable error, exit code 1
I found that I already had a set of ghostscript fonts on the system - from SuSE. So I inspected the Ghostscript makefile again and found that it was expecting the files to be in a very different directory to where they were on my system.
This is the line in the makefile:
GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts:/usr/local/share/fonts/default/ghostscript:/usr/local/share/fonts/default/Type1:/usr/local/share/fonts/default/TrueType:/usr/lib/DPS/outline/base:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType
I could not be bothered to recompile again so I moved the files to where Ghostscript was expecting them to be:/usr/local/.../ghostscript.
I restarted the daemon and this time it all worked. At the moment I can only print as root, but that is a minor issue for my installation. I can't face any more head banging over permissions.
Sorry for the rant: but I hope some of my experiences will help others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.