11-20-2009 08:24 AM
<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>
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
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
11-20-2009 08:29 AM
11-20-2009 09:04 AM
<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>
11-20-2009 11:03 AM
11-20-2009 01:05 PM
11-20-2009 02:21 PM
11-23-2009 05:42 AM
some more guidance/examples are required if something else is meant to be done
11-27-2009 08:15 AM
nfs.enabled=true
nfs.user.mappings=admin
nfs.user.mappings.value.admin.uid=0
nfs.user.mappings.value.admin.gid=0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="fileServerConfiguration" class="org.alfresco.filesys.config.ServerConfigurationBean" parent="fileServerConfigurationBase">
<property name="nfsConfigBean">
<ref bean="nfsServerConfig" />
</property>
<property name="filesystemContexts">
<ref bean="filesystemContexts" />
</property>
<property name="securityConfigBean">
<ref bean="fileSecurityConfig" />
</property>
</bean>
<!– NFS Server –>
<bean id="nfsServer" class="org.alfresco.filesys.NFSServerBean" destroy-method="stopServer">
<constructor-arg>
<ref local="fileServerConfiguration" />
</constructor-arg>
</bean>
<!–The configurable RPC user mappings - actually a post-processed composite property! –>
<bean id="nfs.user.mappings" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<bean class="org.alfresco.filesys.auth.nfs.UserMapping">
<property name="beanName">
<value>admin</value>
</property>
<property name="uid">
<value>0</value>
</property>
<property name="gid">
<value>0</value>
</property>
</bean>
</list>
</property>
</bean>
<bean id="nfsServerConfig" class="org.alfresco.filesys.config.NFSConfigBean">
<property name="serverEnabled"><value>true</value></property>
<property name="NFSServerPort"><value>51000</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>
<bean id="filesystemContexts" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<!– Alfresco repository access shared filesystem –>
<bean class="org.alfresco.filesys.repo.ContentContext">
<property name="deviceName">
<value>alfresco</value>
</property>
<property name="storeName">
<value>${spaces.store}</value>
</property>
<property name="rootPath">
<value>/${spaces.company_home.childname}</value>
</property>
</bean>
</list>
</property>
</bean>
</beans>
mount -v localhost:/alfresco /mnt/alfresco
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 51000
mount.nfs: mount to NFS server 'localhost' failed: timed out, retrying
mount.nfs: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 51000
… and so on.
13:01:28,593 DEBUG [nfs.protocol.auth] RpcAuth: Type=Null client=/127.0.0.1
13:01:28,595 DEBUG [nfs.protocol.auth] RpcAuth: RPC from T127.0.0.1:60988, authType=Null, sessKey=2130706433
13:01:28,597 DEBUG [nfs.protocol.auth] RpcAuth: Client info, type=Null, addr=127.0.0.1
13:01:28,597 DEBUG [org.alfresco.fileserver] [NFS] Added Null session 2130706433
13:01:28,598 DEBUG [org.alfresco.fileserver] [NFS] Found session org.alfresco.jlan.oncrpc.nfs.NFSSrvSession@1ad9f73
13:01:28,598 DEBUG [org.alfresco.fileserver] [NFS] RPC Authencation Exception: java.lang.NullPointerException
11-27-2009 08:30 AM
11-30-2009 09:40 AM
New issue is https://issues.alfresco.com/jira/browse/ALFCOM-3684
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.