Confluence mail sometimes send timeout

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

Accepted Answer
2 votes

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

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)

Hi Nic:

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

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
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

369 views 0 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you