cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS troubleshooting

paulhh
Champ in-the-making
Champ in-the-making
If you cannot map a drive to the Alfresco CIFS server then it's likely a name lookup problem. Check whether you are using WINS or broadcast lookups on your LAN. If you're using broadcasts, is your network split into more than one subnet?  Did you change the broadcast mask setting in the file-servers.xml configuration file?  Do you use NetBIOS name scopes on your LAN? (nbtstat -n should show if a scope id is set).

If a PC cannot access the Alfresco CIFS server you could try adding an entry to the lmhosts file (in windows\system32\drivers\etc), there's usually a sample file in that folder, you may need to create the file. Then try and access the CIFS server using Start->Run and enter \\<Alfresco servername>.

You could also try doing some name lookups using nbtstat, again from any of the PCs that are having trouble accessing the server. If you try the following commands to see which are successful :-

  nbtstat -a <Alfresco server name>
  nbtstat -A <server ip address>
  nbtstat -a <Windows server name>
73 REPLIES 73

jhuie
Champ in-the-making
Champ in-the-making
Have you enabled NetBIOS on the Vista client machines? Don't ask me how that's done.

Yes, I just enabled that….and it does the same thing.  Just for interest sake…here's how to enable NetBIOS under Vista:

1.Click Start, and then click Network. (Or you can click Start, type ncpa.cpl into the search box, and press ENTER).
2.Click on the Network and Sharing Center, and then click Manage Network Connections.
3.Right click on the Local Area Connection or the connection you are using.
4.Select the Internet Protocol version 4 (TCP/IPv4)
5.Click the Advanced button under the General tab.
6.Click the WINS tab.
7.Click the Enable NetBIOS Over TCP/IP button.
8.Click Ok.

jhuie
Champ in-the-making
Champ in-the-making
This is maddening.  Has anyone out there successfully installed CIFS and gotten it working on Windows with version 3.2?  The only thing I can think of is that I changed the port number from 8080 to 80.  So I hope that I have located all the places in configuration files where those are hard coded and fixed them.  Maybe I missed something out there though.  This has been 8 hours straight of tinkering trying to get this to work.

norgan
Champ in-the-making
Champ in-the-making
Hi there,
my system runs perfectly fine both under linux and under windows. Regarding the standard ports - did you change the port from 8080 to 80, then you have to make sure you caught every configline, using ports. Or did you just make a redirect from 80 to 8080 ? would leave the "rest" intact. One test is a standard test for me, though, trying to resolve the name <servernameA> on the commandline - otherwise extending the /etc/hosts file.

Norgan

johnl2009
Champ in-the-making
Champ in-the-making
I have to volunteer my lacking success with CIFS/SMB as well.  CIFS is not working at all for me.  I'm getting network path not found.  I've checked the Windows Shares, there aren't any.  I've checked nbtstat, nothing alfresco related is listed.  I've tried browsing to \\cmsserver_a\alfresco , \\cmsserver\alfresco, and \\127.0.0.1\alfresco, and nothing is recognized (all say network provider not found, or no network provider accepted the given path)

Initially I tried following along with this YouTube guide http://www.youtube.com/watch?v=XXR4YqzoC7A only to find that the files he was referring to weren't where they were supposed to be.  When that didn't work, I started scouring the forums.  I've looked over everything that appears to be possibly relevant, and tried most of it, but with no luck.

I'm running 3.2 Community under Server 2003 Enterprise x64.  Here's what I've done so far:

I've copied the two DLLs from c:\alfresco\bin to c:\windows\syswow64 and rebooted.

In catalina(timestamp).log I have no errors.

Under C:\Alfresco\tomcat\shared\classes\alfresco\extension I have file-servers-custom.xml which contains the following:

