Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 03-29-2008, 05:17 AM
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
  #12 (permalink)  
Old 03-29-2008, 09:02 AM
Loyal Member
 
Posts: 90
Default

I searched the forums for the too many files open error and hit http://www.zimbra.com/forums/adminis...les-error.html.
I checked ulimit -n and it returned 1024.

I checked /etc/security/limits.conf and it already had the following lines in below the "# End of file":

zimbra soft nofile 524288
zimbra hard nofile 524288

Note that these are different from what the post above says.
As the post suggested I added the following to /etc/pam.d/common-session:

session required pam_limits.so

I logged in with user zimbra and ulimit -n now gave me 524288.
So I restarted Zimbra and now I can migrate my mail to the 64-bit Zimbra.
So far so good!

regards Bart.
Reply With Quote
  #13 (permalink)  
Old 03-29-2008, 11:08 AM
Moderator
 
Posts: 6,236
Default

Also note how you become the zimbra user whenever you manually start it: [SOLVED] Too many open files error after increasing zimbra_session_limit_imap
Reply With Quote
  #14 (permalink)  
Old 03-29-2008, 11:12 AM
Loyal Member
 
Posts: 90
Default

I tested my ulimit with su - zimbra.
That returned 1024 before adding "session required pam_limits.so" to /etc/pam.d/common-session and 524288 after adding it.

regards Bart.
Reply With Quote
  #15 (permalink)  
Old 04-26-2008, 06:12 AM
Loyal Member
 
Posts: 90
Default

Just to let you know, I'm still running fine with 5.0.4 beta on Dapper in a 3.1 Xen DomU on a Gutsy Dom0.

I upgraded to 5.0.5 beta yesterday, no problems, still running fine.

I'm now testing a different installation of 5.0.5 beta on a Dapper DomU in a Xen 3.2 Dom0 on Hardy.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.