AnsweredAssumed Answered

Alfresco 4.0.d Linux SMB errors after heavy use.

Question asked by zezom on Mar 27, 2012
Latest reply on Aug 27, 2012 by glaenen
Hi,
I am running Alfresco version 4.0.d on a Linux system with Ubuntu 11.10 and PostgreSQL as the database.

I find that after a little while of heavy file transfer I tend to see the below errors in my log files:

2012-03-27 20:37:00,953  ERROR [smb.protocol.auth] [AlfJLANWorker12] org.alfresco.jlan.smb.server.SMBSrvException: Invalid device type for dialect

2012-03-26 22:54:49,464  ERROR [org.alfresco.fileserver] [AlfJLANWorker18] Error from JLAN
java.io.IOException: Broken pipe
   at sun.nio.ch.FileDispatcher.write0(Native Method)
   at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
   at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:100)
   at sun.nio.ch.IOUtil.write(IOUtil.java:71)
   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
   at org.alfresco.jlan.smb.server.nio.ChannelPacketHandler.writeBytes(ChannelPacketHandler.java:127)
   at org.alfresco.jlan.smb.server.nio.TcpipSMBChannelHandler.writePacket(TcpipSMBChannelHandler.java:161)
   at org.alfresco.jlan.smb.server.PacketHandler.writePacket(PacketHandler.java:215)
   at org.alfresco.jlan.smb.server.SMBSrvSession.sendResponseSMB(SMBSrvSession.java:1617)
   at org.alfresco.jlan.smb.server.SMBSrvSession.sendResponseSMB(SMBSrvSession.java:1562)
   at org.alfresco.jlan.smb.server.NTProtocolHandler.procWriteAndX(NTProtocolHandler.java:5593)
   at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:272)
   at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1354)
   at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1448)
   at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:138)
   at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
   at java.lang.Thread.run(Thread.java:662)

2012-03-26 22:54:49,441  ERROR [org.alfresco.fileserver] [AlfJLANWorker4] Failed to send local oplock break:

I also find that the file transfer speed slows down to a crawl and I some times get corruption of the files being copied into alfresco via SMB. I am copying from a Linux Ubuntu 10.04 system with the Alfresco share mounted with the following options:
//192.168.1.1/alfresco          /data          cifs    users,uid=www-data,gid=www-data,file_mode=0777,dir_mode=0777,username=xxxx,password=xxxx,port=1445         0       0

I have performed extensive searches both on Google and on this forum and I have been unable to find a solution for this problem.

The slowdowns are annoying but all I have to do is restart alfresco and it fixes the problem so this is not the end of the world. However the files that are copied into the repository that acquire corruption to the file do not error when they are copied so it can be much later when I go to open the file that I realise it has been corrupted and by then it can be too late to recover from the original.

This is a dump of my System Properties from Alfresco:

Property   Value
alfresco.ehcache.rmi.port   0
alfresco.ehcache.rmi.remoteObjectPort   0
alfresco.ehcache.rmi.socketTimeoutMillis   5000
alfresco.home   /opt/alfresco-4.0.d
alfresco.jmx.dir   /opt/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco
catalina.base   /opt/alfresco-4.0.d/tomcat
catalina.home   /opt/alfresco-4.0.d/tomcat
catalina.useNaming   true
com.sun.management.jmxremote   
common.loader   ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
file.encoding   UTF-8
file.encoding.pkg   sun.io
file.separator   /
heap.free   280.970MB (294618120 bytes)
heap.maxsize   910.250MB (954466304 bytes)
heap.size   878.063MB (920715264 bytes)
hibernate.dialect   org.hibernate.dialect.PostgreSQLDialect
java.awt.graphicsenv   sun.awt.X11GraphicsEnvironment
java.awt.printerjob   sun.print.PSPrinterJob
java.class.path   /opt/alfresco-4.0.d/tomcat/bin/bootstrap.jar
java.class.version   50.0
java.endorsed.dirs   /opt/alfresco-4.0.d/tomcat/endorsed
java.ext.dirs   /opt/alfresco-4.0.d/java/jre/lib/ext:/usr/java/packages/lib/ext
java.home   /opt/alfresco-4.0.d/java/jre
java.io.tmpdir   /opt/alfresco-4.0.d/tomcat/temp
java.library.path   /opt/alfresco-4.0.d/java/jre/lib/amd64/server:/opt/alfresco-4.0.d/java/jre/lib/amd64:/opt/alfresco-4.0.d/java/jre/../lib/amd64:/opt/alfresco-4.0.d/common/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.naming.factory.initial   org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs   org.apache.naming
java.rmi.server.randomIDs   true
java.runtime.name   Java(TM) SE Runtime Environment
java.runtime.version   1.6.0_22-b04
java.specification.name   Java Platform API Specification
java.specification.vendor   Sun Microsystems Inc.
java.specification.version   1.6
java.util.logging.config.file   /opt/alfresco-4.0.d/tomcat/conf/logging.properties
java.util.logging.manager   org.apache.juli.ClassLoaderLogManager
java.vendor   Sun Microsystems Inc.
java.vendor.url   http://java.sun.com/
java.vendor.url.bug   http://java.sun.com/cgi-bin/bugreport.cgi
java.version   1.6.0_22
java.vm.info   mixed mode
java.vm.name   Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name   Java Virtual Machine Specification
java.vm.specification.vendor   Sun Microsystems Inc.
java.vm.specification.version   1.0
java.vm.vendor   Sun Microsystems Inc.
java.vm.version   17.1-b03
line.separator   
os.arch   amd64
os.name   Linux
os.version   3.0.0-16-generic
package.access   sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
package.definition   sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
path.separator   :
server.loader   
shared.loader   ${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
sun.arch.data.model   64
sun.boot.class.path   /opt/alfresco-4.0.d/tomcat/endorsed/xalan.jar:/opt/alfresco-4.0.d/tomcat/endorsed/serializer.jar:/opt/alfresco-4.0.d/java/jre/lib/resources.jar:/opt/alfresco-4.0.d/java/jre/lib/rt.jar:/opt/alfresco-4.0.d/java/jre/lib/sunrsasign.jar:/opt/alfresco-4.0.d/java/jre/lib/jsse.jar:/opt/alfresco-4.0.d/java/jre/lib/jce.jar:/opt/alfresco-4.0.d/java/jre/lib/charsets.jar:/opt/alfresco-4.0.d/java/jre/classes
sun.boot.library.path   /opt/alfresco-4.0.d/java/jre/lib/amd64
sun.cpu.endian   little
sun.cpu.isalist   
sun.io.unicode.encoding   UnicodeLittle
sun.java.launcher   SUN_STANDARD
sun.jnu.encoding   UTF-8
sun.management.compiler   HotSpot 64-Bit Server Compiler
sun.os.patch.level   unknown
sun.security.ssl.allowUnsafeRenegotiation   true
tomcat.util.buf.StringCache.byte.enabled   true
user.country   AU
user.dir   /root
user.home   /root
user.language   en
user.name   root
user.timezone   Australia/Brisbane

Outcomes