<alfresco-config area="file-servers">

   <!– To override the default Alfresco filesystem use replace="true", to –>
   <!– add additional filesystems remove the replace="true" attribute     –>
  
   <config evaluator="string-compare" condition="Filesystems" replace="true">
     <filesystems>
       
         <!– Alfresco repository access shared filesystem –>
         <filesystem name="${filesystem.name}">
            <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>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>

         <!– Mark locked files as offline –>
          <offlineFiles/>

         <!– Desktop actions –>
         <!– Uses a client-side application to trigger a server-side action                         –>
         <!–   Echo - displays a message echoed from the server                                     –>
         <!–   URL  - launches a URL via the Windows shell                                          –>
         <!–   CmdLine - launches the Notepad application                                           –>
         <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>
         <!–   JavaScript - run a server-side script                                                –>
         <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>
         <!–                   to avoid having to logon                                             –>

            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>
               <name>Echo</name>
                 <filename>__AlfrescoEcho.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>
               <name>URL</name>
                 <filename>__AlfrescoURL.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>
               <name>CmdLine</name>
                 <filename>__AlfrescoCmd.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScript</name>
               <filename>__AlfrescoScript.exe</filename>
               <script>alfresco/desktop/dumpRequest.js</script>
               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
               <preprocess>confirm, copyToTarget</preprocess>
            </action>
            </desktopActions>

         <!– Additional access control of the filesystem –>
         <!– Access type of 'none' will stop the filesystem from showing up for that user/address/protocol –>          
            <!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="192.168.1.0" mask="255.255.255.0" access="Write"/>
            </accessControl>
            –>
         </filesystem>
        
         <!– AVM virtualization view of all stores/versions for WCM –>
         <!– virtual view can be any of the following: normal, site, staging, author, preview –>
         <avmfilesystem name="AVM">
            <virtualView stores="site,staging,author"/>
         </avmfilesystem>
        
      </filesystems>
   </config>
</alfresco-config>

Under C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco I have file-servers.xml which contains the following:

