Mongodb fails to restart with boost::filesystem::file_size: No such file or directory error

223 views
Skip to first unread message

RKR

unread,
Jun 11, 2014, 3:47:33 AM6/11/14
to mongod...@googlegroups.com
Hi,

    When trying to start MongDB it fails with the following exception. Please find the gist with backtrace. 
Kindly help me fix this.





Regards,
Rajesh.

William Zola

unread,
Jun 12, 2014, 12:39:52 AM6/12/14
to mongod...@googlegroups.com
Hi Rajesh!

More information is needed here.  Did you happen to store your data files on an NFS file system?  What's the output of 'mount -l' and 'df -h'?

 -William 

RKR

unread,
Jun 13, 2014, 1:47:41 AM6/13/14
to mongod...@googlegroups.com
Hi William,

Iam storing the data files on a NFS file system. Mongodb is stored in /export  

Please find the details of df -h

Filesystem                                              Size  Used Avail Use% Mounted on

rootfs                                                   52G  7.5G   42G  16% /
udev                                                    7.9G     0  7.9G   0% /dev
tmpfs                                                   1.6G  240K  1.6G   1% /run
/dev/disk/by-uuid/7c84613e-c27e-4bbb-8f54-2d71c8504edd   52G  7.5G   42G  16% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   3.2G   94M  3.1G   3% /tmp
/dev/sdb1                                               276G   66G  196G  26% /export

Regards,
Rajesh

William Zola

unread,
Jun 14, 2014, 2:53:29 PM6/14/14
to mongod...@googlegroups.com
Hi Rajesh!

Your problem is due to storing your data files on a NFS file system.  We strongly advise against this, since it can lead to data loss.

Is this installation a member of a replica set?  If you have another replica with the same data, you can sync this node from another member of the set and recover the data that way.

If there aren't any other members of the set that you can sync from, then you'll need to recover the data from the OS-level corruption.  


-William
Reply all
Reply to author
Forward
0 new messages