分享到:

Unlimax 问答平台已经迁移到 http://answers.unlimax.com ,新的问答平台搜索答案更加方便,赶快试试吧。



JIRA演示站点
Confluence演示站点
Unlimax站点
Unlimax微博





1,484 问题

1,783 回复

1,947 评论

191,134 用户

jira建立3个工程,其中一个工程收到重复邮件

0 投票
jira建立3个工程,其中一个工程收到重复邮件,其它两个工程正常。

收到重复邮件的工程,以前是正常的

该工程的邮件通知现在不太正常,每隔几分钟发重复邮件出来,发5、6次,7、8次不等,间隔从1~5分钟,

这到底是哪里出来问题。

订阅该工程的filter,也会重复间隔几分钟发相同内容的邮件出来。

现在重复邮件有好多,怎么办?
时间: 2015年 3月 16日 分类:JIRA 作者: bnmvgh 武士学徒 (700 积分)

1个回答

0 投票
看看日志中有没有邮件相关的错误信息,另外,检查一下最近做过什么修改,比如自定义的listener。
已回复 2015年 3月 16日 作者: Wang Hong [Unlimax] 长老会评议长 (32,510 积分)
请看看这个日志,到底出了什么问题,邮件为什么不停的发,多谢!
2015-03-16 07:01:59,112 ERROR [JIRA] Sending mailitem To='shaozhuang@uncomm.com' Subject='Subscription: 所有未关闭问题' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@7ed654af' MessageId='null' anonymous    Mail Queue Service Error occurred in sending e-mail: To='shaozhuangyang@unicorecomm.com' Subject='Subscription: 所有未关闭问题' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@7ed654af' MessageId='null'
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.sendWithMessageId(SMTPMailServerImpl.java:201)
    at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44)
    at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
    at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:57)
    at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:53)
    at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:127)
    at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:41)
    at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:52)
    at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:28)
    at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66)
    at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75)
    at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53)
    at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36)
    at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135)
    at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
    at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
    at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: javax.mail.MessagingException: Exception reading response;
  nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2210)
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2093)
    at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1900)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1122)
    at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:174)
    ... 18 more
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2188)
    ... 22 more
看错误是邮件服务器没有及时响应,故造成多次重复发送。
那就是邮件服务器的问题了,不是jira设置的问题了,多谢
能不能将jira的邮件设置成发送间隔长一点,别让邮件服务器反应不过来。
这应该是个bug,在6.3.9版本中进行了修复,可以尝试升级到这个版本。
https://jira.atlassian.com/browse/JRA-27644