<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
      <serverEnable enabled="${cifs.enabled}"/>
     
      <host name="cmsserver" domain="cmsserver"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.0</broadcast>
     
      <!– Set to the IP for the adapter for Java socket –>
      <bindto>${cifs.bindto}</bindto>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB ipv6="${cifs.ipv6}" platforms="linux,solaris,macosx"/>
      <netBIOSSMB bindto="${cifs.bindto}" 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" ipv6="${cifs.ipv6}" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
      –>

      <!– Announce the server to the workgroup/domain –>
      <!– Use enabled="false" attribute to disable announcements –>     
     <!– <hostAnnounce interval="5" enabled="${cifs.hostannounce}"/>   –>
      <hostAnnounce interval="5" enabled="false"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>

      <!– Announce the server to the workgroup/domain –>
      <!– Use enabled="false" attribute to disable announcements –>             
      <!– <Win32Announce interval="5" enabled="${cifs.hostannounce}"/> –>
     <Win32Announce interval="5" enabled="false"/>
    
    
      <!– CIFS authentication –>
      <!– Available types are 'alfresco', 'passthru' and 'enterprise' –>
      <authenticator type="alfresco"/>
     
      <!– CIFS Passthru authentication sample –>
      <!– Also see the <DomainMappings> config in the 'Filesystem Security' section below –>
      <!–
      <authenticator type="passthru">
        <Server>ALFRESCO\adsrv1,ADOMAIN\adsrv2,adsrv1</Server>
        <protocolOrder>TCPIP,NetBIOS</protocolOrder>
        <offlineCheckInterval>60</offlineCheckInterval>
      </authenticator>
      –>
     
      <!– CIFS Enterprise authentication sample with Kerberos –>
      <!–
      <authenticator type="enterprise"/>
         <KDC>192.168.1.240</KDC>
         <Realm>WIN2003.ALFRESCO.ORG</Realm>
         <Password>password</Password>
         
         <kerberosDebug/>
      </authenticator>     
      –>
     
      <!– Disable the use of asynchronous sockets/NIO code –>
      <!–
      <disableNIO/>
      –>
     
      <!– Disable the use of JNI code –>
      <!– Only currently affects Windows –>
      <!–
      <disableNativeCode/>
      –>
     
      <!– Session timeout, in seconds –>
      <!– Defaults to 15 minutes, to match the default Windows client setting        –>
      <!– If no I/O is received within that time the session is closed by the server –>
      <!–
      <sessionTimeout>300</sessionTimeout>
      –>
     
      <!– Enable WINS if used for NetBIOS name lookups –>
      <!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
      –>
     
      <!– CIFS server debug settings –>
      <!– Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file –>
      <!–
      <sessionDebug flags="Negotiate,Socket"/>
      –>
   </config>

   <config evaluator="string-compare" condition="FTP Server">
      <serverEnable enabled="${ftp.enabled}"/>
     
      <!– Run on a non-privileged port –>
      <!–
      <port>1121</port>
      –>

     <!– IPv6 support –>
     <IPv6 state="${ftp.ipv6}"/>
    
      <!– FTP authentication –>
      <!– Available types are 'alfresco' and 'passthru' –>
      <authenticator type="alfresco"/>
           
      <!– FTP server debug settings –>
      <!– Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file –>
      <!–
      <debug flags="File,Search,Error,Directory,Info,DataPort"/>
      –>
   </config>
  
   <config evaluator="string-compare" condition="NFS Server">
      <serverEnable enabled="${nfs.enabled}"/>

      <!– Map NFS user/group ids to Alfresco users –>     
      <rpcAuthenticator>
         <userMappings>
            <user name="admin" uid="0" gid="0"/>
         </userMappings>
      </rpcAuthenticator>
   </config>
   
   <config evaluator="string-compare" condition="Filesystems">
      <filesystems>
         
         <!– Alfresco repository access shared filesystem –>
         <filesystem name="${filesystem.name}">
            <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>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>

            <!– Mark locked files as offline –>
            <offlineFiles/>

            <!– Desktop actions –>
            <!– Uses a client-side application to trigger a server-side action                         –>
            <!–   Echo - displays a message echoed from the server                                     –>
            <!–   URL  - launches a URL via the Windows shell                                          –>
            <!–   CmdLine - launches the Notepad application                                           –>
            <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>
            <!–   JavaScript - run a server-side script                                                –>
            <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>
            <!–                   to avoid having to logon                                             –>
            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>

               <!– Other desktop actions which may be enabled –>
               <!–
                <action>
                    <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>
                    <name>Echo</name>
                    <filename>__AlfrescoEcho.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>
                    <name>URL</name>
                    <filename>__AlfrescoURL.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>
                    <name>CmdLine</name>
                    <filename>__AlfrescoCmd.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                    <name>JavaScript</name>
                    <filename>__AlfrescoScript.exe</filename>
                    <script>alfresco/desktop/dumpRequest.js</script>
                    <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
                    <preprocess>confirm, copyToTarget</preprocess>
                </action>
                –>                             
            </desktopActions>

            <!– Additional access control of the filesystem –>
            <!– Access type of 'none' will stop the filesystem from showing up for that user/address/protocol –>             
            <!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="192.168.1.0" mask="255.255.255.0" access="Write"/>
            </accessControl>
            –>
         </filesystem>
          
           <!– AVM virtualization view of all stores/versions for WCM –>
           <!– virtual view stores filter can be any of the following: normal, site, staging, author, preview –>
         <avmfilesystem name="AVM">
            <virtualView stores="site,staging,author"/>
         </avmfilesystem>
          
      </filesystems>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <!– Domain mappings used for passthru authentication routing              –>
      <!– Used when the client does not provide a domain name in the NTLM logon –>
      <!–
      <DomainMappings>
          <Domain name="ALFRESCO" subnet="192.168.1.0" mask="192.168.1.255"/>
      </DomainMappings>
      –>
     
      <!– Custom share mapper when multi-tenancy is enabled –>
      <!–
      <shareMapper type="multi-tenant">
        <debug/>
      </shareMapper>
      –>
     
      <!– Global access control list                                                                    –>
      <!– Applied to all filesystems that do not have an <accessControl> block                          –>
      <!– Access type of 'none' will stop the filesystem from showing up for that user/address/protocol –>             
      <!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="192.168.1.2" access="Write"/>
      </globalAccessControl>
      –>
   </config>

</alfresco-config>

Under C:\Alfresco\tomcat\shared\classes\alfresco\extension I have custom-vti.properties which contains the following:
vti.server.port=7070
vti.alfresco.deployment.context=/alfresco
vti.alfresco.alfresoHostWithPort=http://cmsserver:8080
vti.share.shareHostWithPort=http://cmsserver:8080
vti.share.shareContext=/share
vti.share.siteInBrowser=/page/site/…/dashboard
vti.share.siteSettings=/page/site/…/customise-site
vti.share.siteGroupMembership=/page/site/…/site-members
vti.share.userInformation=/page/user/…/profile
vti.share.documentLibrary=/page/site/…/documentlibrary
vti.share.documentDetails=/page/site/…/document-details

( Can someone confirm that line 2 is supposed to be vti.alfresco.alfresoHostWithPort  withOUT the c in alfresco?  This is stock - was not modified. )

