AnsweredAssumed Answered

NFS Authentication NullPointerException

Question asked by jmharris on Nov 20, 2009
Latest reply on Nov 30, 2009 by dakabali
Using Alfresco 3.2r (Tomcat bundle). Setting up NFS mount as per instructions.

Config is:

   <bean id="nfsServerConfig" class="org.alfresco.filesys.config.NFSConfigBean">
      <property name="serverEnabled">                                          
         <value>${nfs.enabled}</value>                                         
      </property>                                                              
      <property name="NFSServerPort"><value>12049</value></property>           
      <property name="mountServerPort"><value>1678</value></property>          

      <property name="debugFlags"><value>RxData,Search,Info,File,FileIO,Error,Directory,Timing,Session</value></property>
      <property name="portMapperDebug"><value>true</value></property>                                                   
      <property name="mountServerDebug"><value>true</value></property>                                                  

      <!– Map NFS user/group ids to Alfresco users –>
      <property name="rpcAuthenticator">              
         <bean class="org.alfresco.filesys.auth.nfs.AlfrescoRpcAuthenticator">
            <property name="userMappings">                                   
               <ref bean="nfs.user.mappings" />                              
            </property>                                                      
         </bean>                                                             
      </property>                                                            
   </bean>

Attempting to mount via:

exe-201:~# mount -v -o port=12049,mountport=1678,udp localhost:/alfresco /mnt/alfresco
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: internal error

Get a NullPointerException in the Alfresco debug.

13:21:52,994  DEBUG [nfs.protocol.auth] RpcAuth: Type=Unix uid=0, gid=0
13:21:52,994  DEBUG [nfs.protocol.auth] RpcAuth: RPC from U127.0.0.1:731, authType=Unix, sessKey=9151314447111815168
13:21:52,994  DEBUG [nfs.protocol.auth] RpcClientInfo: username=admin, uid=0, gid=0
13:21:52,994  DEBUG [nfs.protocol.auth] RpcAuth: Client info, type=Unix, name=exe-201, uid=0, gid=0, groups=1
13:21:52,994  DEBUG [org.alfresco.fileserver] [Mount] Mount request from U127.0.0.1:731 path=/alfresco
13:21:52,995  DEBUG [org.alfresco.fileserver] MountPath path=/alfresco
13:21:52,995  DEBUG [org.alfresco.fileserver] Mounted path=/alfresco, handle=[Share:0x65d1d071]
13:21:52,996  DEBUG [nfs.protocol.auth] RpcAuth: Type=Null client=/127.0.0.1
13:21:52,996  DEBUG [nfs.protocol.auth] RpcAuth: RPC from U127.0.0.1:1001, authType=Null, sessKey=2130706433
13:21:52,996  DEBUG [org.alfresco.fileserver] [NFS] Found session org.alfresco.jlan.oncrpc.nfs.NFSSrvSession@956740
13:21:52,996  DEBUG [org.alfresco.fileserver] [NFS] RPC Authencation Exception: java.lang.NullPointerException

Am I obviously doing something wrong or is this just a bug?

Outcomes