We currently face an issue where our dashboard subscriptions arent being sent when they should be.
The subscriptions are scheduled to be sent every day at 6 am CET if there are results available.
Although there should be results to be sent, we don't receive any emails. Metabase reports that the pulse task was run successfully and the logs don't show any errors.
Subscriptions scheduled to be sent after 8 am CET (same dashboard) however work, as well as "Send email now". The only difference I noticed so far are log entries regarding the cache. The ones that are sent leave a log message
"INFO metabase.query-processor.middleware.cache Query xyz took 1.4 s to run; minimum for cache eligibility is 5.0 ms; eligible"
and those that arent say
"INFO metabase.query-processor.middleware.cache Query xyz took 1.4 s to run; minimum for cache eligibility is 5.0 ms; not eligible"
.
Since metabase.query-processor.middleware.cache checks if there are any rows in the result of the query it seems that the query does not get any result, which isnt correct (it checks for entries in a table on a relative date "past1day"). Re-running the Query manually confirms that there are indeed results.
We use Elastic Beanstalk to run Metabase and our database is Amazon Redshift. We tried updating metabase, deleting and recreating all subscriptions, applying recommended changes in our database structure and restarting the metabase instance.
As far as I know the problem emerged with the metabase update 0.50.19.
{
"browser-info": {
"language": "de-DE",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.24+8",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.24",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.24+8",
"os.name": "Linux",
"os.version": "5.10.223-211.872.amzn2.x86_64",
"user.language": "en",
"user.timezone": "Europe/Berlin"
},
"metabase-info": {
"databases": [
"redshift",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "15.5"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.7.3"
}
},
"run-mode": "prod",
"plan-alias": "",
"version": {
"date": "2024-08-13",
"tag": "v0.50.20",
"hash": "df82d58"
},
"settings": {
"report-timezone": null
}
}
}