Actions
Errores #2863
closedError de db:seed al instalar la instancia de FAS
Start date:
03/30/2017
Due date:
% Done:
0%
Estimated time:
Version:
Description
Al ejecutar "LANG=pt_PT RAILS_ENV=production GOR_SITEID=fas.gong.org.es rake db:seed" nos devuelve el siguiente error:
NoMethodError: undefined method `id' for nil:NilClass /usr/share/gong/gor/app/models/proyecto.rb:370:in `asignar_estado_inicial' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:661:in `_run__1499606418650423028__create__1983859219126039666__callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:268:in `create' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:348:in `create_or_update' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `block in create_or_update' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:502:in `_run__1499606418650423028__save__1983859219126039666__callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `create_or_update' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:84:in `save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:50:in `save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods/dirty.rb:22:in `save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:259:in `block (2 levels) in save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:208:in `transaction' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:311:in `with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:259:in `block in save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:270:in `rollback_active_record_state!' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:258:in `save' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:45:in `create' /usr/share/gong/gor/db/seeds.rb:494:in `<top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `block in load' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:236:in `load_dependency' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/railties-3.2.22.5/lib/rails/engine.rb:525:in `load_seed' /usr/local/rvm/gems/ruby-1.9.3-p551@global/ruby/1.9.1/gems/activerecord-3.2.22.5/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' Tasks: TOP => db:seed
Actions