1834495 Members
2800 Online
110067 Solutions
New Discussion

Printer problems

 
SOLVED
Go to solution
jmckinzie
Super Advisor

Printer problems

I have a printer that is defined and appears to be accepting jobs. However, when a job is submitted, it simply just sits in the queue.
Any help would be great. Here is output from various commands.

# lpstat -t
scheduler is running
no system default destination
device for G1B013_J4: /dev/null

G1B013_J4 accepting requests since Dec 28 11:01


#lpstat

G1B013_J4-3 root priority 0 Mar 17 08:59 on G1B013_J4
(standard input) 207 bytes
8 REPLIES 8
Steve Steel
Honored Contributor

Re: Printer problems

Hi

t could be a corruption of file /var/spool/lp/outputq .
Preserve the print jobs, and then zero out outputq:

> /var/spool/lp/outputq .


Do lpshut
lpsched -v

Try again and look for more data in the printer log


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
jmckinzie
Super Advisor

Re: Printer problems

where is the printer log?
Rick Garland
Honored Contributor

Re: Printer problems

/var/spool/lp/log

If you stop/restarted the lp spooler, this log file will have been cleaned.

If the spooler was not stopped, then you should have some info in the file.
jmckinzie
Super Advisor

Re: Printer problems

It seems that when i look at the log, that it is starting the printer queue ever 20 seconds or so:

...
START:G1B013_J4-4 Fri Mar 17 14:18:48 EST
START:G1B013_J4-4 Fri Mar 17 14:19:08 EST
....

This is continously in the log.

Any ideas?

Thanks
Rick Garland
Honored Contributor

Re: Printer problems

This is a message saying a print job to printer G1B013_J4-4
is being submitted. Are there any 'End:' messages associated with the printer?

What does the lpstat -t say for this printer?
jmckinzie
Super Advisor

Re: Printer problems

Ok, i need some help.
The printer is defined...i can ping it...it is enabled.

Why can't I print to it?

TIA
Jody

# lpstat -t
scheduler is running
no system default destination
device for G1B013_J4: /dev/null

G1B013_J4 accepting requests since Dec 28 11:01
Steve Steel
Honored Contributor
Solution

Re: Printer problems

Hi

Find a printer that works

do

cd /var/spool/lp
find . -follow |grep printername|xargs ll -d

This lists all files and directories for the printer

Repeat for the non working printer and
check that the permissions and owners ar'e the same


Else
lpshut
lpsched -v

Print to the funny printer
check the log


If that is no goor /var/spool/lp/outputq is corrupt

Save any jobs that need printing
lpshut
> /var/spool/lp/outputq
lpsched

try again

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
jmckinzie
Super Advisor

Re: Printer problems

I have done everything as you directed....
I even moved the old outputq to outputq.old and restarted the scheduler.
Still, I get the same result.

I have also verified the permissions etc. with ones that work.

Any other ideas?

Thanks