Project

General

Profile

[SOLVED] receive_imap errors

Added by Wayne Oliver over 8 years ago

Good day all,

I have actually logged a bug #22661

Having trouble fetching email with a new redmine 3.2.1 install
Any pointers would be appreciated.

Environment:
Redmine version 3.2.1.stable
Ruby version 2.1.4-p265 (2014-10-27) [x86_64-linux]
Rails version 4.2.5.2
Environment production
Database adapter Mysql2
SCM:
Git 1.9.1
Filesystem
Redmine plugins:
redmine_bootstrap_kit 0.2-devel
redmine_omniauth_google 0.0.1

$ RAILS_ENV="production"  bin/about 
: No such file or directory
/usr/bin/rake -f /home/redmine/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com username="xxxx" password=xxxxport=993 ssl=1 project=testing folder="test" --trace
rake aborted!
NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:40:in `<module:Helpers>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:4:in `<module:ActionView>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:3:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionview-4.2.5.2/lib/action_view/base.rb:5:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionview-4.2.5.2/lib/action_view/view_paths.rb:1:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-4.2.5.2/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:204:in `<class:Base>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:164:in `<module:ActionController>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:5:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-action_caching-1.1.1/lib/action_controller/action_caching.rb:13:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:91:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:91:in `rescue in block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:68:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
/home/redmine/redmine/config/application.rb:5:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:93:in `load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:77:in `block in run'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'
LoadError: cannot load such file -- actionpack-action_caching
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
/home/redmine/redmine/config/application.rb:5:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:93:in `load_rakefile'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:77:in `block in run'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/rake-11.1.2/lib/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'

Replies (10)

RE: receive_imap errors - Added by Toshi MARUYAMA over 8 years ago

Try "bundle exec rake ...".

RE: receive_imap errors - Added by Wayne Oliver over 8 years ago

Thanks for the input, and apologies for creating a defect if it's not a defect.
It does not seem to be able to run. Please see my output below.

Do I need test/dev dbs?

Here are my outputs.

