@bbodenmiller opened this Issue on February 11th 2021

Expected Behavior

Per https://matomo.org/docs/setup-auto-archiving/#linux-unix-how-to-set-up-a-crontab-to-automatically-archive-the-reports when MAILTO environment variable is set before running core:archive it is supposed to send an email if archive fails. Have verified mail settings are set correctly as other emails from Matomo are working.

Current Behavior

core:archive is failing and the emails are not being sent.

Possible Solution

Steps to Reproduce (for Bugs)

  1. Setup cron job to run export MAILTO='me<a class='mention' href='https://github.com/domain'>@domain</a>.com' && console core:archive --url=https://matomo.domain.com
  2. Do something to make job fail
  3. Verify job ran and failed
  4. See that email is never received


Your Environment

@tsteur commented on February 11th 2021 Member

Hi @bbodenmiller

Just to verify: does your crontab look like there and mailto is on its own line?


MAILTO is a crontab feature, not a Matomo feature so I don't think using export and running it on command line like above would work unfortunately.

@bbodenmiller commented on February 12th 2021

Interesting. I thought it was Matomo feature. I'm using https://docs.pivotal.io/scheduler/1-2/index.html for scheduling which must not support this feature. Looks like it wouldn't work for windows either.

@tsteur commented on February 14th 2021 Member

@bbodenmiller is there maybe a way to use regular crontab or so? I'll meanwhile rename this issue to describe it as a new enhancement (as it's not a bug)

Powered by GitHub Issue Mirror