{"action":"created","issue":{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/90","labels_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/90/comments","events_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/90/events","html_url":"https://github.com/nutso/redmine-plugin-recurring-tasks/issues/90","id":91817954,"number":90,"title":"redmine:recur_tasks launched with errors and aborted","user":{"login":"insspb","id":1916759,"avatar_url":"https://avatars.githubusercontent.com/u/1916759?v=3","gravatar_id":"","url":"https://api.github.com/users/insspb","html_url":"https://github.com/insspb","followers_url":"https://api.github.com/users/insspb/followers","following_url":"https://api.github.com/users/insspb/following{/other_user}","gists_url":"https://api.github.com/users/insspb/gists{/gist_id}","starred_url":"https://api.github.com/users/insspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insspb/subscriptions","organizations_url":"https://api.github.com/users/insspb/orgs","repos_url":"https://api.github.com/users/insspb/repos","events_url":"https://api.github.com/users/insspb/events{/privacy}","received_events_url":"https://api.github.com/users/insspb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T14:19:51Z","updated_at":"2015-06-29T14:23:18Z","closed_at":null,"body":"I am trying to launch on my test server (from redmine directory) but it does not work. \r\n\r\nOutput:\r\n[redmine@redmine plugins]$ cd /srv/redmine/ && bundle exec rake RAILS_ENV=production redmine:recur_tasks\r\nChecking for Redmine recurring tasks.\r\nrake aborted!\r\nNoMethodError: undefined method `-' for nil:NilClass\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:252:in `recur_issue_if_needed!'\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:317:in `block in add_recurrences!'\r\n/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `each'\r\n/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `each'\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:316:in `add_recurrences!'\r\n/srv/redmine/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:12:in `block (2 levels) in <top (required)>'\r\nTasks: TOP => redmine:recur_tasks\r\n(See full trace by running task with --trace)\r\n[redmine@redmine ~]$\r\n\r\n\r\nOutput with --trace\r\n[redmine@redmine ~]$ cd /srv/redmine/ && bundle exec rake RAILS_ENV=production redmine:recur_tasks --trace\r\n** Invoke redmine:recur_tasks (first_time)\r\n** Invoke environment (first_time)\r\n** Execute environment\r\n** Execute redmine:recur_tasks\r\nChecking for Redmine recurring tasks.\r\nrake aborted!\r\nNoMethodError: undefined method `-' for nil:NilClass\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:252:in `recur_issue_if_needed!'\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:317:in `block in add_recurrences!'\r\n/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `each'\r\n/srv/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `each'\r\n/srv/redmine/plugins/recurring_tasks/app/models/recurring_task.rb:316:in `add_recurrences!'\r\n/srv/redmine/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:12:in `block (2 levels) in <top (required)>'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in `call'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in `each'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in `execute'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_with_call_chain'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:150:in `invoke_task'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in `each'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in `block in top_level'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:115:in `run_with_threads'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:100:in `top_level'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:78:in `block in run'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in `run'\r\n/srv/redmine/.rvm/rubies/ruby-2.2.1/bin/rake:33:in `<main>'\r\nTasks: TOP => redmine:recur_tasks\r\n[redmine@redmine ~]$\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/comments/116697126","html_url":"https://github.com/nutso/redmine-plugin-recurring-tasks/issues/90#issuecomment-116697126","issue_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/90","id":116697126,"user":{"login":"insspb","id":1916759,"avatar_url":"https://avatars.githubusercontent.com/u/1916759?v=3","gravatar_id":"","url":"https://api.github.com/users/insspb","html_url":"https://github.com/insspb","followers_url":"https://api.github.com/users/insspb/followers","following_url":"https://api.github.com/users/insspb/following{/other_user}","gists_url":"https://api.github.com/users/insspb/gists{/gist_id}","starred_url":"https://api.github.com/users/insspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insspb/subscriptions","organizations_url":"https://api.github.com/users/insspb/orgs","repos_url":"https://api.github.com/users/insspb/repos","events_url":"https://api.github.com/users/insspb/events{/privacy}","received_events_url":"https://api.github.com/users/insspb/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:23:18Z","updated_at":"2015-06-29T14:23:18Z","body":"Tested on both versions. Develop and master. "}}