redmine@git:~/redmine$ bundle exec rake
rake aborted!
Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)
/home/redmine/.rvm/gems/ruby-2.1.4/gems/mysql2-0.3.20/lib/mysql2/client.rb:70:in `connect'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/mysql2-0.3.20/lib/mysql2/client.rb:70:in `initialize'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/connection_handling.rb:87:in `connection'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/model_schema.rb:230:in `table_exists?'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/primary_key.rb:97:in `get_primary_key'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/primary_key.rb:85:in `reset_primary_key'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/primary_key.rb:73:in `primary_key'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:15:in `attributes_protected_by_default'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:337:in `block in protected_attributes_configs'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:222:in `yield'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:222:in `protected_attributes'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:126:in `block in attr_protected'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:125:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:125:in `attr_protected'
/home/redmine/redmine-3.2.1/app/models/custom_field.rb:36:in `<class:CustomField>'
/home/redmine/redmine-3.2.1/app/models/custom_field.rb:18:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:360:in `require_or_load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:494:in `load_missing_constant'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in `const_missing'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:526:in `load_missing_constant'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in `const_missing'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:526:in `load_missing_constant'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in `const_missing'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:526:in `load_missing_constant'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in `const_missing'
/home/redmine/redmine-3.2.1/lib/redmine/field_format.rb:87:in `field_attributes'
/home/redmine/redmine-3.2.1/lib/redmine/field_format.rb:90:in `<class:Base>'
/home/redmine/redmine-3.2.1/lib/redmine/field_format.rb:48:in `<module:FieldFormat>'
/home/redmine/redmine-3.2.1/lib/redmine/field_format.rb:19:in `<module:Redmine>'
/home/redmine/redmine-3.2.1/lib/redmine/field_format.rb:18:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.2.1/lib/redmine.rb:38:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.2.1/config/initializers/30-redmine.rb:6:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `block in load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `load'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/engine.rb:652:in `block in load_config_initializer'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/notifications.rb:166:in `instrument'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/engine.rb:651:in `load_config_initializer'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/engine.rb:615:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/engine.rb:615:in `block in <class:Engine>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in `instance_exec'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in `run'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/initializable.rb:54:in `run_initializers'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/application.rb:352:in `initialize!'
/home/redmine/redmine-3.2.1/config/environment.rb:14:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.2.1/test/test_helper.rb:26:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.2.1/test/functional/account_controller_openid_test.rb:18:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:114:in `block (3 levels) in define'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:114:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:114:in `block (2 levels) in define'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:113:in `each'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:113:in `block in define'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/sub_test_task.rb:20:in `invoke_rake_task'
/home/redmine/.rvm/gems/ruby-2.1.4/gems/railties-4.2.5.2/lib/rails/test_unit/testing.rake:8:in `block in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'
/home/redmine/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test:run
(See full trace by running task with --trace)
redmine@git:~/redmine$ RAILS_ENV="production" bundle exec rake
Abort testing: Your Rails environment is running in production mode!

RE: receive_imap errors - Added by Wayne Oliver over 8 years ago

I have since even tried a different version of ruby, can anyone tell me what I am doing wrong?

Thanks

Environment:
  Redmine version                3.2.1.stable
  Ruby version                   2.2.4-p230 (2015-12-16) [x86_64-linux]
  Rails version                  4.2.5.2
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.8
  Git                            1.9.1
  Filesystem                     
Redmine plugins:
  redmine_bootstrap_kit          0.2-devel
  redmine_omniauth_google        0.0.1
redmine@git:~/redmine$ /usr/bin/rake -f /home/redmine/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com username="xxx" password="xxx" port=993 ssl=true project=help-desk folder="helpdesk" --trace
rake aborted!
NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper
/usr/local/rvm/gems/ruby-2.2.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:40:in `<module:Helpers>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:4:in `<module:ActionView>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionview-4.2.5.2/lib/action_view/helpers.rb:3:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionview-4.2.5.2/lib/action_view/base.rb:5:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionview-4.2.5.2/lib/action_view/view_paths.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-4.2.5.2/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:204:in `<class:Base>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:164:in `<module:ActionController>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-4.2.5.2/lib/action_controller/base.rb:5:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-action_caching-1.1.1/lib/action_controller/action_caching.rb:13:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `require'
/usr/local/rvm/gems/ruby-2.2.4/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:102:in `require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:102:in `rescue in block in require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:79:in `block in require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:72:in `each'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:72:in `require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler.rb:102:in `require'
/home/redmine/redmine/config/application.rb:5:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'
LoadError: cannot load such file -- actionpack-action_caching
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:88:in `require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:88:in `block (2 levels) in require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:83:in `each'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:83:in `block in require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:72:in `each'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler/runtime.rb:72:in `require'
/usr/local/rvm/gems/ruby-2.2.4/gems/bundler-1.12.0/lib/bundler.rb:102:in `require'
/home/redmine/redmine/config/application.rb:5:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.4/gems/rake-11.1.2/lib/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'

RE: receive_imap errors - Added by Toshi MARUYAMA over 8 years ago

Do not use "/usr/bin/rake ...",
Use "bundle exec rake ..." instead.

RE: receive_imap errors - Added by Wayne Oliver over 8 years ago

Thank you,

I am sorry I did not understand you the first time round.
That makes perfect sense now.

Your patience and assistance is much appreciated.

RE: [SOLVED] receive_imap errors - Added by Olivier Houdas over 8 years ago

Dear Wayne,
Did you finally get your rake command to fetch mails?
Since we upgraded to Redmine 3.2.1 (from 3.2.0), it stopped working on our server, and the only solution we found was to revert the mail gem back from version 2.6.4 to 2.6.3.

So I would be interested to know if you got it to work with mail-2.6.4 (you can run "gem list mail" to list your installed versions of this gem).

RE: [SOLVED] receive_imap errors - Added by Wayne Oliver over 8 years ago

Yeah I did,

By taking Toshi's advice, I just took a while to understand him.


# Redmine Email processing
*/5 * * * * /bin/bash -l -c 'cd ~/redmine; bundle exec rake -f /home/redmine/redmine/Rakefile ......

oops


redmine@git:~$ gem list mail

*** LOCAL GEMS ***

actionmailer (4.2.6, 4.2.5.2)
mail (2.6.4)

RE: [SOLVED] receive_imap errors - Added by Olivier Houdas over 8 years ago

Thank you very much for your reply. I tried to force the rakefile as well (I wasn't doing it before, and it was working fine, but just in case...), and did not make it work on my server.
I'll open a different item on the forum to try and solve my issue.

RE: [SOLVED] receive_imap errors - Added by Wayne Oliver over 8 years ago

Are you using your system ruby / bundle or did you one install in /usr/local ?
I had problems using the system ruby / budle hence running everything from /usr/local/rvm

RE: [SOLVED] receive_imap errors - Added by Olivier Houdas over 8 years ago

I use the one from /usr/local/rvm/bin.
And again, it works perfectly when I use mail 2.6.3, so I think my problem is different from yours. But thank you for your help.

    (1-10/10)