Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount failure, server: 10.13.148.82, export: /var/nfs, nfs version: 3, returned state: 13 #31

Open
javapenguin opened this issue Oct 3, 2019 · 2 comments

Comments

@javapenguin
Copy link

  • I installed a NFS server on Ubuntu Bionic Server.
  • Export the /var/nfs which I created.
  • Created a mount from my Ubuntu Bionic desktop.
  • The mount on my desktop works (10.13.148.82:/var/nfs 392287232 210137088 162153472 57% /home/gary/var/nfs) so I made the assumption the Java client should also work.

When I try to connect using EMC NFS Java Client to the same server using the same export I mounted on my desktop with the following code

Nfs3 nfs3 = new Nfs3(hostname, export, new CredentialUnix(), 3);

I get the following error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
mount failure, server: 10.13.148.82, export: /var/nfs, nfs version: 3, returned state: 13
com.emc.ecs.nfsclient.mount.MountException: mount failure, server: 10.13.148.82, export: /var/nfs, nfs version: 3, returned state: 13
    at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.lookupRootHandle(Nfs3.java:342)
    at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.prepareRootFhAndNfsPort(Nfs3.java:311)
    at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:258)
    at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:201)
    at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:228)
    at com.emc.ecs.nfsclient.nfs.io.FileReadingTest.testReading(FileReadingTest.java:104)
    at com.emc.ecs.nfsclient.nfs.io.FileReadingTest.main(FileReadingTest.java:53)

The error message is not very helpfull and I don't know where to even begin looking for the problem.

@oskarTeodor
Copy link

I think state 13 === permission denied.

@wuxincn
Copy link

wuxincn commented Jul 8, 2021

I got the similar problem in Centos. It is fixed by add "insecure" to info of related exported directory in file /etc/exports. More details can be found in https://stackoverflow.com/questions/58186427/emc-nfs-java-client-mountexception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants