cancel
Showing results for 
Search instead for 
Did you mean: 

Delay when saving a document in CIFS folder

unknown-user
Champ on-the-rise
Champ on-the-rise
With Alfresco 1.3.0 on Windows XP SP2, I have access to the Alfresco repository through CIFS, and am able to read, create, rename files sucessfully.
But editing a file, and saving it causes an idle period of about 90 secs. During this period, the explorer.exe process is frozen and nothing seems to move (nearly no CPU consumption).
Finally, the save operation ends succesfully.

Strangely, this happens only when editing files on CIFS folders on the same machine the Alfresco server runs on. When accessing CIFS folders remotely, everything works fine.

nbtstat -n gives :
Local Area Connection:
Node IpAddress: [0.0.0.0] Scope Id: []

    No names in cache

Wireless Network Connection:
Node IpAddress: [192.168.1.8] Scope Id: []

                NetBIOS Local Name Table

       Name               Type         Status
    ———————————————
    GROMIT         <00>  UNIQUE      Registered
    WORKGROUP      <00>  GROUP       Registered
    GROMIT         <20>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <1D>  UNIQUE      Registered
    ..__MSBROWSE__.<01>  GROUP       Registered
    GROMIT_A       <20>  UNIQUE      Registered
    GROMIT_A       <00>  UNIQUE      Registered

I adapted file-servers.xml to my network
<broadcast>255.255.255.0</broadcast>
and tried changing this element
<Win32NetBIOS api="netbios"/>
without success.

Any idea of a possible cause of the problem ?
Regards,

Denis
3 REPLIES 3

gary_spencer
Champ in-the-making
Champ in-the-making
Hi Denis,

Do you have an anit-virus app running on the system ?.

I've seen problems like this with AVG Anti-virus, although it only seemed to occur when accessing executable files.

Cheers

Gary

unknown-user
Champ on-the-rise
Champ on-the-rise
I have closed all other applications such as anti-virus or even google desktop, but the problem is still present.

I forgot to mention that I did add the registry entry SMBDeviceEnabled=0 to avoid multiple login prompts.

I now disabled all network connections other than main LAN connection.
And I did the same test with the 1.4 preview release (alfresco-1.4.ODF-Build54), to take profit of latests fixes (such as Jira AR-444).
But the problem is still present.

The console lists a lot of errors such as :
13:40:28,740 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:40:28,740 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to sen
d errors
13:52:49,304 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:52:59,319 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:53:19,318 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:53:19,318 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to send errors
13:54:34,346 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:54:44,350 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:55:04,349 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
13:55:04,349 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to send errors
13:55:05,370 ERROR [alfresco.smb.protocol] Closing session due to exception net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credential
sNotFound(AbstractSecurityInterceptor.java:477)
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvo
cation(AbstractSecurityInterceptor.java:355)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:77)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy15.exists(Unknown Source)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.getNodeForPath
(ContentDiskDriver.java:1885)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.getFileInforma
tion(ContentDiskDriver.java:536)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procTrans2QueryPath
(NTProtocolHandler.java:3969)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.processTransactionB
uffer(NTProtocolHandler.java:1796)
        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(Thread.java:595)
13:55:44,356 ERROR [smb.protocol.mailslot] Host announce error  (LANA 4)
or
13:40:10,523 ERROR [alfresco.smb.protocol] Closing session due to exception
net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credential
sNotFound(AbstractSecurityInterceptor.java:477)
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvo
cation(AbstractSecurityInterceptor.java:355)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:77)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy26.search(Unknown Source)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.getDirectDescendents(
CifsHelper.java:422)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.addDescendents(CifsHelper.java:395)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.getNodeRefs(CifsHelper.java:474)
        at org.alfresco.filesys.smb.server.repo.CifsHelper.getNodeRef(CifsHelper.java:497)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.getNodeForPath
(ContentDiskDriver.java:1904)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.getFileInforma
tion(ContentDiskDriver.java:536)
        at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.fileExists(ContentDiskDriver.java:837)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procNTCreateAndX(NT
ProtocolHandler.java:5262)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:305)
        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(Thread.java:595)

Any other idea ?

Regards,
Denis

unknown-user
Champ on-the-rise
Champ on-the-rise
OK, you were right !

I did double-check my anti-virus settings (BitDefender 9, standard edition).
The "Quit" action on BitDefender console does not shutdown all anti-virus processes. You need to use "Disable virus shield" to completely disable it.

And then, CIFS access works fine !

Many thanks for your help,

Denis