Mail Queue Service is not working due to Mail Templates is missing

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the 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)

Diagnosis

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}

Cause

Mail Templates has been removed or modified before which caused Mail Queue Service to be malfunctioning. 

Resolution

  1. Download the same JIRA version zip file from here.

  2. 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.

    (info) Check in $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email

  3. Copy the files from html,subject,text directory.

  4. 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
  5. Then, restart JIRA.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.