cancel
Showing results for 
Search instead for 
Did you mean: 

Howcompliant is Alfresco's CIFS implementation ?

alci
Champ in-the-making
Champ in-the-making
Hi,

I'm having troubles with Cifs access to Alfresco using Linux 2.6.17 / Samba 3.0.22. Drive mounts ok, but browsing to certain directory suddenly result in a lot of network traffic and a repeated error on the client's console :

[17187997.646436] CIFS VFS: No response for cmd 50 mid 127

going over and over.

My first idea was to post on Samba's cifs linux client mailing list. They suggested running the smbtorture test suite (this test suite is designed to provide netbench fonctionnality with a small infrastracture) against Alfresco, and also dumping network traffic with Wireshark (aka Ethereal).

Smbtorture results in a lot of failed tests, but I am not a SMB protocol expert, nor really able to understand Wireshark's output.

So here is my question :
- do others encounter similar problems with Alfresco CIFS / Linux ?
- how compliant is Alfresco CIFS implementation supposed to be ?
- would anyone be interested in the smbtorture test results I got ?
- would anyone be able to help me with my tcpdump ?

Here is an example of failed tests (first 3 ones) :

Using seed 1162288172
Running BASE-ATTR
starting attrib test
New file time is Sun May 17 22:26:48 1998
ERROR: SMBgetatr bug. time is Sun May 17 22:26:48 1998
Setting file time to Mon Oct 30 10:49:32 2006
Retrieved file time as Sun May 17 22:26:48 1998
ERROR: getatr/setatr bug. times are
Sun May 17 22:26:48 1998
Mon Oct 30 10:49:32 2006
attrib test finished
BASE-ATTR took 0.329789 secs

Running BASE-CHARSET
Starting charset tests
Testing composite character (a umlaut)
Testing naked diacritical (umlaut)
Testing partial surrogate
Conversion error: Illegal multibyte sequence()
Failed to convert UCS2 Name into unix - convert_string_talloc() failure
Failed to create partial surrogate 1 - NT_STATUS_NO_MEMORY
Testing wide-a
TEST BASE-CHARSET FAILED! - …
BASE-CHARSET took 1.24398 secs

Running BASE-CHKPATH
starting chkpath test
Testing valid and invalid paths
BASE-CHKPATH took 0.885987 secs


Thanks in advance,

Franck
1 REPLY 1

alci
Champ in-the-making
Champ in-the-making
A little more information on the subject : when this intense network activity occures, I get an exception on Alfresco's side :

11:45:31,301 ERROR [alfresco.smb.protocol] Closing session due to exception
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/81bb0484-6406-11db-9490-e3de21d104cb
        at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodeNotNull(DbNodeServiceImpl.java:120)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.getProperties(DbNodeServiceImpl.java:800)
        at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:213)
        at $Proxy2.getProperties(Unknown Source)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.toFileInfo(FileFolderServiceImpl.java:202)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.toFileInfo(FileFolderServiceImpl.java:190)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.search(FileFolderServiceImpl.java:345)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.search(FileFolderServiceImpl.java:328)
        at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:41)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:210)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:156)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:61)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy28.search(Unknown Source)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.getDirectDescendents(CifsHelper.java:436)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.addDescendents(CifsHelper.java:396)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.getNodeRefs(CifsHelper.java:489)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.startSearch(ContentDiskDriver.java:778)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procTrans2FindFirst(NTProtocolHandler.java:3108)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.processTransactionBuffer(NTProtocolHandler.java:1778)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procTransact2(NTProtocolHandler.java:1615)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:226)
        at org.alfresco.filesys.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1662)
        at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1563)
        at java.lang.Thread.run(Unknown Source)

Does this help to track down thecause ?

Franck