On 22:13 28 May 2003, Jonathan Michael Nowacki <[EMAIL PROTECTED]> wrote:
|   Wow all I want to do is install tomcat and I'm running into every
| problem possible.  Right now this is what's going on.
| 
| error: failed to stat /mnt/chuck: Stale NFS file handle
| 
| Chuck is a remote computer at Indiana University.
| It occurs while I'm trying to install java with rpm -i, I tried killing
| it, but I cant find the process id because lsof only returns:
| 
| lsof: WARNING: can't stat() nfs file system /mnt/chuck
|       Output information may be incomplete.
| 
| I tried overmounting the file system but that didn't seem to work. 
| I used mount -O.
| 
| By way why would chuck (a remote computer) effect the installation of
| java? or is this another problem?  And yes, I am root.

A stale NFS file handle means that you machine has /mnt/chuck mounted, but
the fileystem that chuck is advertising to you has changed devices. Was
it perhaps a removable medium or has chuck been reinstalled?

Anyway, that NFS mount will be unusable from now on.  You must "umount
/mnt/chuck". This may not be possible. "umount -l /mnt/chuck" may do
the trick.

| Also certain
| permissions seem impossible to change.
| rpms $ rpm -iv --replacepkgs j2sdk-1_4_1_02-fcs-linux-i586.rpm 
| error: failed to stat /mnt/chuck: Stale NFS file handle
| Preparing packages for installation...
| j2sdk-1.4.1_02-fcs
| cp: cannot create regular file `/usr/local/man/man1/appletviewer.1':Permission denied
| cp: cannot create regular file `/usr/local/man/man1/extcheck.1':Permission denied
| cp: cannot create regular file `/usr/local/man/man1/idlj.1': Permissiondenied
[...]

Looks like /usr/local/man is not a local filesystem. Is it on an NFS mount?
The root account has no special powers over remote filesystems, only local ones.

| rpms $ rpm -e j2sdk-1_4_1_02-fcs-linux-i586.rpm 
| error: package j2sdk-1_4_1_02-fcs-linux-i586.rpm is not installed

The rpm install probably didn't complete because of the above errors.
It should have backed out what files did work before the error - did it?

| error: failed to stat /mnt/chuck: Stale NFS file handle

Chuck again.

| Also I went to /usr/local/man/man1/ and tried to change the permissions
| man1 $ chmod 777 jdb.1 
| chmod: changing permissions of `jdb.1': Read-only file system
| but nothing changes.

Ah, readonly. What does the "mount" command say about what's mounted and with
what flags?

The /mnt/chuck errors may be unimportant to your install issues.
Many programs (and the JDK is certainly one, as is pwd) must look up the
mount table in order to determine the current directory path because you
compute that by starting at "." and walking up the directory tree until
you hit a mount point, and then you consult the mount table to map that
into a path. The only way to match up the mount point with mount table
entries is to stat each mount point in the table until you get a match,
and so it's trying to stat /mnt/chuck during this process. Which is fine
provided you're not _in_ /mnt/chuck (which I doubt). So your permission
problems probably do not stem from your "Stale NFS file handle" problems,
and the NFS problem does not need to be fixed to do your install.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

The Government that robs Peter to pay Paul, can always count on Paul for
support.        - George Bernard Shaw


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to