GithubHelp home page GithubHelp logo

Comments (11)

MartinGrignard avatar MartinGrignard commented on June 19, 2024 1

Thanks for the link to #155. Since it evicted NFSRODS from the list of the suspects for the mounting error, I investigated other mounts inside containers.

It turns out mounting from within a container requires additional privileges. Adding the --privileged flag when running the test container solved the mounting issue.

Sorry for bringing this issue back to life.

from irods_client_nfsrods.

trel avatar trel commented on June 19, 2024

Do we just remove this line?

from irods_client_nfsrods.

anderbubble avatar anderbubble commented on June 19, 2024

from irods_client_nfsrods.

korydraughn avatar korydraughn commented on June 19, 2024

this may have been resolved. is anyone still seeing this message following recent releases?

from irods_client_nfsrods.

trel avatar trel commented on June 19, 2024

I thought I had seen it with 1.0.0... do you not?

from irods_client_nfsrods.

korydraughn avatar korydraughn commented on June 19, 2024

it didn't show up in my last test of nfsrods. i need to verify that though.

from irods_client_nfsrods.

trel avatar trel commented on June 19, 2024

confirmed with irods/nfsrods:1.0.0 as released...

2020-08-26 14:15:25.718 WARN  Thread-1 [OncRpcSvc] - Failed to register at portmap: portmap service not available

from irods_client_nfsrods.

korydraughn avatar korydraughn commented on June 19, 2024

Installing the rpcbind service and starting it fixes this issue. Fix coming in PR #114

from irods_client_nfsrods.

MartinGrignard avatar MartinGrignard commented on June 19, 2024

Hi 👋

We are trying to deploy this NFS client on our iRODS zone (currently my local test environment). All our services run in Docker containers, so I tried to run the Docker image as explained in the README.md.

When I start the container, here are the logs:

2024-04-09 13:27:24.965 INFO  Thread-1 [ServerMain] - Build Time    => 2024-04-09T07:45:07+0000
2024-04-09 13:27:24.965 INFO  Thread-1 [ServerMain] - Build Version => 2.2.0
2024-04-09 13:27:24.965 INFO  Thread-1 [ServerMain] - Build SHA     => 22028f190639e298c17a804df2a370bbb32b76e9
2024-04-09 13:27:25.134 INFO  Thread-1 [ServerMain] - main - Server config ==> {
  "nfs_server" : {
    "port" : 2049,
    "irods_mount_point" : "/testZone",
    "user_information_refresh_time_in_milliseconds" : 3600000,
    "file_information_refresh_time_in_milliseconds" : 1000,
    "user_access_refresh_time_in_milliseconds" : 1000,
    "object_type_refresh_time_in_milliseconds" : 300000,
    "user_permissions_refresh_time_in_milliseconds" : 300000,
    "user_type_refresh_time_in_milliseconds" : 300000,
    "list_operation_query_results_refresh_time_in_milliseconds" : 30000,
    "allow_overwrite_of_existing_files" : true,
    "using_oracle_database" : false
  },
  "irods_client" : {
    "host" : "provider.irods.local",
    "port" : 1247,
    "zone" : "testZone",
    "default_resource" : "backupResc",
    "ssl_negotiation_policy" : "CS_NEG_DONT_CARE",
    "connection_timeout_in_seconds" : 600,
    "proxy_admin_account" : {
      "username" : "rods",
      "password" : "*************"
    }
  }
}
2024-04-09 13:27:25.162 DEBUG Thread-1 [ServerMain] - configureClientServerNegotiationPolicy - Policy = CS_NEG_DONT_CARE
2024-04-09 13:27:25.316 DEBUG Thread-1 [IRODSIdMapper] - IRODSUser - iRODS mount point = /testZone
2024-04-09 13:27:25.316 DEBUG Thread-1 [IRODSIdMapper] - IRODSUser - Creating proxy for username [rods] ...
2024-04-09 13:27:25.671 DEBUG Thread-1 [IRODSIdMapper] - InodeToPathMapper - iRODS mount point = /testZone
2024-04-09 13:27:25.868 DEBUG Thread-1 [IRODSIdMapper] - establishRoot - Mapping root to [irods://[email protected]:1247/testZone] ...
2024-04-09 13:27:25.869 DEBUG Thread-1 [IRODSIdMapper] - map - mapping inode number to path [10004 => /testZone] ...
2024-04-09 13:27:25.869 DEBUG Thread-1 [IRODSIdMapper] - map - previously mapped path [null]
2024-04-09 13:27:25.870 DEBUG Thread-1 [IRODSIdMapper] - establishRoot - Mapping successful.
2024-04-09 13:27:34.142 WARN  Thread-1 [OncRpcSvc] - Failed to register at portmap: portmap service not available
2024-04-09 13:27:34.144 INFO  Thread-1 [ServerMain] - main - Press ctrl-c to shutdown.

After searching for a bit, I found the present issue and this commit. It seems that the modifications from this commit are not in the current repository.

I thus proceeded to add rpcbind to the list of the installed packages in the image, and service rpcbind start to the start.sh script. Then, the only difference in the logs are those two lines at the beginning:

ln: failed to create symbolic link '/run/sendsigs.omit.d/rpcbind': No such file or directory
Starting RPC port mapper daemon: rpcbind failed!

When I try to mount on another host/container using:

$ mkdir /irods
$ mount -v -o sec=sys,port=2049,nolock nfs.irods.local:/ /irods
mount.nfs: timeout set for Tue Apr  9 14:09:19 2024
mount.nfs: trying text-based options 'sec=sys,port=2049,nolock,vers=4.2,addr=172.20.0.4,clientaddr=172.20.0.5'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'sec=sys,port=2049,nolock,addr=172.20.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query retrying: RPC: Unable to receive
mount.nfs: prog 100003, trying vers=3, prot=17
mount.nfs: portmap query failed: RPC: Unable to receive - Connection refused
mount.nfs: Operation not permitted

Do you have any idea why this does not work? Is there a reason why these lines are not included in the sources anymore?

from irods_client_nfsrods.

korydraughn avatar korydraughn commented on June 19, 2024

The reason the changes in that commit for rpcbind aren't included is because of #155.

We bumped the OS image to Ubuntu 22.04 for NFSRODS v2.2.0. In all of my testing, the message about portmap never appeared to affect NFSRODS' operation.

We aren't sure what causes that message yet. For now, it has remained a low priority item since there's no evidence of it having a negative impact on usage.

As for the mount error, please explain your setup between computers, containers, and where the mount command is being run.

from irods_client_nfsrods.

korydraughn avatar korydraughn commented on June 19, 2024

Glad you got it working.

from irods_client_nfsrods.

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.