LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2020, 05:34 PM   #1
no_underscore
LQ Newbie
 
Registered: Jun 2020
Posts: 3

Rep: Reputation: Disabled
Error when getting information for file. Stale file handle. Ubuntu 18.04


Hey guys (and gals),

After having switched to Linux a few months ago I have recently been having some issues with my mounted drives from my server where in I will get this error from time to time:

Code:
Error when getting information for file "/mnt/atlantis": Stale file handle.
Not entirely sure about what specific conditions make this happen but mostly seems to be tied to when I write files to the server, though it does not seem to happen all the time. Whenever this does occur however I am still able to Cd into the mounted directory, but if I try to use Nautilus or some of my programs try to access the files on the mounted share they error out. Nautilus specifically is the one giving me the warning above about stale file handles.
Here is a quick example from the ll command in the /mnt directory showing one share that is still working normally and one that gives me the stale file handle issue:

Code:
d?????????  ? ?       ?       ?            ? atlantis/
drwxrwxrwx  2 root    root    0 Apr 15 17:51 command-center/
This seems to have started mainly after I changed my mount commands in my fstab file from:

Code:
//192.168.xx.xx/atlantis /mnt/atlantis cifs credentials=/home/username/.smbcredentials,iocharset=utf8,sec=ntlm,vers=1.0,file_mode=0777,dir_mode=0777,uid=username,gid=username 0 0
To:

Code:
//192.168.xx.xx/atlantis /mnt/atlantis cifs credentials=/home/username/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
I'll have to admit that while I have looked at the man page for all of the variables used in my original command I am not entirely confident I know how they affect the mount/how the work, which was one of the reasons I tried to simplify the command as well as not forcing my machine to communicate with the server over a SMB 1.0 protocol.

Hopefully this is still within the scope of this sub-forum.
Any advice, tips or pointers are greatly appreciated.

Thanks for the read!
Stay safe out there!
 
Old 06-30-2020, 07:41 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,418
Blog Entries: 28

Rep: Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167
Is the share on the server an NFS file system? If so, this might help: https://www.cyberciti.biz/tips/nfs-s...-solution.html

(The top links I found in a search for "Stale file handle" seemed to point to an NFS file system.)
 
Old 06-30-2020, 07:59 PM   #3
no_underscore
LQ Newbie
 
Registered: Jun 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Is the share on the server an NFS file system? If so, this might help: https://www.cyberciti.biz/tips/nfs-s...-solution.html

(The top links I found in a search for "Stale file handle" seemed to point to an NFS file system.)
Hmm, I am not well enough versed to say yes or no directly, maybe you could help me further is I may ask that of you?

The share is hosted on an Unraid box in my closet. Closest I could find was that the drives that my Unraid shares store stuff on is using the XFS file system, no idea if that is affiliated with NFS in any way?

Also something that might be important to note is that while I am primarily wanting to access these shares from my Linux machines as smoothly as possible, I do have a Windows laptop and would like for this machine to still work.
Not that your comment mentions anything about changing stuff server side, but just for future note

Thanks for the reply!
 
Old 06-30-2020, 08:46 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,839

Rep: Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972
Welcome to LinuxQuestions.

I am unfamiliar with Unraid but since it is a specialized paid for product you would probably get better help using their forums than LQ. I did find a thread on their site that indicated turning off cache drive seemed to fixed the problem.

https://forums.unraid.net/topic/8670...e-file-handle/

Last edited by michaelk; 06-30-2020 at 09:32 PM.
 
Old 06-30-2020, 09:31 PM   #5
no_underscore
LQ Newbie
 
Registered: Jun 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.

I am unfamiliar with Unraid but since it is a specialized paid for product you would probably get better help using their forums than LQ. I did find a thread on their site that indicated turning of cache drive seemed to fixed the problem.

https://forums.unraid.net/topic/8670...e-file-handle/
Thanks for that link, really not sure how I missed that...
Mostly posted here since I assumed it was something I had done wrong Linux side since I updated unRaid and changed my mount commands at the same time and that's when the problems started, and since it kept on working for my Windows laptop.
Guess it is an unRaid specific issue after all.

Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't read lock file tmp .x0-lock xinit: stale nfs file handle everal Slackware 2 10-31-2011 07:11 AM
"Stale NFS file handle" mount error on a non-NFS /boot partition after running lilo cabrilo Slackware 4 09-14-2010 09:00 AM
[SOLVED] dpkg fatal error unable to open files list file Stale NFS file handle cmr26 Linux - Software 5 09-06-2009 04:10 PM
Stale NFS file handle Error karthickmk2 Linux - Newbie 1 08-04-2009 06:40 PM
stale NFS file handle error hardian_97 Linux - Networking 0 10-02-2005 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration