cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS not starting issue

dantella
Champ in-the-making
Champ in-the-making
Hello,

I havent come across this issue during my searches. Running community 2.1 on a Win2k3 virtual machine joined to a domain. I finally got NTLM passthru working and i thought CIFS setup. I also got the LDAP sync working for my domain.

I've copied the win32netbios.dll to a valid path, SYSTEM32. I can startup Alfresco, and get no errors, I can login through the webclient, and all my users are imported just fine.

FTP works fine with NTLM auth, and its using a SQL Server 2005 backend….

the CIFS server doesnt seem to be starting, and I'm not getting any errors at all. nbtstat -n doesnt show the _A server name being presented.

Any Ideas?
Thanks,
David

File-Servers.xml is like this:
__________________________


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

   <config evaluator="string-compare" condition="CIFS Server">
      <serverEnable enabled="true"/>

      <comment>Alfresco CIFS Server</comment>
      <host name="Alfresco21" domain="xxxx"/>
      <host name="${localname}_A"/>

      <!– 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 api="winsock"/>
      <Win32Announce interval="5"/>


      <WINS>
         <primary>192.168.10.100</primary>
         <!– <secondary>5.6.7.8</secondary> –>
      </WINS>

      <sessionDebug flags="Negotiate,Socket"/>
   </config>

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

   <config evaluator="string-compare" condition="NFS Server">
      <serverEnable enabled="false"/>
   </config>

   <config evaluator="string-compare" condition="Filesystems">
      <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}: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>

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

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="enterprise">
      </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>
11 REPLIES 11

mikef
Champ in-the-making
Champ in-the-making
What output to you get if you enable CIFS debugging in log4j e.g.

log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.acegi=debug

dantella
Champ in-the-making
Champ in-the-making
Thanks for the response. I double checked those properties, and they were set already.

This is the only output i have in the alfresco log:
__________________________________________
00:27:39,808 ERROR [net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnection] disconnected unexpectedly
00:28:38,512 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
00:28:45,071 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.SQLServerDialect.
00:28:47,404 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
00:28:49,407 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
00:28:49,407 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data
00:28:50,018 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
00:28:50,258 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
00:28:50,529 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_03-b05; maximum heap size 506.313MB
00:28:50,529 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64


I'm still not getting anything else.

Thanks again,
David

pachacute
Champ in-the-making
Champ in-the-making
I, you can post the files which you are edit please.

i can log with LDAP

qasimh
Champ in-the-making
Champ in-the-making
I have had the same problem for several weeks.  I use a similar envrionment (but SQL Server 2003).  When I enable debugging for a variety of options, I only see:
(INTERNAL-DEV is the name of our test server that hosts alfresco):

13:50:00,743 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host INTERNAL-DEV_A
13:55:00,743 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host INTERNAL-DEV_A
14:00:00,743 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host INTERNAL-DEV_A
14:05:00,743 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host INTERNAL-DEV_A
14:10:00,743 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host INTERNAL-DEV_A

NO errors are ever seen, and I'm not getting any response from the *_A server.

dantella
Champ in-the-making
Champ in-the-making
Anyone?

This is my last barrier from suggesting alfresco as a tool for our company use. I've had the CIFS server running just fine in other builds, but never gotten all the other NTFS authentication going before.


I can't find any errors anywhere, logging is set to DEBUG for SMB. CIFS just doesnt seem to be running.


many thanks

dantella
Champ in-the-making
Champ in-the-making
Anyone have any ideas on this front? I guess i'll reinstall, and hope for the best.

mikef
Champ in-the-making
Champ in-the-making
dantella, this may not be the issue but you do have 2 host entries in file-servers.xml:

<host name="Alfresco21" domain="xxxx"/>
<host name="${localname}_A"/>

Also, are you changing file-servers.xml in the main deployed war or file-servers-custom.xml in your extensions?

dantella
Champ in-the-making
Champ in-the-making
Shazaaam!

That was it. I guess it was using only the first host entry, which conflicted with the machine name. I changed it to Alfresco21_A and it registered with netbios just fine. I could open the drive just fine.


Many Thanks,
David

qasimh
Champ in-the-making
Champ in-the-making
Hi there,

I don't have two host name definitions.  I've looked at both file-servers.xml and file-servers-custom.xml but found nothing inconsistent.

Dantella, would you be so kind as to post your config file, whatever one you modified.

Thanks,
-Q