cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS Connection Problem

bvadmin
Champ in-the-making
Champ in-the-making
Hello All,

Firstly thanks for your time to look at my rather big problem.

I know there are a lot of posts regarding the issue but I cannot see that relates to my problem.

Anyway we are an IT company that recently took over a client that uses Alfresco on a windows server, now they were on a workgroup and all working fine, we have had to move them over to a windows 2003 Domain so alfresco is now on a domain controller.  They use a Z drive on there workstation to map to "\\server_a\alfresco".  Now sometimes it works fine but during random times users cannot connect and the Z drive looses connection and then it will not remap, sometimes it cannot see the share and other times it will not accept the username and password.  All other shares and network resources work just fine during the Z drive outage.  User will then try again in lets say half an hour and it works again.

Makes no sense, I have included my Config if that helps, I have never seen Alfresco before so please accept my apologies for my lack of understanding. Oh we are running version 2.2 (I think lol)

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

   <config evaluator="string-compare" condition="CIFS Server">
      <host name="${localname}_A" domain="abcxyz"/>
      <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"/>
      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

   <config evaluator="string-compare" condition="FTP Server">
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>
  
   <config evaluator="string-compare" condition="Filesystems">
     <filesystems>
         <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}: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.smb.server.repo.desk.EchoDesktopAction</class>
               <name>Echo</name>
                 <filename>__AlfrescoEcho.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>
               <name>URL</name>
                 <filename>__AlfrescoURL.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>
               <name>CmdLine</name>
                 <filename>__AlfrescoCmd.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
               <name>CheckInOut</name>
                 <filename>__AlfrescoCheckInOut.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.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>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScriptURL</name>
               <filename>__AlfrescoDetails.exe</filename>
               <script>alfresco/desktop/showDetails.js</script>
               <attributes>anyFiles</attributes>
               <preprocess>copyToTarget</preprocess>
            </action>

         </desktopActions>
–>         
                   
<!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
            </accessControl>
–>
         </filesystem>
      </filesystems>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="alfresco">
      </authenticator>

<!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="90.1.0.90" access="Write"/>
      </globalAccessControl>

      <users>
         <localuser name="user">
            <password>user</password>
            <comment>Normal user account</comment>
         </localuser>
   
         <localuser name="administrator">
            <password>admin</password>
            <administrator/>
            <comment>Administrator account</comment>
         </localuser>
      </users>
–>
   </config>


</alfresco-config>
13 REPLIES 13

norgan
Champ in-the-making
Champ in-the-making
Hi there,
first of all - I shudder reading "alfresco runs on a domain controller". I think its one of the first "best practices" mentioned by MS not to use a domain controller for other "big" stuff. If needs be, set up a secondary controller as Vm and run Alfresco Vm and Controller VM parallel on a host.

secondly - check out, if name resolution does still work during these times. Try hardcoding the server_a mapping in WINS and DNS files, provided by your DHCP server.

bvadmin
Champ in-the-making
Champ in-the-making
Thanks for the suggestion,

It is on a second domain controller  Smiley Happy , I have tried adding the hostname to DNS with still no joy.

Thanks for the help anyway

bvadmin
Champ in-the-making
Champ in-the-making
Bump…

bvadmin
Champ in-the-making
Champ in-the-making
That's great thanks for the help everybody……….NOT

bvadmin
Champ in-the-making
Champ in-the-making
ok I have found my problem and fixed it, my question is does anybody need any help with the same problem?

I refuse to write a long reply if nobody is interested!

mmynsberghe
Champ on-the-rise
Champ on-the-rise
Hi,

I'm sorry nobody could help you out, some questions are quickly answered here, others remain unanswered unfortunately  Smiley Sad
We are experiencing similar problems, sometimes Cifs works, sometimes it doesn't
I could find any solution yet and so I would appreciate any advice you want to share

Kind regards
Mieke

mho_
Champ in-the-making
Champ in-the-making
Sorry, i havo no time to translate it, but this kind of configuration works with ubuntu 9.04

CIFS, es el protocolo SAMBA (SMB) para equipos Windows, en Alfresco se puede configurar para tener acceso todos los documentos existentes en los nodos y manejarlos como si se tratara de una carpeta local, permitiendo renombrar, cortar, pegar y todas las acciones propias del explorador de Windows pero con el repositorio de Alfresco, para poder configurarlo es necesario tener libres los puertos que utiliza samba por defecto, que son los siguientes:

-445
-137
-138
-139

*no debe estar corriendo el servicio de samba.

Para configurarlo en Alfresco se debe modificar el archivo
alfresco-globals.properties en la ruta:
{TOMCAT_HOME}/shared/classes/

Y agregar las siguientes lineas de configuración:

cifs.enabled=true
cifs.Server.Name=nombre_servidor
cifs.domain=nombre_dominio (opcional!)
cifs.hostanounce=true
cifs.broadcast=0.0.0.0 (direccion de la mascara de la red)
cifs.tcpipSMB.port=445
cifs.ipv6.enabled=false
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138
cifs.netBIOSSMB.sessionPort=139

y no tener ninguna configuración personalizada de CIFS en el archivo:
tomcat/shared/classes/alfresco/extension/file-servers-custom.xml

*en caso de no ejecutar Alfresco con el usuario root, no se podrán utilizar estos puertos por necesitar privilegios, para esto, se pueden usar ip tables para usar los puertos 1445 1137 1138 y 1139, la configuración de ip tables es la siguiente.

iptables -t nat -A OUTPUT -d localhost -p $3 –dport $1 -j REDIRECT –to-ports $2
iptables -t nat -A PREROUTING -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to-ports $2
iptables -t nat -A OUTPUT -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to-ports $2


redirect 445 1445 tcp
redirect 139 1139 tcp
redirect 137 1137 udp
redirect 138 1138 udp



this is in Spanish

bvadmin
Champ in-the-making
Champ in-the-making
ok my problem was that as mentioned Alfresco was running very happy on a windows 2003 server, then along comes me and promote it to a domain controller well an ADC anyway.  Now during the process of an AD promo it enables "file and print sharing" on the network cards.  Now as mentioned I do not know anything about Alfresco and never want to know but this CIFS thing will not function very well with "file and print sharing" enabled.  So I unchecked the option on both network cards and hey presto job done.  It was lucky that the server we use for Alfresco does not need Windows "file and print sharing" if you only have one server then you are done for.

I do hope it helps somebody else, I am not sure how well documented this fix is, I spend 4 days trying to find a solution and couldn’t find it.

p.s. please let me know if it helps anybody

http://www.brightvisions.co.uk

mmynsberghe
Champ on-the-rise
Champ on-the-rise
Hi bvadmin,

it did help!
although file and print sharing was turned off, during setup I followed these guidelines: http://wiki.alfresco.com/wiki/File_Server_Configuration#Vista_And_Windows_2008
and thus enabled NB-Datagram-In, NB-Name-In and NB-Session-In. After your tip I tried some different settings and now only NB-Session-In is enabled and everything worked like a charm! No more errors Smiley Very Happy

Thank you very mutch for your help!

Kind regards,
Mieke