Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redmine:recur_tasks launched with errors and aborted #90

Closed
insspb opened this issue Jun 29, 2015 · 3 comments
Closed

redmine:recur_tasks launched with errors and aborted #90

insspb opened this issue Jun 29, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@insspb
Copy link

insspb commented Jun 29, 2015

I am trying to launch on my test server (from redmine directory) but it does not work.

Output:
[redmine@redmine plugins]$ cd /srv/redmine/ && bundle exec rake RAILS_ENV=production redmine:recur_tasks
Checking for Redmine recurring tasks.
rake aborted!
NoMethodError: undefined method -' for nil:NilClass /srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:252:inrecur_issue_if_needed!'
/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:317:in block in add_recurrences!' /srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:ineach'
/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in each' /srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:316:inadd_recurrences!'
/srv/redmine/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:12:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:recur_tasks
(See full trace by running task with --trace)
[redmine@redmine ~]$

Output with --trace
[redmine@redmine ~]$ cd /srv/redmine/ && bundle exec rake RAILS_ENV=production redmine:recur_tasks --trace
** Invoke redmine:recur_tasks (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:recur_tasks
Checking for Redmine recurring tasks.
rake aborted!
NoMethodError: undefined method -' for nil:NilClass /srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:252:inrecur_issue_if_needed!'
/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:317:in block in add_recurrences!' /srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:ineach'
/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in each' /srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:316:inadd_recurrences!'
/srv/redmine/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:12:in block (2 levels) in <top (required)>' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:incall'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in block in execute' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:ineach'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in execute' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:179:inblock in invoke_with_call_chain'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in invoke' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:150:ininvoke_task'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in block (2 levels) in top_level' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:ineach'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in block in top_level' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:115:inrun_with_threads'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:100:in top_level' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:78:inblock in run'
/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in standard_exception_handling' /srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:inrun'
/srv/redmine/.rvm/rubies/ruby-2.2.1/bin/rake:33:in `

'
Tasks: TOP => redmine:recur_tasks
[redmine@redmine ~]$

@insspb
Copy link
Author

insspb commented Jun 29, 2015

Tested on both versions. Develop and master.

nutso added a commit that referenced this issue Jun 30, 2015
@nutso nutso added this to the v2.0.0 milestone Jun 30, 2015
@nutso nutso self-assigned this Jun 30, 2015
@nutso nutso added the bug label Jun 30, 2015
@nutso
Copy link
Owner

nutso commented Jun 30, 2015

recreated the issue when the issue that's recurring does not have either a start or due date. resolved in develop and master, will be included in next release.

@insspb
Copy link
Author

insspb commented Jun 30, 2015

Works fine now. Thx.

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

No branches or pull requests

2 participants