Can´t install Plugin

Added by Francesco Ferrari francesco 3 months ago

Hi there,

I would like to know if someone could help me?! I´m trying to install the plugin easyproject (Easyredmine) but it throws an error:

[root@redmine]# bundle exec rake easyproject:install RAILS_ENV=production
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
Invoking generate_secret_token...
Invoking change_plugins_order...
Invoking clearing session...
Invoking db:migrate...
Invoking redmine:plugins:migrate...
Migrating ckeditor (Ckeditor)...
Migrating clipboard_image_paste (Clipboard image paste)...
Migrating easy_cocoon (Easy cocoon)...
Migrating easy_extensions (easyproject_name)...
AddDefaultTimesToCalendars: migrating ===================================
-- table_exists?(:easy_user_working_time_calendars)
-> 0.0008s
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

undefined method `name' for nil:NilClass
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:57:in `cached_counter_attribute_name'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:53:in `has_cached_counter?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:36:in `count_records'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:261:in `size'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:280:in `empty?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:287:in `any?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:46:in `any?'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/app/models/easy_user_time_calendar.rb:283:in `propagate_inherited_values'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:417:in `_run__4111359495584273716__update__4274869751722719964__callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_update_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:272:in `update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:458:in `_run__4111359495584273716__save__4274869751722719964__callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:84:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/validations.rb:50:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in `block in save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:258:in `save'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:14:in `block in up'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:11:in `each'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:11:in `up'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `ddl_transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `block in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate'
/var/www/html/redmine_epiroc/lib/redmine/plugin.rb:453:in `migrate_plugin'
/var/www/html/redmine_epiroc/lib/redmine/plugin.rb:425:in `migrate'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:103:in `block in migrate'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:102:in `each'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:102:in `migrate'
/var/www/html/redmine_epiroc/lib/tasks/redmine.rake:74:in `block (3 levels) in <top (required)>'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/installer.rake:19:in `block (2 levels) in <top (required)>'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/installer.rake:47:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:24:in `<main>'

Caused by:
NoMethodError: undefined method `name' for nil:NilClass
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:57:in `cached_counter_attribute_name'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:53:in `has_cached_counter?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/has_many_association.rb:36:in `count_records'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:261:in `size'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:280:in `empty?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:287:in `any?'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:46:in `any?'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/app/models/easy_user_time_calendar.rb:283:in `propagate_inherited_values'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:417:in `_run__4111359495584273716__update__4274869751722719964__callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_update_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:272:in `update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:458:in `_run__4111359495584273716__save__4274869751722719964__callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:84:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/validations.rb:50:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in `block in save'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:258:in `save'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:14:in `block in up'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:11:in `each'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/db/migrate/20120717151800_add_default_times_to_calendars.rb:11:in `up'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `ddl_transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `block in migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate'
/var/www/html/redmine_epiroc/lib/redmine/plugin.rb:453:in `migrate_plugin'
/var/www/html/redmine_epiroc/lib/redmine/plugin.rb:425:in `migrate'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:103:in `block in migrate'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:102:in `each'
/var/www/html/redmine_epiroc/plugins/easyproject/init.rb:102:in `migrate'
/var/www/html/redmine_epiroc/lib/tasks/redmine.rake:74:in `block (3 levels) in <top (required)>'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/installer.rake:19:in `block (2 levels) in <top (required)>'
/var/www/html/redmine_epiroc/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/installer.rake:47:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => redmine:plugins:migrate
(See full trace by running task with --trace)

Thanks in advance,

Franthesco

Responder

Replies (2)

RE: Can´t install Plugin - Added by Trisha Patel 3 months ago

following, I was facing the same problem...

RE: Can´t install Plugin - Added by Go MAEDA 3 months ago

Maybe EasyRedmine has a support team. Why don't you contact them?

(1-2/2)