LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-29-2003, 03:13 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 355

Rep: Reputation: 30
CUPS runneth over


Installed CUPS on Slackware 9 not too long ago where
it was working perfectling with Cups-o-matic for printing
directly from Linux and also through Samba from a Win2K
client.

Today tried to print from Win2K, nothing happened so quickly
set debug2 in cupsd.conf and got:

Service must be printable!

Changed smb.conf to add 'printable = yes' to what already
existed:

printing = cups
printcap name = cups

Tried again and now I get:
Printer not connected; will retry in 30 seconds

Why is this happening? Anyone know?

TIA
 
Old 04-29-2003, 08:57 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
Your problem sounds like the cupsd daemon may not be running. Usually "/etc/rc.d/rc.cups start".

Have you checked to see if you can still print from the Linux box recently?

Did the Linux box queue the job or was it stuck at the Win box? On your last attempt, the message would indicate it is stuck at the Win box.

With Win2K there could also be security issues, but if Samba is set to "share" level rather then "user" then it shouldn't be an issue. Except write permission to queue the file in the spool directory.

If you have file/printer sharing enabled in Win2K then there could be master browser issues. You could try shutting down both boxes and then starting the Linux box first, followed by the Win box. Samba has settings that can be increased to raise the level when a master browser is challenged.

Perhaps some of the above will help identify your problem area. I haven't used Samba for quite awhile, so I am not that familar with any of the new options or problems. But I used to run a Win2K box that used Samba share level OK for files and printing.
 
Old 04-29-2003, 09:38 PM   #3
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 355

Original Poster
Rep: Reputation: 30
Your first instinct was apparently right. When I to print
directly from Linux I get a line in error_log:

perl: warning: Falling back to the standard locale ("C").
Printer not connected; will retry in 30 seconds

This entry repeats every 30 seconds until I cancel the
print job.

I don't understand, because the hardware connections
have been checked and are solid. lpstat -a (-t -r -s)
all work and say everything is OK. Yes, CUPS is running.


I am baffled now!
 
Old 04-29-2003, 09:46 PM   #4
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
You might want to review the cups log files in /var/log/cups. (Edit: That may be the error_log you mentioned.) You can also see if cups will print a test page correctly. Uninstall the printer in cups and then reinstall perhaps.

Last edited by Excalibur; 04-29-2003 at 09:48 PM.
 
Old 04-29-2003, 11:27 PM   #5
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 355

Original Poster
Rep: Reputation: 30
Here's an oddity;

If enter 'kill _HUP PID' using the cupsd PID cupsd is restarted
and all initialization files reread. Among other entries, in the
error_log, there are some 'LoadDevice' lines which look like:

D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "usb:/dev/usb/lp14"...
D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "http"...
D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "scsi"...
D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
D [29/Apr/2003:23:13:42 -0500] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...

A previous log file obtained when things were working
properly look like this:

D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "usb:/dev/usb/lp14"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "http"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "scsi"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "canon:/dev/lp0"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "epson:/dev/lp0"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "parallel:/dev/lp0"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
D [20/Apr/2003:00:00:00 -0500] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...

As you can see, there are a few devices missing and I
don't know why. I did recompile my kernel a few days
ago, but I didn't change anything related to printing.

Any suggestions?
 
Old 04-30-2003, 07:17 AM   #6
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
If you still have the prior kernel you boot that and see if the devices change. If it was a default kernel, that can be reloaded from the CD. If you were running the default kernel before then the printer port was a module. I think the module was parport or lp. You could use lsmod and see if the module is loaded.
 
Old 04-30-2003, 09:32 AM   #7
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 355

Original Poster
Rep: Reputation: 30
Thought you might recognize something right off the bat!

Actually, I had parallel-port support checked in my
make menuconfig; I just didn't have "PC-style hardware"
checked. Guess I did change something.

That made the difference.

Printing from Linux directly works fine and much to my
amazement, printing from the Win2K machine through
Samba also works.
 
  


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
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM
CUPS in SuSE <> Cups RH' Like? Tiago Cruz Linux - Hardware 0 02-13-2003 12:46 PM
cups-libs need to install cups illtbagu Linux - Newbie 3 01-23-2003 07:02 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration