Code Monkey home page Code Monkey logo

Comments (8)

twoholes avatar twoholes commented on July 21, 2024

I have printed the debug info , the func onGetAttr():
fs, path, err := userHandle.FromHandle(handle)
if err != nil {
return &NFSStatusError{NFSStatusStale, err} // this error happened
}

from go-nfs.

twoholes avatar twoholes commented on July 21, 2024

图片

from go-nfs.

willscott avatar willscott commented on July 21, 2024

The screenshot is showing the client attempting to talk NFS v4 rather than v3.

You may need something like -t nfs3 rather than nfsvers=3 on your platform

from go-nfs.

twoholes avatar twoholes commented on July 21, 2024

The screenshot is showing the client attempting to talk NFS v4 rather than v3.

You may need something like -t nfs3 rather than nfsvers=3 on your platform
hi,
Thank you for your answer, thank you.
Another question is:
mount use nfsv3, the client mount print like this:


mount.nfs: access denied by server while mounting 10.243.88.235:/public

the dir access is OK, I have set nobody:nobody.

the following is net dump:
图片

from go-nfs.

willscott avatar willscott commented on July 21, 2024

The response in the screenshot you highlight appears to be successful.

The screenshot only shows packets for the 'Mount' protocol, not for the 'NFSv3' protocol.

Is it possible that your client is not properly sending its NFSv3 requests also to the server? If it is trying to use a portmapper service, rather than sending messages to the server directly, it won't locate the port automatically.

from go-nfs.

twoholes avatar twoholes commented on July 21, 2024

sending

In the same server, I start NFS(default 2049) and rpcbind,then in the client I mount like this:

mount -t nfs -onfsvers=3,tcp,noacl 10.243.88.235:/public /share/

it returns OK.
But when I start nfs server with osview command, it happens "access denied by server " problem.

tcpdump NFS(2049):
图片

I am perplexed with the result from osview ..
I do just like the useage:
图片

from go-nfs.

twoholes avatar twoholes commented on July 21, 2024

Hi, willscott :
I try the deamon(osview) in centos7, it's OK.
also thank you for helping me.
maby client mount has some problem in rel6 ..

thank you

from go-nfs.

willscott avatar willscott commented on July 21, 2024

Perhaps you have a different option you need for the client in that version.
In the latest screenshot, you'll see that the 'NFSACL' protocol is used. That may mean you need a different option other than 'noacl' to disable that part of NFS from that client.

from go-nfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.