Support #8

Missing emails

Added by yaio almost 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:2010-08-13
Priority:NormalDue date:
Assignee:chantra% Done:

100%

Category:EmailSpent time:-
Target version:v0.0.4
Affected Version:

Description

Hello, I've a problem with Whining. When it is launched, it doesn't raise any errors, but I can't receive any emails. The command that is executed by cron is:

cd /home/myusername/etc/rails_apps/redmine && rake redmine:send_whining days=7 RAILS_ENV="production"

As output, I receive an email from cron with only this text:
(in /home/myusername/etc/rails_apps/redmine)

(this is the same output I can see if I invoke Whining from commandline)

In /log/production.log I see no entries related to Whining.

I'm running Whining 0.0.3 on Redmine 0.9.6.

I suppose that other "parts" of the system are well-configured because I receive correctly emails from send_remainder . What could the problem be? Very thanks!

issues.txt.zip (686 Bytes) yaio, 2010-08-13 09:11 pm

History

#1 Updated by chantra almost 3 years ago

  • Status changed from New to Feedback
  • Assignee set to chantra

Hi yaio,

Can you run the following SQL query:

SELECT  i.assigned_to_id, i.project_id, i.tracker_id FROM issues AS i, issue_statuses ii WHERE ii.is_closed = 0 AND i.updated_on <= '2010-08-06' ;

That would return all the issue not updated since 7 days and their owner id.

How many rows do you get? Does the first column has an id or is it NULL?

Tks

#2 Updated by yaio almost 3 years ago

Hi chantra, very thanks for the support! I attach the output of the query; I obtain NULL only on some entries. Thanks again!

#3 Updated by chantra almost 3 years ago

yaio wrote:

Hi chantra, very thanks for the support! I attach the output of the query; I obtain NULL only on some entries. Thanks again!

Ok then, obviously there is some entries found.

Does your mail logs show anything?

When running the script, would dumping network show that email are sent or not?

To me it looks like source:lib/tasks/whining.rake@0daa38d2#L35 is called successfully, from there, this is Ruby and RoR magic taking over (which I honestly dont know much about).

Maybe you could try to add some debugging there in order to troubleshoot the issue.

#4 Updated by yaio almost 3 years ago

chantra wrote:

Does your mail logs show anything?

When running the script, would dumping network show that email are sent or not?

I'm on a shared hosting and I've no access to these low-level information. :(

To me it looks like source:lib/tasks/whining.rake@0daa38d2#L35 is called successfully, from there, this is Ruby and RoR magic taking over (which I honestly dont know much about).

Maybe you could try to add some debugging there in order to troubleshoot the issue.

I'm not a Ruby programmer, and I've only added some prints. The whining method (line 35) is not called! Last lines (72-81) are executed, and it's executed also self.whinings (line 54).

#5 Updated by chantra almost 3 years ago

Hum,

I have just changed something in source:lib/tasks/whining.rake@c929ad8d688a7d8e0eccfdc907c90f65b3c28806 .

Could you try that version and check if it helps.

Tks

#6 Updated by yaio almost 3 years ago

Wow, it works now! Very thanks!

#7 Updated by chantra almost 3 years ago

  • Category set to Email
  • Status changed from Feedback to Closed
  • Target version set to v0.0.4
  • % Done changed from 0 to 100

Perfect,

I have pushed version 0.0.4 and included Italian localization ;)

Also available in: Atom PDF