Content
OpenProject 4.0.1 LoadError: cannot load such file -- roar/json/hal
Added by Hwang JR almost 10 years ago
I just git pull the 4.0.1, and then setup:
bundle install
npm install
bower install
RAILS_ENV=“production” bundle exec rake db:migrate
but when i run ‘RAILS_ENV=“production” bundle exec rake db:migrate’, it shows error, i trace the error:
(nodeenv)openproject@06e9ddc23db5:~/openproject$ RAILS_ENV=“production” bundle exec rake db:migrate —trace
require ‘rails/all’… 0.520s
Bundler.require… 1.310s
**** Invoke db:migrate (first_time)
**** Invoke environment (first_time)
**** Execute environment
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
rake aborted!
LoadError: cannot load such file — roar/json/hal
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/openproject-costs-b7699ac99385/lib/api/v3/cost_objects/cost_object_representer.rb:21:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:359:in `require_or_load’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:502:in `load_missing_constant’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:192:in `block in const_missing’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:190:in `each’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:190:in `const_missing’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/openproject-costs-b7699ac99385/lib/open_project/costs/engine.rb:123:in `block in class:Engine’
/home/openproject/openproject/lib/open_project/plugins/acts_as_op_engine.rb:139:in `instance_eval’
/home/openproject/openproject/lib/open_project/plugins/acts_as_op_engine.rb:139:in `block (2 levels) in included’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:451:in `_run_4563201955789066564prepare3621483541702966276_callbacks’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:405:in `__run_callback’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:81:in `run_callbacks’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-3.2.20/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-3.2.20/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/application/finisher.rb:47:in `block in module:Finisher’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `instance_exec’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `run’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:55:in `block in run_initializers’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `each’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `run_initializers’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:136:in `initialize!’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/railtie/configurable.rb:30:in `method_missing’
/home/openproject/openproject/config/environment.rb:36:in `block in <top (required)>’
/home/openproject/openproject/config/application.rb:44:in `block in bench’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/2.1.0/benchmark.rb:279:in `measure’
/home/openproject/openproject/config/application.rb:43:in `bench’
/home/openproject/openproject/config/environment.rb:34:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:103:in `require_environment!’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:201:in `block in invoke_prerequisites’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:199:in `each’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run’
/home/openproject/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.2/bin/rake:23:in `load’
/home/openproject/.rbenv/versions/2.1.2/bin/rake:23:in `
’
Tasks: TOP => db:migrate => environment
Anyone have some ideas?
Replies (12)
Hi Hwang JR,
do you use plugins? If so, can you please paste your Gemfile.plugins so we can narrow down your problem?
Cheers
Karsten
Hi,
after talking to the team I have an idea what could cause your problem. I assume that you use the costs plugin (dev branch). This plugin was updated yesterday. The costs plugin version on the dev branch is not compatible to the stable branch of the openproject core. So please use the stable branch for this plugin too.
As mentioned this is just an educated guess. Hopefully this helps by fixing your problem.
Cheers
Karsten
Hi Karsten,
it seems just the problem. but when i just modify to stable, new problem occurs.
root@61a22f84908d:/home/openproject/openproject# RAILS_ENV=“production” bundle exec rake db:seed —trace
require ‘rails/all’… 0.530s
Bundler.require… 1.330s
**** Invoke db:seed (first_time)
**** Execute db:seed
**** Invoke db:abort_if_pending_migrations (first_time)
**** Invoke environment (first_time)
**** Execute environment
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
1.960s
**** Invoke db:load_config (first_time)
**** Execute db:load_config
**** Execute db:abort_if_pending_migrations
***** Loading all seed data
rake aborted!
ActiveRecord::AssociationTypeMismatch: Role(#70124456842000) expected, got NilClass(#70124395018040)
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/association.rb:210:in `raise_on_type_mismatch’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:310:in `block in replace’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:310:in `each’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:310:in `replace’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:41:in `writer’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/builder/association.rb:51:in `block in define_writers’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/attribute_assignment.rb:78:in `each’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/attribute_assignment.rb:78:in `assign_attributes’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/base.rb:498:in `initialize’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/reflection.rb:183:in `new’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/reflection.rb:183:in `build_association’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/association.rb:239:in `build_record’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:434:in `block in create_record’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:149:in `block in transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:208:in `transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:148:in `transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:433:in `create_record’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_association.rb:119:in `create’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/associations/collection_proxy.rb:46:in `create’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/bundler/gems/openproject-auto_project-d521afbe5849/lib/open_project/auto_project/patches/user_patch.rb:35:in `build_user_project’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:457:in `_run_571928482660629739save3190830745569849272_callbacks’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:405:in `__run_callback’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:385:in `_run_save_callbacks’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/callbacks.rb:81:in `run_callbacks’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/callbacks.rb:264:in `create_or_update’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/persistence.rb:104:in `save!’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/validations.rb:56:in `save!’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/attribute_methods/dirty.rb:33:in `save!’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:264:in `block in save!’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:208:in `transaction’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:311:in `with_transaction_returning_status’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/transactions.rb:264:in `save!’
/home/openproject/openproject/db/seeds/all.rb:84:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/openproject/db/seeds.rb:56:in `block in <top (required)>’
/home/openproject/openproject/db/seeds.rb:52:in `each’
/home/openproject/openproject/db/seeds.rb:52:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:245:in `load’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:245:in `block in load’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:245:in `load’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.20/lib/rails/engine.rb:525:in `load_seed’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-3.2.20/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run’
/home/openproject/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>’
/home/openproject/.rbenv/versions/2.1.0/bin/rake:23:in `load’
/home/openproject/.rbenv/versions/2.1.0/bin/rake:23:in `
’
Tasks: TOP => db:seed
root@61a22f84908d:/home/openproject/openproject# RAILS_ENV=“production” bundle exec rake db:create:all
require ‘rails/all’… 0.520s
Bundler.require… 1.330s
openproject already exists
openproject already exists
openproject_test already exists
root@61a22f84908d:/home/openproject/openproject# RAILS_ENV=“production” bundle exec rake db:migrate
require ‘rails/all’… 0.540s
Bundler.require… 1.360s
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
1.940s
root@61a22f84908d:/home/openproject/openproject# RAILS_ENV=“production” bundle exec rake generate_secret_token
require ‘rails/all’… 0.520s
Bundler.require… 1.340s
root@61a22f84908d:/home/openproject/openproject# RAILS_ENV=“production” bundle exec rake db:seed
require ‘rails/all’… 0.510s
Bundler.require… 1.340s
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
1.980s
***** Loading all seed data
rake aborted!
ActiveRecord::AssociationTypeMismatch: Role(#69834091189340) expected, got NilClass(#69834062698300)
/home/openproject/openproject/db/seeds/all.rb:84:in `<top (required)>’
/home/openproject/openproject/db/seeds.rb:56:in `block in <top (required)>’
/home/openproject/openproject/db/seeds.rb:52:in `each’
/home/openproject/openproject/db/seeds.rb:52:in `<top (required)>’
Tasks: TOP => db:seed
(See full trace by running task with —trace)
Here is my plugin gems:
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’
gem “openproject-auto_project”, :git => “https://github.com/oliverguenther/openproject-auto_project.git”, :branch => ‘dev’
#gem ‘openproject-emoji’,:git => ‘https://github.com/tessi/openproject-emoji.git’, :branch => ‘stable’
gem “openproject-ensure_project_hierarchy”, :git => “https://github.com/oliverguenther/openproject-ensure_project_hierarchy.git”, :branch => ‘dev’
#gem ‘openproject-global_roles’, :git => ‘https://github.com/finnlabs/openproject-global_roles.git’, :branch => ‘stable’
#gem ‘openproject-help_link’, :git => ‘https://github.com/finnlabs/openproject-help_link.git’, :branch => ‘stable’
gem ‘openproject-meeting’, :git => ‘https://github.com/finnlabs/openproject-meeting.git’, :branch => ‘stable’
gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’
gem ‘openproject-pdf_export’, :git => ‘https://github.com/finnlabs/openproject-pdf_export.git’, :branch => ‘stable’
gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’
gem ‘reporting_engine’, :git => ‘https://github.com/finnlabs/reporting_engine.git’, :branch => ‘stable’
gem ‘openproject-translations’, :git => ‘https://github.com/opf/openproject-translations.git’, :branch => ‘stable’
#gem “openproject-git_hosting”, :git => “https://github.com/oliverguenther/openproject-git_hosting.git”, :branch => “stable”
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => ‘stable’
Anyone have some solutions? I just reinstall the project, but this problem still can’t resolve…HELP~
Hi,
please try the following approach to get to the bottom of the problem.
Cheers
Karsten
I have figured out, the problem is occur on:
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’
Ok,
so that means your Gemfile.plugin has the costs plugin commented out for now and your openproject instance is working with all other plugins now?
Has the error output changed?
Cheers
Karsten
I have check the cost plugin on github, and i just modify the cost:
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘v4.0.1’
and it works fine. it seems just the stable branch dont match the openproject-4.0.1?
just still confused…hope u can figure it out.
Just modify the cost plugin to :
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘v4.0.1’
And now it works fine.
Thank u~ Karsten~
Hi Hwang JR,
thanks for the info. I checked and made a diff between v4.0.1 and stable (of costs plugin). There seems to be no difference at all. I guess there might be a problem with bundler cache or something?
Cheers
Karsten
m…maybe. my network is slowly…
Hi,
I found my Gemfile.plugins:
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’
but when i check my cost git:
git status:
On branch dev
Your branch and ‘origin/dev’ have diverged,
and have 11 and 14 different commits each, respectively.
(use “git pull” to merge the remote branch into yours)
Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout — …” to discard changes in working directory)
modified: openproject-costs.gemspec
no changes added to commit (use “git add” and/or “git commit -a”)
This may cause the problem!