Mail Queue Service is not working due to Mail Templates is missing
症状
atlassian-jira.log
に次のメッセージが表示される。
2015-01-08 07:06:18,194 QuartzWorker-0 ERROR ServiceRunner Mail Queue Service [atlassian.jira.service.ServiceRunner] An error occured while trying to run service 'Mail Queue Service'. org.apache.velocity.exception.VelocityException: Could not find template 'templates/email/subject/issuementioned.vm' ensure it is in the classpath.
java.lang.RuntimeException: org.apache.velocity.exception.VelocityException: Could not find template 'templates/email/subject/issuementioned.vm' ensure it is in the classpath.
at com.atlassian.jira.mail.RenderingMailQueueItem.send(RenderingMailQueueItem.java:85)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:28)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
診断
Please execute the following command within JIRA's server, and check the output:
ls -lh $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/{html,subject,text}
原因
Mail Templates has been removed or modified before which caused Mail Queue Service to be malfunctioning.
ソリューション
Download the same JIRA version zip file from here.
Extract the zip file out and look for the missing mail templates shown in the error:
Could not find template 'templates/email/subject/issuementioned.vm' ensure it is in the classpath.
Check in
$JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email
Copy the files from
html,subject,text
directory.Paste the files to the respective directories:
$JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/html $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/text $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/subject
Then, restart JIRA.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.