PSSRV-11702: Email Daily Report is not sent
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Email Daily Report is not sent
Environment
7.12
Diagnosis
Confluence suddenly stopped sending Email Daily Reports and this behaviour is intermittent.
While reviewing the application logs(atlassian-confluence.log), we can see below error -
2021-05-06 00:00:04,298 ERROR [Caesium-1-3] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job DailyReportJob#DailyReportJob failed to run^M
com.atlassian.confluence.api.service.exceptions.PermissionException: Not permitted to use confluence : null^M
at com.atlassian.confluence.plugins.cql.impl.DefaultCQLSearchService.checkCanUse(DefaultCQLSearchService.java:406)^M
at com.atlassian.confluence.plugins.cql.impl.DefaultCQLSearchService.performV2Search(DefaultCQLSearchService.java:269)^M
at com.atlassian.confluence.plugins.cql.impl.DefaultCQLSearchService.search(DefaultCQLSearchService.java:156)^M
at jdk.internal.reflect.GeneratedMethodAccessor2358.invoke(Unknown Source)^M
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)^M
at java.base/java.lang.reflect.Method.invoke(Unknown Source)^M
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)^M
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)^M
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)^M
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)^M
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)^M
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)^M
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)^M
....
at com.mute.confluence.plugins.lms.security.CoursePermissionManager.isCourseCoAuthor(CoursePermissionManager.java:122)^M
at com.mute.confluence.plugins.lms.security.CoursePermissionManager.isCourseAuthor(CoursePermissionManager.java:117)^M
at com.mute.confluence.plugins.lms.security.CoursePermissionManager.canView(CoursePermissionManager.java:159)^M
at com.mute.confluence.plugins.lms.security.CoursePermissionsDelegate.canView(CoursePermissionsDelegate.java:50)^M
at com.atlassian.confluence.security.Permission$1.checkAgainst(Permission.java:17)^M
...
at com.atlassian.confluence.plugins.contentproperty.JsonPropertyPermissionDelegate.hasPermission(JsonPropertyPermissionDelegate.java:71)^M
at com.atlassian.confluence.plugins.contentproperty.JsonPropertyPermissionDelegate.canView(JsonPropertyPermissionDelegate.java:24)^M
at com.atlassian.confluence.security.Permission$1.checkAgainst(Permission.java:17)^M
at com.atlassian.confluence.security.DefaultPermissionManager.hasPermissionNoExemptions(DefaultPermissionManager.java:100)^M
at com.atlassian.confluence.mail.ChangeDigestNotificationBean.userHasAccessTo(ChangeDigestNotificationBean.java:152)^M
at com.atlassian.confluence.mail.ChangeDigestNotificationBean.getAllChangeReportForUser(ChangeDigestNotificationBean.java:74)^M
at com.atlassian.confluence.mail.ChangeDigestNotificationBean.getAllChangeReports(ChangeDigestNotificationBean.java:142)^M
at com.atlassian.confluence.mail.jobs.DefaultDailyReportManager.generateDailyReports(DefaultDailyReportManager.java:85)^M
Cause
Based on the above stack trace, this is happening due to a third party Macro i.e Smart Courses due to a bug.
Solution
Upgrade Smart Courses plugin to the latest version since this was fixed under 7.2.1 release of Smart Courses plugin.