cancel
Showing results for 
Search instead for 
Did you mean: 

cannot stat 'filename'

SOLVED
Go to solution
Duane Von Lanken
Occasional Contributor

cannot stat 'filename'

I have several files that are getting this error message 'cannot stat 'filename'. What can I do to retreive these files or clear the error message? What has happened to these files?
# find / -name PD-SPOOLER
find: cannot stat /var/adm/sw/products/DistributedPrint/PD-SPOOLER
# cd /var/adm/sw/products/DistributedPrint/
# ls -al
./PD-SPOOLER not found
4 REPLIES
harry d brown jr
Honored Contributor

Re: cannot stat 'filename'

Do you have any full filesystems, like /tmp, /, or /var? PD-SPOOLER isn't typically a special file, it's a directory with these files in it:

# cd /var/adm/sw/products/DistributedPrint/
# ll
total 10
drwxr-xr-x 2 root sys 96 Aug 13 15:07 PD-CLIENT
drwxr-xr-x 2 root sys 1024 Aug 13 15:07 PD-COMMON
drwxr-xr-x 2 root sys 1024 Aug 13 15:07 PD-ENG-A-MAN
drwxr-xr-x 2 root sys 1024 Aug 13 15:07 PD-JPN-E-MAN
drwxr-xr-x 2 root sys 1024 Aug 13 15:07 PD-JPN-S-MAN
drwxr-xr-x 2 root sys 96 Aug 13 15:07 PD-SERVCOMMON
drwxr-xr-x 2 root sys 96 Aug 13 15:07 PD-SPOOLER
drwxr-xr-x 2 root sys 1024 Aug 13 15:07 PD-SUPERVISOR
drwxr-xr-x 2 root sys 96 Aug 13 15:07 pfiles
# ls -l PD-SPOOLER/
total 12
-r--r--r-- 1 root sys 792 Aug 13 15:07 INDEX
-r--r--r-- 1 root root 2071 Aug 13 15:07 INFO
-r-xr--r-- 1 root sys 524 Aug 13 14:42 configure
-r-xr--r-- 1 root sys 493 Aug 13 14:42 preinstall
Live Free or Die
Sanjay_6
Honored Contributor

Re: cannot stat 'filename'

Hi Duane,

Normally the message Cannot stat is displayed when the system is unable to access the file, the read permission is unavailable to the system on this file.

Check the thread below for more info.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=ef9dabcc042654b6c7/screen=ckiDisplayDocument?docId=200000024644817

Thanks
Duane Von Lanken
Occasional Contributor

Re: cannot stat 'filename'

No full file system.
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 147541 79088 53698 60% /
/dev/vg00/lvol1 47829 19673 23373 46% /stand
/dev/vg00/lvol8 769536 508347 184235 73% /var
/dev/vg00/lvol7 1502713 446787 905654 33% /usr
/dev/vg00/lvol6 191989 13031 159759 8% /tmp
/dev/vg00/lvol5 2504465 1011793 1242225 45% /opt
/dev/vg00/lvol4 199381 140689 38753 78% /home
Santosh Nair_1
Honored Contributor
Solution

Re: cannot stat 'filename'

It could also be the case that the filessystem, i.e. /var is corrupt...you may want to consider running fsck on it. Unfortunately, you most likely will have to go into single user mode in order to umount /var.

-Santosh
Life is what's happening while you're busy making other plans