cancel
Showing results for 
Search instead for 
Did you mean: 

NFS and rpcbind issue

vincent-kali
Star Contributor
Star Contributor
Hi,
I'm facing an issue when trying to enable NFS on Alfresco 5.0d, running on Debian 7.
It seems that JAVA is not allowed to register RPC service on local rpcbind service.
I'm using the following config:


nfs.enabled=true
nfs.user.mappings=admin,user1
nfs.user.mappings.value.admin.uid=0
nfs.user.mappings.value.admin.gid=0
nfs.nodeMonitor.enabled=${nfs.enabled}
nfs.mountServerPort=2050
nfs.nfsServerPort=2049
nfs.rpcRegisterPort=0
nfs.portMapperPort=111
nfs.portMapperEnabled=false
nfs.sessionDebug=
nfs.mountServerDebug=true


Here's the log:


DEBUG [nfs.protocol.auth] [localhost-startStop-1] Added RPC user mapping for user admin uid=0, gid=0
DEBUG [nfs.protocol.auth] [localhost-startStop-1] Added RPC user mapping for user user1 uid=1002, gid=1002
INFO  [org.alfresco.fileserver] [localhost-startStop-1] Filesystem cluster cache not enabled
INFO  [org.alfresco.fileserver] [localhost-startStop-1] CIFS Host announcements not enabled
INFO  [org.alfresco.fileserver] [localhost-startStop-1] Win32 host announcements not enabled
INFO  [org.alfresco.fileserver] [localhost-startStop-1] CIFS server started
INFO  [org.alfresco.fileserver] [localhost-startStop-1] FTP server NOT started
INFO  [org.alfresco.fileserver] [localhost-startStop-1] NFS server started
INFO  [alfresco.nfs.server] [localhost-startStop-1] Starting server Mount …
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [Mount] RPC Server registration failed for [100005:1,UDP,35753]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a3f,Denied,AuthError, Status=1]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [Mount] RPC Server registration failed for [100005:3,UDP,35753]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a42,Denied,AuthError, Status=1]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [Mount] RPC Server registration failed for [100005:1,TCP,60427]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a43,Denied,AuthError, Status=1]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [Mount] RPC Server registration failed for [100005:3,TCP,60427]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a44,Denied,AuthError, Status=1]
INFO  [alfresco.nfs.server] [localhost-startStop-1] Starting server NFS …
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [NFS] RPC Server registration failed for [100003:3,UDP,2049]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a6c,Denied,AuthError, Status=1]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1] [NFS] RPC Server registration failed for [100003:3,TCP,2049]
DEBUG [org.alfresco.fileserver] [localhost-startStop-1]   Response:[T127.0.0.1:111-Reply,XID=0xf39f0a6c,Denied,AuthError, Status=1]
INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete


Did somebody face similar issue ? Any advice ?
Thanks,
Vincent
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
What happens if you specify a non zero value for nfs.rpcRegisterPort=0

Who are you running as?  In particular are you allowed to bind to privileged ports?

I tried to specify a high port (nfs.rpcRegisterPort=50001) but error remains.
Alfresco is started as root (I think this is required, isn't it ? )

Should I dig into JAVA config? any other idea ?

Thanks,
Vincent