View Single Post
  #4 (permalink)  
Old 11-25-2008, 03:23 AM
phoenix phoenix is online now
Zimbra Consultant & Moderator
 
Posts: 19,651
Default

Quote:
Originally Posted by Peperzaken View Post
And here the tail of the mailbox.log file:
Code:
	... 7 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at sun.reflect.GeneratedMethodAccessor106.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.<init>(Connection.java:184)
	... 24 more
2008-11-25 07:40:36,601 WARN  [MailboxPurge] [name=e.****@****.nl;mid=22;] purge - Unable to get mailbox id's
com.zimbra.common.service.ServiceException: system failure: getDirectContext
ExceptionId:MailboxPurge:1227595236601:73f3acbf3ecbade8
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.getServerByName(LdapProvisioning.java:2196)
	at com.zimbra.cs.account.ldap.LdapProvisioning.getServerByName(LdapProvisioning.java:2185)
	at com.zimbra.cs.account.ldap.LdapProvisioning.getLocalServer(LdapProvisioning.java:2569)
	at com.zimbra.cs.mailbox.PurgeThread.getMailboxIds(PurgeThread.java:222)
	at com.zimbra.cs.mailbox.PurgeThread.run(PurgeThread.java:117)
Caused by: javax.naming.CommunicationException: zimbra.peperzaken.nl:389 [Root exception is java.net.ConnectException: Connection refused]
	at com.sun.jndi.ldap.Connection.<init>(Connection.java:197)
	at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
	at com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:46)
	at com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:97)
	at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:114)
	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.<init>(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.<init>(InitialLdapContext.java:134)
	at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:246)
	... 7 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at sun.reflect.GeneratedMethodAccessor106.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.<init>(Connection.java:184)
	... 24 more
2008-11-25 07:40:36,601 WARN  [MailboxPurge] [name=e.***@***.nl;mid=22;] purge - Unable to determine value of zimbraMailPurgeSleepInterval
com.zimbra.common.service.ServiceException: system failure: getDirectContext
ExceptionId:MailboxPurge:1227595236601:73f3acbf3ecbade8
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.getServerByName(LdapProvisioning.java:2196)
	at com.zimbra.cs.account.ldap.LdapProvisioning.getServerByName(LdapProvisioning.java:2185)
	at com.zimbra.cs.account.ldap.LdapProvisioning.getLocalServer(LdapProvisioning.java:2569)
	at com.zimbra.cs.mailbox.PurgeThread.getSleepInterval(PurgeThread.java:187)
	at com.zimbra.cs.mailbox.PurgeThread.run(PurgeThread.java:167)
Caused by: javax.naming.CommunicationException: zimbra.peperzaken.nl:389 [Root exception is java.net.ConnectException: Connection refused]
	at com.sun.jndi.ldap.Connection.<init>(Connection.java:197)
	at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
	at com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:46)
	at com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:97)
	at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:114)
	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.<init>(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.<init>(InitialLdapContext.java:134)
	at com.zimbra.cs.account.ldap.LdapUtil.getDirContext(LdapUtil.java:246)
	... 7 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
The problem would appear to be the inability to retrieve certain attributes from LDAP as evidenced by this message:

Code:
Caused by: javax.naming.CommunicationException: zimbra.peperzaken.nl:389 [Root exception is java.net.ConnectException: Connection refused]
You either have a firewall problem, SElinux is enabled or there's a DNS problem.

Run the following commands on the Zimbra server:
Code:
cat /etc/hosts
cat /etc/resolv.conf
host `hostname`  <-- use backticks not single quotes
dig yourdomain.com mx 
dig yourdomain.com any
and post the output here.

Are you behind a NAT router? If you are, make sure that SElinux is disabled (or AppArmor) and the firewall on the Zimbra server is disabled. Do you have a local DNS server set-up? Have you always had this problem?
__________________
Regards


Bill
Reply With Quote