It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence mail sometimes send timeout

Jiannan Tang Jan 12, 2013

hi:

I had configed the SMTP mail, and tested sending mail well.

But sometimes send mail failed.

The log looks like from the server connecting to SMTP server timeout.

How to config the confluence and jira maile timeout minitus?

Error log:

ERROR [scheduler_Worker-1] [atlassian.core.task.AbstractErrorQueuedTaskQueue] handleException com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
  nested exception is:
        java.net.SocketTimeoutException: Read timed out
com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
  nested exception is:
        java.net.SocketTimeoutException: Read timed out
        at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191)
        at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:71)
        at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.send(AbstractMailNotificationQueueItem.java:128)
        at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.send(PreRenderedMailNotificationQueueItem.java:140)
        at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.execute(AbstractMailNotificationQueueItem.java:99)
        at com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:107)
        at com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:45)
        at com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:37)
        at com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:32)
        at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16)

2 answers

1 accepted

2 votes
Answer accepted
Bruna Griebeler Jan 16, 2013

Hello there,

I actually agree with Nic on this, the error you're seeing in the Confluence logs are simply indicating there's a timeout, but the root cause should be environmental. The best thing to do here is reaching your sysadmin on this to make sure everything's working fine on the network side.

Cheers

1 vote
Nic Brough [Adaptavist] Community Leader Jan 12, 2013

I wouldn't actually bother - the reason you are getting a timeout is a network or email server problem and you really should fix that. Changing the timeout on Confluence simply makes the the email queue more on there, and potentially compounds the problem because it will be trying for longer. It might help, but it might make things worse as well, and all it does is hide the real problem. I have a feeling it's set in a config file, but also that it's a default (i.e. it's not explicitly in the config file, so the code assumes an internal default)

Jiannan Tang Jan 13, 2013

Hi Nic:

Where can I find the mail timeout setting. I didn't found it.

Nic Brough [Adaptavist] Community Leader Jan 13, 2013

I have no idea - you'll need to dig through all the code to find it.

As I said though, you are probably not going to find it helps - you need to fix the connection problem, not try to bodge around it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

909 views 0 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you