What does "find: cannot stat /some/file" mean?

What does "find: cannot stat /some/file" mean?

Post by Robert M » Wed, 10 May 1995 04:00:00



Lately, I've been getting this message from my system:

  Date: Tue, 9 May 1995 03:16:11 -0500
  From: Operator <root>
  To: root
  Subject: Output from "cron" command

  Your "cron" job

  find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune

  produced the following output:

  find: cannot stat /home/list/gate-tech: No such file or directory
  find: cannot stat /home/list/gate-announce: No such file or directory
  find: cannot stat /home/list/.bash_history: No such file or directory
  find: cannot stat /home/joes: No such file or directory
  find: cannot stat /home/cupid: No such file or directory
  find: cannot stat /home/bsim: No such file or directory
  ...

What does it mean?  Should I be worried?  Is there a solution?

Cheers,
Rob
_______________________________________________________________________
Robert S. Mah              Internet Access and          +1 212 947 6507

 
 
 

What does "find: cannot stat /some/file" mean?

Post by Robert M » Wed, 10 May 1995 04:00:00



) Lately, I've been getting this message from my system:
)
)   Date: Tue, 9 May 1995 03:16:11 -0500
)   From: Operator <root>
)   To: root
)   Subject: Output from "cron" command
)
)   Your "cron" job
)
)   find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
)
)   produced the following output:
)
)   find: cannot stat /home/list/gate-tech: No such file or directory
)   find: cannot stat /home/list/gate-announce: No such file or directory
)   ...
)
) What does it mean?  Should I be worried?  Is there a solution?

Just wanted to note that /home is mounted from a standard partition on
a local disk and that I get the same error for other files on other
partitions.

This is soooo strange...

Cheers,
Rob
_______________________________________________________________________
Robert S. Mah              Internet Access and          +1 212 947 6507


 
 
 

What does "find: cannot stat /some/file" mean?

Post by Michael Mcknig » Wed, 10 May 1995 04:00:00


It almost looks like you are manually putting items in /home
while you have the automounter running.

Make sure that if the automounter is running, you are putting
user home directories in /export/home.

Just a quick thought ;)

 
 
 

What does "find: cannot stat /some/file" mean?

Post by Syed Zaeem Hosa » Sun, 14 May 1995 04:00:00



>Lately, I've been getting this message from my system:

>  Date: Tue, 9 May 1995 03:16:11 -0500
>  From: Operator <root>
>  To: root
>  Subject: Output from "cron" command

>  Your "cron" job

>  find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune

>  produced the following output:

>  find: cannot stat /home/list/gate-tech: No such file or directory
>  find: cannot stat /home/list/gate-announce: No such file or directory
>  find: cannot stat /home/list/.bash_history: No such file or directory
>  find: cannot stat /home/joes: No such file or directory
>  find: cannot stat /home/cupid: No such file or directory
>  find: cannot stat /home/bsim: No such file or directory
>  ...

>What does it mean?  Should I be worried?  Is there a solution?

One of a few possibilities comes to mind (although it is not clear
whether these are correct):

1. This is on a running system, and some files got deleted after the
'find' started (but it had not yet "reached" /home). Usually not a
problem but in the above case, not being able to get access to
directories under /home could be troublesome. In your case, this is
probably not the problem since you appear to be seeing it often(?).

2. The /home directory in the root has had protections applied to
disallow root from accessing them - this *may* have other side effects
where the files in those directories below /home are not being backed
up (by other tools of course)!

3. The /home partition is an NFS mount and was dismounted after the
'find' started (again before it actually reached /home). This should
not be a problem per se since the files are on a remote system anyway.

4. The files under /home are nfs-mounted from another system, and they
should not be checked anyway, but the find command above should have
pruned them out from checking anyway - although I cannot remember if
'find' reports this message under those circumstances (I *thought* it
was silent about pruning).

                                                                Z

--
-------------------------------------------------------------------------
| Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |

-------------------------------------------------------------------------

 
 
 

What does "find: cannot stat /some/file" mean?

Post by Ken Herr » Wed, 17 May 1995 04:00:00


|)   find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
|)
|)   produced the following output:
|)
|)   find: cannot stat /home/list/gate-tech: No such file or directory
|)   find: cannot stat /home/list/gate-announce: No such file or directory
|)   ...
|Just wanted to note that /home is mounted from a standard partition on
|a local disk and that I get the same error for other files on other
|partitions.

Yeah, I know I'm a week later than everyone else...

Aside from the other possibilities mentioned, you get that message if the
names are symbolic links to files that don't actually exist.  Cd to
/home/list, type "ls -l" (don't specify any names) and see what ls prints
for those filenames.
--

 
 
 

What does "find: cannot stat /some/file" mean?

Post by RHATHA.. » Sun, 28 May 1995 04:00:00


Quoting Operator<root> from a message in comp.unix.admin,comp.sys.sun.admin
     I've had this same problem I think what usually cause this problem
for me is when find goes down a link and then back up to .. directory
find is lost and can not recover.
     The way I found a way around it was to use gnu find.

   > Your "cron" job
   > find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
   > produced the following output:
   > find: cannot stat /home/list/gate-tech: No such file or directory
   > find: cannot stat /home/list/gate-announce: No such file or directory
   > find: cannot stat /home/list/.bash_history: No such file or directory
   > find: cannot stat /home/joes: No such file or directory
   > find: cannot stat /home/cupid: No such file or directory
   > find: cannot stat /home/bsim: No such file or directory
   > ...
   > What does it mean?  Should I be worried?  Is there a solution?
   > Cheers,
   > Rob
   > _______________________________________________________________________
   > Robert S. Mah              Internet Access and          +1 212 947 6507

   > .

Robert Hathaway

Hard work has a future payoff.  Laziness pays off now.

Rainbow V 1.16.4 for Delphi - Test Drive