1832459 Members
2935 Online
110043 Solutions
New Discussion

Print Queues

 
SOLVED
Go to solution
Qcheck
Super Advisor

Print Queues

Hi All,

When I tried to remove a print queue remotley(script) it errored out saying the couldn't remove the print queue. And when I tried to add the same print queue remotley(script) it says it exists. So when I tried to remove the print queue from the server itself, it says "Could not cancel jobs for fooprinter". And when I checked with lpstat there are no jobs. I checked from sam and found that the particular print queue was neither enabled to print nor accepting the requests. I mean to say, it neither says yes nor no for both "Enabled To Print" and "Accepting Requests".

Any ideas how I can fix this problem?

Thanks,
Pratibha
8 REPLIES 8
Shahul
Esteemed Contributor

Re: Print Queues

Hi,

Is your server is acting as a print server for remotely configured printers?

Regards
Shahul
Jeff Schussele
Honored Contributor
Solution

Re: Print Queues

Hi Pratibha,

I've seen this before.
You *must* stop the lpsched process before removing the printer...BUT....check to see whether you have 2 schedulers running.
Run ps -ef | grep lpsched and if there are two running stop one with lpshut & then kill the other. Then you should be good to go.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Qcheck
Super Advisor

Re: Print Queues

Hi Jeff,

I did check the number of lpsched processes and found only one process. Then I did lpshut of that one existing process. Then tried "removequeue -q -f". Still the same error, "Could not cancel jobs for ".

Any more ideas?

Thanks,
Pratibha

Qcheck
Super Advisor

Re: Print Queues

Hi Shahul,

This is not a print server, as far as I know. Is there anything I can check if it is a print server?

Thanks,
Pratibha
Jeff Schussele
Honored Contributor

Re: Print Queues

OK - then use:

lpadmin -xqueue_name

and see if that doesn't do it.
You may be behind on lp patches.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Qcheck
Super Advisor

Re: Print Queues

Jeff,

Lpadmin -x didn't work either. Says lpadmin: destination "" non-existent.

Thanks,
Pratibha
Jeff Schussele
Honored Contributor

Re: Print Queues

OK - check the perms on the following dirs:
/var/spool/lp
/etc/lp
/var/adm/lp
They should all be
755 lp:bin
If they're not - that could be your problem.
Then also check the following logs in /var spool/lp
lpana.log
lpd.log
for any clues

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Qcheck
Super Advisor

Re: Print Queues

Jeff,

The permissions on the files you listed were already 755. I checked the logs you mentioned and there is nothing in lpd.log regarding that print queue and lpana.log isn't there.

Thanks,
Pratibha