Redmine-Periodic-Task v3.0.1 Error

Added by Bogdan Vasile almost 5 years ago

https://github.com/jperelli/Redmine-Periodic-Task

when i try to:
cd /var/www/; rake redmine:check_periodictasks RAILS_ENV="production"

i get the error:
rake aborted!
ArgumentError: wrong number of arguments (1 for 0)
/usr/local/rvm/gems/ruby-2.1.0/gems/activerecord-4.2.1/lib/active_record/scoping/named.rb:24:in all' /var/www/.............../plugins/periodictask/lib/scheduled_tasks_checker.rb:3:inchecktasks!'
/var/www/.............../plugins/periodictask/lib/tasks/periodictask.rake:11:in block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:ineval'
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in
Tasks: TOP => redmine:check_periodictasks

Replies (2)

RE: Redmine-Periodic-Task v3.0.1 Error - Added by Eduard Gan almost 5 years ago

Almost same error on Debian 8, Redmine 3.1:

root@REDMINE-TEST:/home/user# cd /var/www/redmine ; rake redmine:check_periodictasks RAILS_ENV=production                                                                                                      rake aborted!
ArgumentError: wrong number of arguments (1 for 0)
/var/lib/gems/2.1.0/gems/activerecord-4.2.3/lib/active_record/scoping/named.rb:24:in `all'
/var/www/redmine/plugins/periodictask/lib/scheduled_tasks_checker.rb:3:in `checktasks!'
/var/www/redmine/plugins/periodictask/lib/tasks/periodictask.rake:11:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:check_periodictasks
(See full trace by running task with --trace)
root@REDMINE-TEST:/var/www/redmine#
root@REDMINE-TEST:/var/www/redmine#
root@REDMINE-TEST:/var/www/redmine# cd /var/www/redmine ; rake redmine:check_periodictasks RAILS_ENV=production --trace
** Invoke redmine:check_periodictasks (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:check_periodictasks
rake aborted!
ArgumentError: wrong number of arguments (1 for 0)
/var/lib/gems/2.1.0/gems/activerecord-4.2.3/lib/active_record/scoping/named.rb:24:in `all'
/var/www/redmine/plugins/periodictask/lib/scheduled_tasks_checker.rb:3:in `checktasks!'
/var/www/redmine/plugins/periodictask/lib/tasks/periodictask.rake:11:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => redmine:check_periodictasks
root@REDMINE-TEST:/var/www/redmine#

Redmine installed in /var/www/redmine

Plugin installed from git in /var/www/redmine/plugins/periodictask

root@REDMINE-TEST:/var/www/redmine# ls plugins/
a_common_libs  periodictask  README  single_auth

Platform is:


Environment:
  Redmine version                3.1.0.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.3
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  a_common_libs                  1.1.4
  periodictask                   3.0.2
  single_auth                    2.0.0

RE: Redmine-Periodic-Task v3.0.1 Error - Added by Julian Perelli almost 5 years ago

Hi! I'm the maintainer, didn't see this message.

I fixed this issue. It should be working ok now (version 3.0.3)

Please let me know if something is not working right, directly opening an issue in gihub.

(1-2/2)