Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Mails are not sent by the cron job #22

Closed
Guite opened this issue Dec 6, 2012 · 6 comments
Closed

Mails are not sent by the cron job #22

Guite opened this issue Dec 6, 2012 · 6 comments

Comments

@Guite
Copy link

Guite commented Dec 6, 2012

Hi,

if I change into my redmine directory and call:

bundle exec rake redmine:reminder_plugin:send_notifications RAILS_ENV=production

then the email is sent correctly.

But when using the cronjob it does not work.

0 5 * * * RedmineUser cd /var/.../redmine/redmine; rake redmine:redminder_plugin:send_notifications RAILS_ENV="production" &> /tmp/redmine_due_date_reminder.log

Any idea what we can try to find out the problem cause?

@assist-software
Copy link

Check the errors from /tmp/redmine_due_date_reminder.log

I had to add path to bins

@Guite
Copy link
Author

Guite commented Jan 26, 2013

Fixed by changing the syntax to:

0 5 * * * RedmineUser cd /var/.../redmine/redmine; rake redmine:send_reminders RAILS_ENV="production"

The actual task name (send_reminders) I found with rake -T.

@Guite Guite closed this as completed Jan 26, 2013
@f0y
Copy link
Owner

f0y commented Jan 26, 2013

rake redmine:send_reminders is not plugin task. It's built in redmine functionality.

Cron job does not work because of misprint in word reminder in command rake redmine:redminder_plugin:send_notifications.

@Guite
Copy link
Author

Guite commented Jan 26, 2013

Thanks for bringing this up! 👍

@Guite
Copy link
Author

Guite commented Jan 26, 2013

Works! Thanks again.

@matbott
Copy link

matbott commented Nov 8, 2014

I have the same problem. my cron line: cd / opt / bitnami / apps / htdocs; rake redmine: send_reminders RAILS_ENV = "production"

Log cron:
rake redmine: send_reminders RAILS_ENV = "production")
November 8 11:21:01 linux CRON [32050]: (root) MAIL (mailed 1 byte of output, but got status 0x004b, # 012)

Any suggestions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants