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

Error on install - Redmine 5.1.1 - WKtime 4.7.1 #306

Open
neofly opened this issue Jan 4, 2024 · 3 comments
Open

Error on install - Redmine 5.1.1 - WKtime 4.7.1 #306

neofly opened this issue Jan 4, 2024 · 3 comments

Comments

@neofly
Copy link

neofly commented Jan 4, 2024

Hi,
I wanted to try your plugin but when I try to install the plugin with : RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_wktime I have an error : Tried to load unspecified class: Set

Psych is not in the Gemfile of redmine 5.1.1 (but it was in the redmine 5.0 Gemfile)

Thanks for your help.

Here is the output :

Caused by:
Psych::DisallowedClass: Tried to load unspecified class: Set
/opt/redmine/redmine5.1.1/app/models/setting.rb:111:in `value'
/opt/redmine/redmine5.1.1/app/models/setting.rb:125:in `[]'
/opt/redmine/redmine5.1.1/app/models/setting.rb:320:in `plugin_redmine_wktime'
/opt/redmine/redmine5.1.1/plugins/redmine_wktime/db/migrate/20210902125010_create_wk_delivery_items.rb:27:in `block (2 levels) in change'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:752:in `up'
/opt/redmine/redmine5.1.1/plugins/redmine_wktime/db/migrate/20210902125010_create_wk_delivery_items.rb:26:in `block in change'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:788:in `block in reversible'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1016:in `execute_block'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:788:in `reversible'
/opt/redmine/redmine5.1.1/plugins/redmine_wktime/db/migrate/20210902125010_create_wk_delivery_items.rb:25:in `change'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:867:in `exec_migration'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:851:in `block (2 levels) in migrate'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:850:in `block in migrate'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:849:in `migrate'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1037:in `migrate'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1329:in `block in execute_migration_in_transaction'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1382:in `ddl_transaction'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1328:in `execute_migration_in_transaction'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1302:in `each'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1302:in `migrate_without_lock'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1251:in `block in migrate'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1401:in `block in with_advisory_lock'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1416:in `block in with_advisory_lock_connection'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1416:in `with_advisory_lock_connection'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1397:in `with_advisory_lock'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1251:in `migrate'
/opt/redmine/redmine5.1.1/lib/redmine/plugin.rb:470:in `up'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/activerecord-6.1.7.6/lib/active_record/migration.rb:1061:in `migrate'
/opt/redmine/redmine5.1.1/lib/redmine/plugin.rb:506:in `migrate_plugin'
/opt/redmine/redmine5.1.1/lib/redmine/plugin.rb:443:in `migrate'
/opt/redmine/redmine5.1.1/lib/redmine/plugin.rb:454:in `migrate'
/opt/redmine/redmine5.1.1/lib/tasks/redmine.rake:151:in `block (3 levels) in <top (required)>'
/opt/redmine/redmine5.1.1/vendor/bundle/ruby/3.1.0/gems/rake-13.1.0/exe/rake:27:in `<top (required)>'
/opt/redmine/.rvm/gems/ruby-3.1.4/bin/ruby_executable_hooks:22:in `eval'
/opt/redmine/.rvm/gems/ruby-3.1.4/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => redmine:plugins:migrate
@neofly
Copy link
Author

neofly commented Jan 5, 2024

I forgot to specify the migration concerned is : 20210902125010_create_wk_delivery_items.rb (but it's visible in the output I previously sent)

@cdhana17
Copy link
Collaborator

cdhana17 commented Jan 5, 2024

Hi,
what version of ruby, DB and OS do you have ?

if you remove the plugin from the plugin folder, does the redmine work fine ?

Thanks
Dhanalakshmi

@neofly
Copy link
Author

neofly commented Jan 5, 2024

Hello,
I use Ruby 3.1.4 with MariaDB 10.5 (Mysql2 adapter) on Debian 11.
Redmine was working fine without the plugin installed.

Thanks.

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

No branches or pull requests

2 participants