Reminder emails on self-contained installations

Keywords: Redmine - Virtual Machines - How to - Email configuration (SMTP)

Im using latest (4.2.1-0) self-contained Redmine installation and really want to understand how to properly configure and exec reminder emails.

What I already did:

But, crontab output is:

CRON[22211]: pam_unix(cron:session): session opened for user root by (uid=0)
CRON[22212]: (root) CMD (/opt/bitnami/ruby/bin/rake -f /opt/bitnami/apps/redmine/htdocs/Rakefile redmine:send_reminders days=7 RAILS_ENV=“production”)
CRON[22211]: (CRON) info (No MTA installed, discarding output)
CRON[22211]: pam_unix(cron:session): session closed for user root

No emails are sent.

And if I manually run reminder emails command, output is:

~# /opt/bitnami/ruby/bin/rake -f /opt/bitnami/apps/redmine/htdocs/Rakefile redmine:send_reminders days=7 RAILS_ENV=“production”
rake aborted!
Gem::LoadError: You have already activated rake 13.0.1, but your Gemfile requires rake 13.0.3. Prepending bundle exec to your command may solve this.
/opt/bitnami/apps/redmine/htdocs/config/boot.rb:6:in <top (required)>' /opt/bitnami/apps/redmine/htdocs/config/application.rb:3:in <top (required)>’
/opt/bitnami/apps/redmine/htdocs/Rakefile:5:in `<top (required)>’
(See full trace by running task with --trace)

No emails are sent.

What I do wrong? How to properly configure reminder emails in self-contained installs?

Hello @rk1,

We have a Support Tool that will gather relevant information for us to analyze your configuration and logs. Could you please execute it on the machine where the stack is running by following the steps described in the guide below?

Please note that you need to paste the code ID that is shown at the end.

Code ID is: 7a1414a5-17ae-34cd-450c-37e132126f73

Hello @rk1,

I have found a similar issue. Could you take a look?

I hope it helps

Sorry, I don’t get it. I’m already on fresh install.

But, I’ve got reminder emails working via commands:

~# cd /opt/bitnami/apps/redmine/htdocs/
~# bundle exec rake redmine:send_reminders days=7 RAILS_ENV=“production”

So, I got it working in cron only via bash script:

cd /opt/bitnami/apps/redmine/htdocs
bundle exec rake redmine:send_reminders days=7 RAILS_ENV=“production”

So, my question is still open: how to properly configure reminder emails via cron in Redmine stack? It is not stated in the documentation.

Hello @rk1,

First of all, there is a typo in our documentation (I will fix it today).

0 30 * * * --> 30 0 * * *

Apart from that could you try this line in your crontab?

30 0 * * * cd /opt/bitnami/apps/redmine/htdocs && /opt/bitnami/ruby/bin/bundle exec /opt/bitnami/ruby/bin/rake -f /opt/bitnami/apps/redmine/htdocs/Rakefile redmine:send_reminders days=7 RAILS_ENV="production"