cancel
Showing results for 
Search instead for 
Did you mean: 

AVM mount from linux (cifs or nfs) has no files

sbzoom
Champ in-the-making
Champ in-the-making
Hello.
I have Alfresco 2.1.1E up and running on a linux machine and it looks good.  I want to be able to connect to the AVM filesystem from a linux machine but something is not working.  It works just fine when I go to \\10.4.4.34\avm from a windows machine.  But fails when I try to mount the AVM from another linux machine.


apache-tomcat/shared/classes/alfresco/extension/file-servers-custom.xml
<alfresco-config area="file-servers">
    <config evaluator="string-compare" condition="CIFS Server" replace="true">
        <serverEnable enabled="true"/>
        <host name="10.4.4.34" domain="alloy.inc"/>
        <!–<host name="${localname}A" domain="alloy.inc"/>–>
        <comment>Alfresco CIFS Server</comment>
        <!– Set to the broadcast mask for the subnet –>
        <broadcast>255.255.255.255</broadcast>
        <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
        <tcpipSMB platforms="linux,solaris,macosx"/>
        <netBIOSSMB platforms="linux,solaris,macosx"/>
        <!– Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports –>
        <!–
        <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
        <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
        –>
        <hostAnnounce interval="5"/>
        <!– Use Win32 NetBIOS interface on Windows –>
        <!–
        <Win32NetBIOS/>
        <Win32Announce interval="5"/>
        –>
        <WINS>
            <primary>10.4.9.10</primary>
            <!–<secondary>192.168.0.2</secondary>–>
        </WINS>
        <sessionDebug flags="Negotiate,Socket"/>
    </config>

    <config evaluator="string-compare" condition="FTP Server" replace="true">
        <serverEnable enabled="true"/>
        <!–<debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
    </config>

    <config evaluator="string-compare" condition="NFS Server" replace="true">
        <serverEnable enabled="true"/>
        <ThreadPool>8</ThreadPool>
        <PacketPool>50</PacketPool>
        <rpcAuthenticator>
            <userMappings>
                <user name="admin" uid="0" gid="0"/>
            </userMappings>
        </rpcAuthenticator>
    </config>

    <config evaluator="string-compare" condition="Filesystems" replace="true">
        <filesystems>
            <!– Alfresco repository access shared filesystem –>
            <filesystem name="Alfresco">
                <store>workspace://SpacesStore</store>
                <rootPath>/app:company_home</rootPath>
                <!– Add a URL file to each folder that links back to the web client –>
                <urlFile>
                    <filename>__AlfrescoClient.url</filename>
                    <!–<webpath>http://${localname}</webpath>–>
                    <webpath>http://10.4.4.34/</webpath>
                </urlFile>
                <!– Mark locked files as offline –>
                <offlineFiles/>
            </filesystem>

            <!– AVM virtualization view of all stores/versions for WCM –>
            <avmfilesystem name="avm">
                <virtualView/>
            </avmfilesystem>

        </filesystems>

    </config>

    <config evaluator="string-compare" condition="Filesystem Security" replace="true">
        <authenticator type="passthru">
            <Server>dns-server</Server>
        </authenticator>
    </config>
</alfresco-config>



/etc/fstab
#//10.4.4.34/avm         /media/alfresco/cifs/v  cifs    user=theuser,password=thepwd,rw        1 2
#//10.4.4.34/alfresco    /media/alfresco/spaces   cifs    user=theuser,password=thepwd,rw        1 2
10.4.4.34:/avm         /media/alfresco/cifs/v  nfs    defaults        1 2
10.4.4.34:/alfresco    /media/alfresco/spaces   nfs    defaults        1 2


Both of those types of mount points fail.  What is strange though is that the mount to "alfresco" works just fine.  And, as I said above, I can get to "avm" just fine from a windows machine.


> ll /media/alfresco/spaces
total 4
drwxrwxrwx  1 root root 512 Nov  9 15:26 Data Dictionary
drwxrwxrwx  1 root root 512 Nov  9 15:26 Guest Home
drwxrwxrwx  1 root root 512 Nov  9 15:26 User Homes
drwxrwxrwx  1 root root 512 Nov  9 15:27 Web Projects

> ll /media/alfresco/cifs/v
total 0

There are no errors in the logs.  Everything is "working",  But I can't see files.  Is it a permission thing?  I really can't think of what else to try.

Thanks a lot.


Charlie
3 REPLIES 3

dud
Champ in-the-making
Champ in-the-making
Hi. Have you got this stuff working now?

I'm also trying to do some CIFS mounts but I have problems only under Linux either….  Smiley Indifferent

I am also wondering another thing : do you know why you are having 777 as directories rights when mounting with cifs? Whereas when mounting whith smbfs you get normal rights (755)?

sbzoom
Champ in-the-making
Champ in-the-making
I have gotten it to work.  At least for my purposes.  I'm not sure about the 777 vs 755.  I hadn't actually checked on that.

Here is how I have it setup:

#/etc/fstab
//10.4.4.34/avm         /media/alfresco/cifs/v  cifs    user=admin,password=admin,rw        1 2
//10.4.4.34/alfresco    /media/alfresco/spaces   cifs    user=admin,password=admin,rw        1 2

So, do the mounting as "admin".  And, make sure "admin" has a sandbox in each web project.  If "admin" does not have a sandbox, your cifs mount will not see that particular web project at all.  Highly annoying.  It actually doesn't matter which user you do the mounting with, as long as that user has a sandbox in every web project.  Might as well be admin.

Charlie

rdanner
Champ in-the-making
Champ in-the-making
on a MAC
You should also be able to GO and mount with cifs://Localhost
and then change alfresco-virtserver.properties toL
#alfresco.virtserver.cifs.avm.versiontree.unix=/media/alfresco/cifs/v
alfresco.virtserver.cifs.avm.versiontree.unix=/Volumes/Localhost