View Single Post
  #11 (permalink)  
Old 03-29-2008, 04:17 AM
eombah eombah is offline
Loyal Member
 
Posts: 90
Default

Ok, I started copying messages from my old Zimbra to the new 64bit one.
I started with imapsync but that did strange things when reading the email from a Thunderbird client. In Thunderbird, I select one message but the contents of another message is shown in the preview pane. This has nothing to do with the 64bit build though because I have had this before on a 32bit ubuntu builds. In the Zimbra webclient all looks ok though. On the 32bit build, I then migrated my messages using Thunderbird and that went well so I thought I would try that on my 64bit build as well.

So I started copying through Thunderbird. It started off well but after copying 1599 messages it fails telling me it cannot APPEND.
/opt/zimbra/mailbox.log tells me:

com.zimbra.common.service.ServiceException: system failure: java.io.FileNotFoundException: /opt/zimbra/store/incoming/1206788352246-559.msg (Too many open files)


Here's the log:
Code:
2008-03-29 12:00:23,893 INFO  [ImapSSLServer-5] [name=bart@mydomain.nl;mid=6;ip=192.168.1.10;] mailbox - Added message: id=1918, digest=zSgGNJnZvH2vOMYWbVDtL9oPc7I=, folderId=2, folderName=Inbox
2008-03-29 12:00:23,924 INFO  [IndexWritersSweeperThread] [] index - open index writers sweep: before=1, closed=0, after=1 (0ms)
2008-03-29 12:00:24,020 INFO  [ImapSSLServer-5] [name=bart@mydomain.nl;mid=6;ip=192.168.1.10;] mailbox - Added message: id=1919, digest=,r7nrLnieEtiM4gq50,eHpuaMR0=, folderId=2, folderName=Inbox
2008-03-29 12:00:24,087 WARN  [ImapSSLServer-5] [name=bart@mydomain.nl;mid=6;ip=192.168.1.10;] imap - APPEND failed
	com.zimbra.common.service.ServiceException: system failure: java.io.FileNotFoundException: /opt/zimbra/store/incoming/1206788352246-559.msg (Too many open files)
ExceptionId:ImapSSLServer-5:1206788424087:e1c431438aff605f
Code:service.FAILURE
        at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)
        at com.zimbra.cs.imap.ImapHandler.append(ImapHandler.java:2010)
        at com.zimbra.cs.imap.ImapHandler.doAPPEND(ImapHandler.java:1944)
        at com.zimbra.cs.imap.ImapHandler.executeRequest(ImapHandler.java:287)
        at com.zimbra.cs.imap.TcpImapHandler.processCommand(TcpImapHandler.java:151)
        at com.zimbra.cs.tcpserver.ProtocolHandler.processConnection(ProtocolHandler.java:160)
        at com.zimbra.cs.tcpserver.ProtocolHandler.run(ProtocolHandler.java:128)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /opt/zimbra/store/incoming/1206788352246-559.msg (Too many open files)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.(FileOutputStream.java:179)
        at java.io.FileOutputStream.(FileOutputStream.java:131)
        at com.zimbra.cs.store.FileBlobStore.storeIncoming(FileBlobStore.java:118)
        at com.zimbra.cs.mailbox.Mailbox.addMessageInternal(Mailbox.java:4539)
        at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4330)
        at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4280)
        at com.zimbra.cs.imap.ImapHandler.append(ImapHandler.java:2002)
        ... 7 more
2008-03-29 12:00:42,553 WARN  [MailboxPurge] [name=bart@mydomain.nl;mid=2;] purge - Unable to purge mailbox 2
com.zimbra.common.service.ServiceException: system failure: getDirectContext
ExceptionId:MailboxPurge:1206788442553:e1c431438aff605f
Code:service.FAILURE
        at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:253)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:238)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:229)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getDomainByQuery(LdapProvisioning.java:1446)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getDomainByAsciiName(LdapProvisioning.java:1533)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getDomainByName(LdapProvisioning.java:1526)
        at com.zimbra.cs.account.ldap.LdapProvisioning.get(LdapProvisioning.java:1474)
        at com.zimbra.cs.account.Provisioning.getDomain(Provisioning.java:1580)
        at com.zimbra.cs.account.Provisioning.getCOS(Provisioning.java:1606)
        at com.zimbra.cs.account.ldap.LdapProvisioning.makeAccount(LdapProvisioning.java:3378)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getAccountByQuery(LdapProvisioning.java:457)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getAccountById(LdapProvisioning.java:478)
        at com.zimbra.cs.account.ldap.LdapProvisioning.get(LdapProvisioning.java:499)
        at com.zimbra.cs.account.ldap.LdapProvisioning.get(LdapProvisioning.java:490)
        at com.zimbra.cs.mailbox.Mailbox.getAccount(Mailbox.java:541)
        at com.zimbra.cs.mailbox.PurgeThread.run(PurgeThread.java:131)
Caused by: javax.naming.CommunicationException: mail.thuis.nl:389 [Root exception is java.net.SocketException: Too many open files]
        at com.sun.jndi.ldap.Connection.(Connection.java:197)
        at com.sun.jndi.ldap.LdapClient.(LdapClient.java:118)
        at com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:46)
        at com.sun.jndi.ldap.pool.Connections.getOrCreateConnection(Connections.java:185)
        at com.sun.jndi.ldap.pool.Connections.get(Connections.java:126)
        at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:129)
        at com.sun.jndi.ldap.LdapPoolManager.getLdapClient(LdapPoolManager.java:310)
        at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1572)
        at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
        at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:287)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
        at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
        at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.ldap.InitialLdapContext.(InitialLdapContext.java:134)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:246)
        ... 15 more
Caused by: java.net.SocketException: Too many open files
        at java.net.Socket.createImpl(Socket.java:388)
        at java.net.Socket.connect(Socket.java:517)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jndi.ldap.Connection.createSocket(Connection.java:336)
        at com.sun.jndi.ldap.Connection.(Connection.java:184)
        ... 33 more
2008-03-29 12:00:42,555 WARN  [MailboxPurge] [name=bart@mydomain.nl;mid=2;] purge - Unable to purge mailbox 2
com.zimbra.common.service.ServiceException: system failure: getDirectContext
ExceptionId:MailboxPurge:1206788442555:e1c431438aff605f
Code:service.FAILURE
        at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:253)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:238)
        at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:229)
        at com.zimbra.cs.account.ldap.LdapProvisioning.getDomainByQuery(LdapProvisioning.java:1446)
        at 
..............
Now that I think of it, I also got these messages when migrating through imapsync.

regards Bart.
Reply With Quote