cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3, CIFS with LDAP/NTLM problems

ehasting
Champ in-the-making
Champ in-the-making
Hello,

when using alfresco with CIFS, i get this messages spamming. and the CIFS works slow.
I am using LDAP with NTLM/Local (chaining) auth.

First i thought it was access rights, but i am not that sure anymore.. and the errormessages does not tell me much.  Its an upgrade from alfresco 2.1 to 3.0

org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
20:08:03,012  ERROR [transaction.SpringAwareUserTransaction.trace] UserTransaction being garbage collected without a commit() or rollback().
   Started at:
      org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:389)
      org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:332)
      org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
      org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
      org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
      org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
      org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
      org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
      org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
      org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
      java.lang.Thread.run(Thread.java:619)
20:08:03,013  ERROR [transaction.SpringAwareUserTransaction.trace] UserTransaction being garbage collected without a commit() or rollback().
   Started at:
      org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:389)
      org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:332)
      org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
      org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
      org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
      org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
      org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
      org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
      org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
      org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
      java.lang.Thread.run(Thread.java:619)
org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)

rgs
Egil
10 REPLIES 10

fleprince
Champ in-the-making
Champ in-the-making
Hello,

I do have exactly the same problem when I connect with CIFS Server

François

PS : version Alfresco 3.0 Stable on WinXP SP3

emmanuel_g
Champ in-the-making
Champ in-the-making
Hello,

Config : Alfresco Labs 3 Stable 1526 schema 1002 on RHEL 4 kernel 2.6.9-67.ELsmp on VMWare 3.5. 2Cpu - 8Gb ram.

NTLM with ldap synchro OK with web UI and CIFS.
When I'm trying to put some files by CIFS,I have exactly the same issue. It worked for 5 minutes, then got the error.

java.lang.NullPointerException
        at org.alfresco.filesys.repo.ContentDiskDriver.startSearch(ContentDiskDriver.java:910)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procTrans2FindFirst(NTProtocolHandler.java:3178)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.processTransactionBuffer(NTProtocolHandler.java:1731)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procTransact2(NTProtocolHandler.java:1570)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:226)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.deleteDirectory(ContentDiskDriver.java:1723)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procDeleteDirectory(NTProtocolHandler.java:3001)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:281)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)
15:36:13,113  ERROR [transaction.SpringAwareUserTransaction.trace] Detected first UserTransaction which is being garbage collected without a commit() or rollback()
15:36:13,116  ERROR [transaction.SpringAwareUserTransaction.trace] Logging of transaction call stack is now enabled and will affect performance
15:36:13,140  ERROR [transaction.SpringAwareUserTransaction.trace] UserTransaction being garbage collected without a commit() or rollback(). NOTE: Prior to transaction call stack logging.
15:36:13,141  ERROR [transaction.SpringAwareUserTransaction.trace] UserTransaction being garbage collected without a commit() or rollback(). NOTE: Prior to transaction call stack logging.

I saw an issue on JIRA : https://issues.alfresco.com/jira/browse/ALFCOM-2548

thanks in advance

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

I've managed to get this issue solved for me.

I've increased the jvm value (-Xms512m -Xmx2G -XX:MaxPermSize=256m -server) and add a session timeout in file -servers.xml ( Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco)

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

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

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>${cifs.broadcast}</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/>
      <Win32Announce interval="5"/>

      <!– CIFS authentication –>
      <authenticator type="alfresco">
      </authenticator>
      <sessionTimeout>600</sessionTimeout>
<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket,Debug"/>
   </config>

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

          <!– Run on a non-privileged port –>
          <!–
          <port>1121</port>
          –>

      <!– FTP authentication –>
      <authenticator type="alfresco"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

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

and now my CIFS is running pretty good.

Bye

troton
Champ in-the-making
Champ in-the-making
Same issue here, even after changing the parameters like Emmanuel.G  has post.

My config is a Widows 2003 server, alfresco 3 "Stable" and 4 Gb RAM

Any other help woul be apreciated!!!

Thnx in advance

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I have the same problem Smiley Sad

JAVA_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=256m"
My config is a Redhat entreprise, alfresco 3 Stable, Ingres 2006 and 1,6 Gb Ram (VmWare)

The Cifs works sometimes…

Any ideas ?

ofrxnz
Champ in-the-making
Champ in-the-making
Same/similar problem (same error messages).  Its not that cifs doesn't work, its just shaky and will work for some files or users and not for others.

Usually it works great for the first file or two, but sometimes (not always) when i queue up several it gives that error after a few

Other times it happens on a single file upload.

In any case, it can lock alfresco up so tight i need to reboot it, occasionally requiring me to  clear the indexes to get cifs to work right.

It behaves like a DB lock that wont let go because it thinks it lost a packet or connection and doesn't know what to do

I dont think i have anything more to add than what is already here, but if you need/want more information on my case let me know.  until then im just adding my name to the list. 

Server Win2K3 R2 alfresco Labs 3D full installer with a dedicated Mysql 5.2 server on the backed  and a replicating content store off to another server. Clients are XP sp3 fully patched

rubicon49bc
Champ in-the-making
Champ in-the-making
I am interested in you chain config. I assume that is how you got LDAP sync work. Making LDAP-Auth load after or before NTLM?

rxm307
Champ in-the-making
Champ in-the-making
I cannot get chaining working correctly, I tried with the Enterprise 3.1 Trial and the updated documentation from http://www.alfresco.com/products/ecm/enttrial/files/installing_configuring_alfresco_ecm3_1.pdf

it only ever authenitcates to the first LDAP server in the chain, I'd prefer not to use LDAP sync as the users are spread over several containers

jpbarba
Champ in-the-making
Champ in-the-making
I get the same error. I don't know what is the problems exactly. CIFS becomes unstable and windows explorer halts.
After a minutes it recovers. Sometimes it doesn't recover and it is necessary restart the computer. I have set
session timeout to 600 and this is the exception that reach.

org.alfresco.error.AlfrescoRuntimeException: Failed to create transaction, Nested writable transaction in a read only transaction
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginTransaction(AlfrescoDiskDriver.java:345)
        at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.beginWriteTransaction(AlfrescoDiskDriver.java:180)
        at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:1822)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1386)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:251)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1344)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1436)
        at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:57)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
        at java.lang.Thread.run(Thread.java:619)