Even though I've edited the variables to not use cmsserver_a for the share, I've added the IP entries into the hosts file.

Where have I gone wrong?  What am I missing here?  Any help or suggestions would be appreciated.

dward
Champ on-the-rise
Champ on-the-rise
file-servers-custom.xml and custom-vti.properties are not used by Alfresco v3.2.

You put all your settings in $TOMCAT_HOME/shared/classes/alfresco-global.properties.

The settings for the file server subsystem are documented here.

http://wiki.alfresco.com/wiki/File_Server_Subsystem

However, you shouldn't have to do much fiddling - it should 'just work' out of the box, provided you have nothing already listening on the ports that the Alfresco SMB server is trying to listen on.

Now that's the tricky part on newer Windows versions. Follow all the advice on the troubleshooting section to disable the native SMB services running on the Windows server. And a recent tip given here suggests that you disable file and print sharing.

http://forums.alfresco.com/en/viewtopic.php?f=9&t=21184&p=70033#p70033

ashokkari
Champ in-the-making
Champ in-the-making
Hi ,

I deployed the website from the alfresco community version 3.2,,

it deployed successfully, but no where tells that how i can access the published web site,

please help me .

Thanks

jabraham
Champ in-the-making
Champ in-the-making
Hi all.  On Mac OS X with Alfresco 3.2 I was able to get CIFS working by disabling windows file sharing and printer sharing in System Preferences (so that OS X doesn't grab the SMB ports) and running Alfresco as root (sudo ./alf_start.sh)

I can access the server either by IP smb://admin@192.168.90.125/alfresco on OS X \\admin@192.168.90.125\alfresco on windows or by servername \\alfrescoA\alfresco or smb://alfrescoA/alfresco .

However I can't get the machine to show up in the network browser.  So obviously I'm doing the broadcast thing wrong.  We have no WINS server or anything like that, all the (other) machines just show up because they're broadcasting their presence.

Also I'm obviously not doing the url.prefix correctly, because the __Alfresco.url pseudo-files don't link to anywhere useful, just to a login page that doesn't seem to work.

I didn't mess with any .xml files, apparently in 3.2 you only need to change the alfresco-global.properties file.  Here it is

cifs.enabled=true
cifs.serverName=alfrescoA
cifs.hostannounce=true
cifs.domain=
cifs.broadcast=192.168.90.255
cifs.localname=${localname}A
cifs.urlfile.prefix=http://${localname}:8080/alfresco/

I figured out what cifs.serverName=alfrescoA does, it's what allows me to use \\alfrescoA\alfresco instead of \\192.168.90.125\alfresco

I can't figure out what cifs.localname does.

I can see that cifs.urlfile.prefix changes the start part of the __Alfresco.url links, but the remaining part (/navigate/browse/workspace/SpacesStore…) doesn't link to anything useful.

Can anyone help?  Please and TIA.

dinobe
Champ in-the-making
Champ in-the-making
I'm completely with johnl2009. I have installed also the 3.1 enterprise edition and I'm slowly going insane. All the mentioned files in the youtube video are not there.

Anyway to keep it short:
there is no alfresco-global.properties in $TOMCAT_HOME/shared/classes/alfresco-global.properties
there is no custom-vti-context.xml in c:\Alfresco\tomcat\webapps\alfrescp\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\
there is no custom-vti.properties in c:\Alfresco\tomcat\webapps\alfrescp\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\

there is a file called: c:\Alfresco\tomcat\shared\classes\alfresco\extension\file-servers-custom.xml.sample

I have installed Alfresco enterprise edition 3.1 on my local machine (windows XP) using MySQL 5.0. What is next to get to the share using CIFS?

neozone
Champ in-the-making
Champ in-the-making
I installed CIFS finished yet still have a problem. I installed Alfreesco 3.2 Community on Ubuntu 9.04 and when I try to use Map Network Drive on Windows XP by using machine name. It couldn't found. for example : my server machine name is Alfresco-new. so CIFS is \\ALFRESCO-NEWA\Alfresco
What should I do?

I also configure Alfresco-global.properties same as jabraham said.

harishns
Champ in-the-making
Champ in-the-making
Hi,
I built the alfresco from 3.2 source, as far as I know, the CIFS should be enabled by default, I am not finding any server logs and when I click view in CIFS, it says check your network address.
Please help me to setup CIFS
I am using Tomcat as server in Windows XP OS

Thanks