LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-12-2005, 02:35 PM   #1
ProTrooper
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
CUPS Print Sever


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?
 
Old 09-12-2005, 03:18 PM   #2
mgmax
Member
 
Registered: Jul 2005
Location: Erlangen, DE
Distribution: Debian testing/unstable
Posts: 82

Rep: Reputation: 16
what does /var/log/cups/error_log report?

mgmax
 
Old 09-12-2005, 03:24 PM   #3
ProTrooper
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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!
How can I set the LogLevel to "debug"?
 
Old 09-12-2005, 03:35 PM   #4
mgmax
Member
 
Registered: Jul 2005
Location: Erlangen, DE
Distribution: Debian testing/unstable
Posts: 82

Rep: Reputation: 16
edit /etc/cups/cupsd.conf
search for Loglevel and edit it

most linux things are easier than you can imagine.

mgmax
 
Old 09-12-2005, 03:41 PM   #5
ProTrooper
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I think this is where the error occurs:
Code:
D [12/Sep/2005:03:39:43 -0400] [Job 9] PageLeft = 18.0, PageRight = 594.0
D [12/Sep/2005:03:39:43 -0400] [Job 9] PageTop = 756.0, PageBottom = 36.0
D [12/Sep/2005:03:39:43 -0400] [Job 9] PageWidth = 612.0, PageLength = 792.0
D [12/Sep/2005:03:39:43 -0400] [Job 9] /usr/lib/cups/filter/pstoraster: line 55: /usr/bin/gs: No such file or directory
D [12/Sep/2005:03:39:43 -0400] CloseClient: 8
D [12/Sep/2005:03:39:43 -0400] [Job 9] 0 %%EOF
D [12/Sep/2005:03:39:43 -0400] [Job 9] Saw EOF!
E [12/Sep/2005:03:39:43 -0400] [Job 9] No pages found!
E [12/Sep/2005:03:39:43 -0400] PID 19985 stopped with status 1!
 
Old 09-12-2005, 03:43 PM   #6
ProTrooper
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Aparently GhostScript is not installed.
 
Old 09-12-2005, 03:47 PM   #7
ProTrooper
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Okay it prints now. Thanks for the help!
 
Old 12-28-2005, 03:54 PM   #8
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 106
Blog Entries: 1

Rep: Reputation: 15
Question 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?

Any help gratefully received.
 
Old 12-29-2005, 04:52 PM   #9
mgmax
Member
 
Registered: Jul 2005
Location: Erlangen, DE
Distribution: Debian testing/unstable
Posts: 82

Rep: Reputation: 16
Why don't you just install ghostscript with the software installation tool of your distribution (I think for SuSe its Yast)?

Max
 
Old 12-30-2005, 11:02 AM   #10
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 106
Blog Entries: 1

Rep: Reputation: 15
Hi,

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.

Cheers

Tim.
 
  


Reply


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
cups do not print out props666999 Slackware 2 06-16-2005 08:54 AM
Using Cups, K apps won't print, but Abiword does print tigerflag Slackware 10 01-14-2005 09:34 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 03:59 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 09:31 AM
Print with cups rmdnet Linux - Software 0 05-21-2004 08:24 AM


All times are GMT -5. The time now is 12:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration