Content
You are here:
Email notifications stop from 5.0.11 update
Added by Francois Lamotte over 8 years ago
The cron job works every minute and does not log any error.
But it fails to send any notification.
Does anyone encounter this problem? It was working pretty well with our previous version in the same configuration.
crontab entry */1 * * * * cd /home/spade/www/projects5;RAILS_ENV=production bundle exec /usr/local/rvm/wrappers/ruby-2.2.3@openproject5/rake jobs:workoff >/dev/null 2>&1 :~/www/projects$ RAILS_ENV=production bundle exec /usr/local/rvm/wrappers/ruby-2.2.3@openproject5/rake jobs:workoff /media/disk2/home/www/projects/vendor/bundler/ruby/2.2.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line 80 ignored: "name" [Worker(host:vm.openproject.install pid:23620)] Starting job worker [Worker(host:vm.openproject.install pid:23620)] Job EnqueueWorkPackageNotificationJob (id=3771) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job EnqueueWorkPackageNotificationJob (id=3771) COMPLETED after 0.9210 [Worker(host:vm.openproject.install pid:23620)] Job EnqueueWorkPackageNotificationJob (id=3772) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job EnqueueWorkPackageNotificationJob (id=3772) COMPLETED after 0.2903 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3773) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3773) COMPLETED after 1.3824 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3774) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3774) COMPLETED after 0.7100 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3775) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3775) COMPLETED after 0.8166 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3776) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3776) COMPLETED after 0.8000 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3777) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3777) COMPLETED after 0.6333 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3778) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3778) COMPLETED after 0.6997 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3779) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3779) COMPLETED after 0.5415 [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3780) RUNNING [Worker(host:vm.openproject.install pid:23620)] Job DeliverWorkPackageNotificationJob (id=3780) COMPLETED after 0.1226 [Worker(host:vm.openproject.install pid:23620)] 10 jobs processed at 1.2911 j/s, 0 failed [Worker(host:vm.openproject.install pid:23620)] No more jobs available. Exiting
Replies (2)
Hi Francois,
what configuration do you use? (e.g., SMTP, sendmail?). Is there any output in the mail.log?
Best,
Oliver
well i try different variant inside the user crontab and it seems that the task “rake jobs:workoff” was not triggering, now it does with the following enclosure /bin/bash -l -c ‘’
/1 * * * /bin/bash -l -c ‘cd /home/spade/www/projects5;RAILS_ENV=production /usr/local/rvm/gems/ruby-2.2.3@openproject5/bin/bundle exec /usr/local/rvm/wrappers/ruby-2.2.3@openproject5/rake jobs:workoff —silent’
thank you for your time