1834492 Members
3211 Online
110067 Solutions
New Discussion

Re: Spooler

 
Julio Yamawaki
Esteemed Contributor

Spooler

I need a help on spooler.

I'm getting the error:

lpstat: spool directory non-existent

when i'm trying to execute lpstat -t and my spooler stopped working.
19 REPLIES 19
Rita C Workman
Honored Contributor

Re: Spooler

Did /var/spool (and its subdir possibly) get deleted somehow??? or check it's permissions...are they right??

755 root sys /var/spool
755 lp bin /var/spool/lp

Just something to check,
Rita
Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

Have you got /var/spool/lp? What are the contents of it?

Pete

Pete
erics_1
Honored Contributor

Re: Spooler

Julio,

what are the permissions on /var/spool? Make sure the execute permission is set.

Regards,
Eric
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Thanks for all replies, but, everything appears to be ok.
The problem still remains...
Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

Could you please post the output of ll -d /var/spool, ll -d /var/spool/lp, and ll /var/spool?

Thanks,
Pete

Pete
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Pete:

ll -d /var/spool:
drwxr-xr-x 12 bin bin 1024 Jun 10 1996 /var/spool

ll -d /var/spool/lp:
drwxr-xr-x 4 lp bin 1024 Jan 8 17:00 /var/spool/lp

ll /var/spool:

total 12
dr-xr-xr-x 5 bin bin 96 Jan 12 2000 cron
drwxrwxr-x 2 uucp daemon 96 Jun 10 1996 locks
drwxr-xr-x 4 lp bin 1024 Jan 8 17:00 lp
drwxr-xr-x 2 bin bin 4096 Jan 8 17:02 mqueue
drwxr-xr-x 2 root sys 96 Jun 10 1996 pcnfs
drwxr-xr-x 2 root sys 96 Jun 10 1996 rexd
drwxr-xr-x 2 bin bin 96 Jun 10 1996 rwho
drwxrwxrwx 4 bin bin 96 Jun 10 1996 sockets
drwxr-xr-x 6 uucp daemon 1024 Jun 10 1996 uucp
drwxrwxrwx 2 bin bin 96 Jun 10 1996 uucppublic

erics_1
Honored Contributor

Re: Spooler

Julio,

Ownership on /var/spool needs to be --> root sys

Regards,
Eric
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Eric,

changed to root sys and still have the problem.
Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

Thanks, the only difference I see is thay my /var/spool is owned by root:sys but I don't think that would make any difference.

How about
/var/adm/lp
/etc/lp
/usr/lib/lp
?
Do they look OK?

Pete

Pete
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Pete:

See:
[arteb10] /var/adm/lp $ll /var/adm/lp
total 238
-rw-r--r-- 1 lp lp 0 Jan 8 15:44 log
-rw-rw---- 1 root sys 18431 Jan 8 15:43 log.xxx
-rw-r--r-- 1 root root 100719 Jan 8 16:58 lpd.log
-rw-r--r-- 1 lp lp 1782 Jan 7 11:04 oldlog
[arteb10] /var/adm/lp $ll /usr/lib/lp
total 4
drwxr-xr-x 2 lp bin 96 Jun 10 1996 cmodel
drwxr-xr-x 2 lp bin 96 Jun 10 1996 fonts
drwxr-xr-x 3 lp bin 2048 Jun 10 1996 model
drwxr-xr-x 2 lp bin 96 Jun 10 1996 smodel
[arteb10] /var/adm/lp $ll /etc/lp
total 4
drwxr-xr-x 2 lp bin 96 Jan 8 16:11 cinterface
drwxr-xr-x 2 lp bin 96 Jun 10 1996 class
drwxr-xr-x 2 lp bin 96 Jun 10 1996 info
drwxr-xr-x 2 lp bin 1024 Jan 8 16:10 interface
drwxr-xr-x 2 lp bin 1024 Jan 8 16:46 member
drwxr-xr-x 2 lp bin 96 Jan 8 16:12 sinterface

Everything appears to be ok..
So I don't understand why this spooler is not working.
erics_1
Honored Contributor

Re: Spooler

Julio,

Ok, my next question would then be...what changes have occurred on the system since this last worked? Any printer configuration changes or additions. The more detail you can provide, the better. What OS level are you running?

Thanks,
Eric
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Eric:

This happend suddenly about 2 hours ago.
My OS level is 10.20.
Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

Any other root users on the system? Anyone else who might have *accidentally* touched something?

Pete

Pete
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Pete:

there is another people who has the root password, but he wasn't logged in the system at that time.
Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

I'm grasping at straws, but how about restarting the spooler?

/usr/lib/lpshut
/usr/lib/lpsched


Pete

Pete
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Pete,
when I try to lpshut, the message is the same:

lpshut: spool directory non-existent

when I try to lpsched, nothing occurs.
Rita C Workman
Honored Contributor

Re: Spooler

OK...this may be worthless, but..

try typing in the full syntax to shutdown spooler -

/usr/sbin/lpshut

If the directory structure IS there...and the permissions and ownership on everything is right...the only thing I can think of is environment >>>

Just a thought,
Rita



Pete Randall
Outstanding Contributor

Re: Spooler

Julio,

Can you re-boot the box?

Pete

Pete
Julio Yamawaki
Esteemed Contributor

Re: Spooler

Ok, guys, I found the problem:

incorrect permission on /var.

I thanks all for the help and I'm going to assign some points for you.