Bug #25

Whining rake run in Redmine 1.2.1

Added by picman almost 3 years ago. Updated over 2 years ago.

Status:ResolvedStart date:2011-10-15
Priority:NormalDue date:
Assignee:chantra% Done:


Category:GeneralSpent time:-
Target version:-
Affected Version:v0.0.6


root@kdp:/opt/redmine# rake redmine:send_whining days=14 RAILS_ENV=production
(in /opt/redmine-1.2.1)
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
Missing template whining_mailer/whining.text.erb in view path app/views


#1 Updated by YuriyVidineev over 2 years ago

I have the same problem with Redmine 1.3

/usr/bin/rake redmine:send_inactive_report days=30 RAILS_ENV="production" 
(in /var/www/redmine)
Invalid gemspec in [/var/lib/gems/1.8/specifications/rack-cache-1.0.3.gemspec]: invalid date format in specification: "2011-08-27 00:00:00.000000000Z" 
Invalid gemspec in [/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z" 
rake aborted!
Missing template inactive_mailer/inactive_report.text.erb in view path vendor/plugins/redmine-graphs-plugin/app/views:vendor/plugins/redmine-mylyn-connector/app/views:vendor/plugins/redmine_charts/app/views:vendor/plugins/redmine_code_review/app/views:vendor/plugins/redmine_google_calendar/app/views:vendor/plugins/redmine_inactive_report/app/views:vendor/plugins/redmine_niko_cale/app/views:vendor/plugins/redmine_opensearch/app/views:vendor/plugins/redmine_project_filtering/app/views:vendor/plugins/redmine_scrumdashboard/app/views:vendor/plugins/redmine_time_tracker/app/views:vendor/plugins/redmine_user_profiles/app/views:vendor/plugins/redmine_version_burndown_charts/app/views:vendor/plugins/simple_ci/app/views:app/views

(See full trace by running task with --trace)

#2 Updated by gkuhn43 over 2 years ago

I also encountered this problem after updating to Redmine 1.3. After some investigation, it looks like the naming format of the mailing templates has changed with the newer version of redmine. I was able to work around the issue by using symbolic links.

This is what I did:

$ cd {REDMINE_HMOE}/vendor/plugins/redmine_whining/app/views/whining_mailer
$ ln -s whining.text.plain.rhtml whining.text.erb
$ ln -s whining.text.html.rhtml whining.html.erb

I then successfully ran the whining script from the command line as a test.

Hope this helps some others.

#3 Updated by chantra over 2 years ago

  • Status changed from New to Resolved


This sounds like a reasonable fix. I have updated master and 0.0.X branches on git repository

Also available in: Atom PDF