ifunam/salva — Issue #135: Problems in create action for refereed_inproceedings controller
Author: juarlex
Created: 2012-02-16 19:52:43+00:00
State: open

A ActiveRecord::InvalidForeignKey occurred in refereed_inproceedings#create:

PGError: ERROR: insert or update on table "conference_institutions" violates foreign key constraint "conference_institutions_institution_id_fkey"
DETAIL: Key (institution_id)=(0) is not present in table "institutions".
: INSERT INTO "conference_institutions" ("conference_id", "created_on", "institution_id", "moduser_id", "updated_on") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `get_last_result'

-------------------------------
Request:
-------------------------------

* URL : https://salva.fisica.unam.mx/refereed_inproceedings
* IP address: 132.248.7.148
* Parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"´1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328036830410"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* Rails root: /home/deployer/apps/salva

-------------------------------
Session:
-------------------------------

* session id: [FILTERED]
* data: {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=",
"warden.user.user.key"=>["User", [57], nil],
"warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:13:42 UTC}}

-------------------------------
Environment:
-------------------------------

* CONTENT_LENGTH : 2459
* CONTENT_TYPE : application/x-www-form-urlencoded
* DOCUMENT_ROOT : /home/deployer/apps/salva/public
* HTTPS : on
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : es-MX,es;q=0.8,en-us;q=0.5,en;q=0.3
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328037236379&r=156213&p=133980
* HTTP_HOST : salva.fisica.unam.mx
* HTTP_REFERER : https://salva.fisica.unam.mx/refereed_inproceedings/new
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
* PASSENGER_APP_SPAWNER_IDLE_TIME : -1
* PASSENGER_APP_TYPE : rack
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PASSENGER_DEBUGGER : false
* PASSENGER_ENVIRONMENT : production
* PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME : -1
* PASSENGER_FRIENDLY_ERROR_PAGES : true
* PASSENGER_GROUP :
* PASSENGER_MAX_REQUESTS : 0
* PASSENGER_MIN_INSTANCES : 1
* PASSENGER_SHOW_VERSION_IN_HEADER : true
* PASSENGER_SPAWN_METHOD : :smart
* PASSENGER_USER :
* PASSENGER_USE_GLOBAL_QUEUE : true
* PATH_INFO : /refereed_inproceedings
* QUERY_STRING :
* REMOTE_ADDR : 132.248.7.148
* REMOTE_PORT : 49920
* REQUEST_METHOD : POST
* REQUEST_URI : /refereed_inproceedings
* SCGI : 1
* SCRIPT_NAME :
* SERVER_ADDR : 132.248.7.50
* SERVER_NAME : salva.fisica.unam.mx
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : nginx/1.0.10
* UNION_STATION_SUPPORT : false
* _ : _
* action_controller.instance : refereed_inproceedings#create
* action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 132.248.7.148
* action_dispatch.request.content_type : application/x-www-form-urlencoded
* action_dispatch.request.flash_hash : #
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"´1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328036830410"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* action_dispatch.request.path_parameters : {:action=>"create", :controller=>"refereed_inproceedings"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"´1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328036830410"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* action_dispatch.routes : #
* action_dispatch.secret_token : 52d737e54b7c19af1c06c7101e405f842645b5c9446acd9cfa70bbdebf6aada443bb35460a5af20e3f93d567e59999fd6bd1d78ccc865b961c84318b4ebbf308
* action_dispatch.show_exceptions : true
* exception_notifier.options : {:sender_address=>"salva@fisica.unam.mx", :exception_recipients=>"alex@fisica.unam.mx", :email_prefix=>"[SALVA - Exception notification] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #
* rack-cache.use_native_ttl : false
* rack-cache.verbose : true
* rack.errors : #
* rack.input : #
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"__utma"=>"227192202.926526252.1321550520.1321559356.1322506761.3", "__utmz"=>"227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica unam", "_salva_session"=>"6e363aba57f3b4a72ea52b7d53eae41a", "NREUM"=>"s=1328037236379&r=156213&p=133980"}
* rack.request.cookie_string : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328037236379&r=156213&p=133980
* rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"´1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328036830410"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>"57", "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* rack.request.form_input : #
* rack.request.form_vars : utf8=%E2%9C%93&authenticity_token=xZBMT4y%2BJFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew%3D&inproceeding%5Bauthors%5D=A.+Ort%C3%ADz%2C+E.+Cruz+Zaragoza%2C+C.+Furetta%2C+C.+Flores%2C+H.+Murrieta&inproceeding%5Btitle%5D=Kinetics+parameters+of+doped+NaCl%3ACa-Mn+during+fading&inproceeding%5Bpages%5D=59&inproceeding%5Bproceeding_attributes%5D%5Btitle%5D=XII+International+Symposium+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Byear%5D=2011&inproceeding%5Bproceeding_attributes%5D%5Bvolume%5D=%C2%B41&inproceeding%5Bproceeding_attributes%5D%5Bpublisher_id%5D=171&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bname%5D=XII+International+Symposium+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencetype_id%5D=6&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencescope_id%5D=3&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bcountry_id%5D=484&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Byear%5D=2011&conference%5Bmonth%5D=10&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Blocation%5D=M%C3%A9xico+DF&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=5453&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B2%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=1&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328036830410%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328036830410%5D%5Binstitution_id%5D=null&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Buser_id%5D=57&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Bismainauthor%5D=true&commit=Guardar
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "warden.user.user.key"=>["User", [57], nil], "warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:13:42 UTC}}
* rack.session.options : {:key=>"_salva_session", :path=>"/", :domain=>nil, :expire_after=>1800 seconds, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :memcache_server=>["127.0.0.1:11211"], :namespace=>"sessions", :id=>"6e363aba57f3b4a72ea52b7d53eae41a"}
* rack.url_scheme : https
* rack.version : [1, 0]
* warden : Warden::Proxy:100392030 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:ldap_authenticatable], :academic=>[:ldap_authenticatable]}, :intercept_401=>false, :failure_app=>#}

* Process: 31999
* Server : salva

-------------------------------
Backtrace:
-------------------------------

activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `get_last_result'
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `exec_cache'
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:603:in `block in exec_query'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract_adapter.rb:244:in `block in log'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract_adapter.rb:239:in `log'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/active_record.rb:31:in `block in log_with_newrelic_instrumentation'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/active_record.rb:28:in `log_with_newrelic_instrumentation'
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:601:in `exec_query'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
activerecord (3.1.3) lib/active_record/relation.rb:70:in `insert'
activerecord (3.1.3) lib/active_record/persistence.rb:313:in `create'
activerecord (3.1.3) lib/active_record/timestamp.rb:51:in `create'
activerecord (3.1.3) lib/active_record/callbacks.rb:268:in `block in create'
activesupport (3.1.3) lib/active_support/callbacks.rb:390:in `_run_create_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.1.3) lib/active_record/persistence.rb:294:in `create_or_update'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.1.3) lib/active_support/callbacks.rb:408:in `_run_save_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.3) lib/active_record/persistence.rb:37:in `save'
activerecord (3.1.3) lib/active_record/validations.rb:50:in `save'
activerecord (3.1.3) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
activerecord (3.1.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:208:in `transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:491:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:486:in `transaction_with_trace_ActiveRecord_self_name_transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block in save'
activerecord (3.1.3) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
activerecord (3.1.3) lib/active_record/transactions.rb:240:in `save'
activerecord (3.1.3) lib/active_record/associations/has_many_association.rb:16:in `insert_record'
activerecord (3.1.3) lib/active_record/autosave_association.rb:332:in `block in save_collection_association'
activerecord (3.1.3) lib/active_record/autosave_association.rb:323:in `each'
activerecord (3.1.3) lib/active_record/autosave_association.rb:323:in `save_collection_association'
activerecord (3.1.3) lib/active_record/autosave_association.rb:179:in `block in add_autosave_association_callbacks'
activerecord (3.1.3) lib/active_record/autosave_association.rb:149:in `instance_eval'
activerecord (3.1.3) lib/active_record/autosave_association.rb:149:in `block in define_non_cyclic_method'
activesupport (3.1.3) lib/active_support/callbacks.rb:392:in `_run_create_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.1.3) lib/active_record/persistence.rb:294:in `create_or_update'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.1.3) lib/active_support/callbacks.rb:444:in `_run_save_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.3) lib/active_record/persistence.rb:37:in `save'
activerecord (3.1.3) lib/active_record/validations.rb:50:in `save'
activerecord (3.1.3) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
activerecord (3.1.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:208:in `transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:491:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:486:in `transaction_with_trace_ActiveRecord_self_name_transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block in save'
activerecord (3.1.3) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
activerecord (3.1.3) lib/active_record/transactions.rb:240:in `save'
activerecord (3.1.3) lib/active_record/autosave_association.rb:394:in `save_belongs_to_association'
activerecord (3.1.3) lib/active_record/autosave_association.rb:197:in `block in add_autosave_association_callbacks'
activerecord (3.1.3) lib/active_record/autosave_association.rb:149:in `instance_eval'
activerecord (3.1.3) lib/active_record/autosave_association.rb:149:in `block in define_non_cyclic_method'
activesupport (3.1.3) lib/active_support/callbacks.rb:395:in `_run_save_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.3) lib/active_record/persistence.rb:37:in `save'
activerecord (3.1.3) lib/active_record/validations.rb:50:in `save'
activerecord (3.1.3) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
activerecord (3.1.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:208:in `transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:491:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:486:in `transaction_with_trace_ActiveRecord_self_name_transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block in save'
activerecord (3.1.3) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
activerecord (3.1.3) lib/active_record/transactions.rb:240:in `save'
activerecord (3.1.3) lib/active_record/persistence.rb:133:in `update_attribute'
app/controllers/refereed_inproceedings_controller.rb:8:in `create'
actionpack (3.1.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.3) lib/active_support/callbacks.rb:452:in `_run__839202122__process_action__120264001__callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `block in perform_action_with_newrelic_trace'
newrelic_rpm (3.3.1) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.3.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.3) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal.rb:236:in `block in action'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:68:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:532:in `call'
newrelic_rpm (3.3.1) lib/new_relic/rack/browser_monitoring.rb:23:in `call'
barista (1.2.1) lib/barista/server.rb:33:in `call'
sass (3.1.12) lib/sass/plugin/rack.rb:54:in `call'
exception_notification (2.5.2) lib/exception_notifier.rb:25:in `call'
warden (1.1.0) lib/warden/manager.rb:35:in `block in call'
warden (1.1.0) lib/warden/manager.rb:34:in `catch'
warden (1.1.0) lib/warden/manager.rb:34:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.6) lib/rack/etag.rb:23:in `call'
rack (1.3.6) lib/rack/conditionalget.rb:35:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.6) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.6) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.3) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (3.1.3) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
rack (1.3.6) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.6) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.6) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.6) lib/rack/lock.rb:15:in `call'
rack-ssl (1.3.2) lib/rack/ssl.rb:27:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:139:in `pass'
rack-cache (1.1) lib/rack/cache/context.rb:151:in `invalidate'
rack-cache (1.1) lib/rack/cache/context.rb:70:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
railties (3.1.3) lib/rails/engine.rb:456:in `call'
railties (3.1.3) lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:79:in `block in spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:64:in `spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:264:in `spawn_rack_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server:99:in `

'

salva@fisica.unam.mx
Jan 31

to alex
A ActiveRecord::InvalidForeignKey occurred in refereed_inproceedings#create:

PGError: ERROR: insert or update on table "conference_institutions" violates foreign key constraint "conference_institutions_institution_id_fkey"
DETAIL: Key (institution_id)=(0) is not present in table "institutions".
: INSERT INTO "conference_institutions" ("conference_id", "created_on", "institution_id", "moduser_id", "updated_on") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `get_last_result'

-------------------------------
Request:
-------------------------------

* URL : https://salva.fisica.unam.mx/refereed_inproceedings
* IP address: 132.248.7.148
* Parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328037497347"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* Rails root: /home/deployer/apps/salva

-------------------------------
Session:
-------------------------------

* session id: [FILTERED]
* data: {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=",
"warden.user.user.key"=>["User", [57], nil],
"warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:18:06 UTC}}

-------------------------------
Environment:
-------------------------------

* CONTENT_LENGTH : 2453
* CONTENT_TYPE : application/x-www-form-urlencoded
* DOCUMENT_ROOT : /home/deployer/apps/salva/public
* HTTPS : on
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : es-MX,es;q=0.8,en-us;q=0.5,en;q=0.3
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328037500971&r=156213&p=0
* HTTP_HOST : salva.fisica.unam.mx
* HTTP_REFERER : https://salva.fisica.unam.mx/refereed_inproceedings/new
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
* PASSENGER_APP_SPAWNER_IDLE_TIME : -1
* PASSENGER_APP_TYPE : rack
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PASSENGER_DEBUGGER : false
* PASSENGER_ENVIRONMENT : production
* PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME : -1
* PASSENGER_FRIENDLY_ERROR_PAGES : true
* PASSENGER_GROUP :
* PASSENGER_MAX_REQUESTS : 0
* PASSENGER_MIN_INSTANCES : 1
* PASSENGER_SHOW_VERSION_IN_HEADER : true
* PASSENGER_SPAWN_METHOD : :smart
* PASSENGER_USER :
* PASSENGER_USE_GLOBAL_QUEUE : true
* PATH_INFO : /refereed_inproceedings
* QUERY_STRING :
* REMOTE_ADDR : 132.248.7.148
* REMOTE_PORT : 49987
* REQUEST_METHOD : POST
* REQUEST_URI : /refereed_inproceedings
* SCGI : 1
* SCRIPT_NAME :
* SERVER_ADDR : 132.248.7.50
* SERVER_NAME : salva.fisica.unam.mx
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : nginx/1.0.10
* UNION_STATION_SUPPORT : false
* _ : _
* action_controller.instance : refereed_inproceedings#create
* action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 132.248.7.148
* action_dispatch.request.content_type : application/x-www-form-urlencoded
* action_dispatch.request.flash_hash : #
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328037497347"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* action_dispatch.request.path_parameters : {:action=>"create", :controller=>"refereed_inproceedings"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328037497347"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* action_dispatch.routes : #
* action_dispatch.secret_token : 52d737e54b7c19af1c06c7101e405f842645b5c9446acd9cfa70bbdebf6aada443bb35460a5af20e3f93d567e59999fd6bd1d78ccc865b961c84318b4ebbf308
* action_dispatch.show_exceptions : true
* exception_notifier.options : {:sender_address=>"salva@fisica.unam.mx", :exception_recipients=>"alex@fisica.unam.mx", :email_prefix=>"[SALVA - Exception notification] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #
* rack-cache.use_native_ttl : false
* rack-cache.verbose : true
* rack.errors : #
* rack.input : #
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"__utma"=>"227192202.926526252.1321550520.1321559356.1322506761.3", "__utmz"=>"227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica unam", "_salva_session"=>"6e363aba57f3b4a72ea52b7d53eae41a", "NREUM"=>"s=1328037500971&r=156213&p=0"}
* rack.request.cookie_string : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328037500971&r=156213&p=0
* rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328037497347"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>"57", "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* rack.request.form_input : #
* rack.request.form_vars : utf8=%E2%9C%93&authenticity_token=xZBMT4y%2BJFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew%3D&inproceeding%5Bauthors%5D=A.+Ort%C3%ADz%2C+E.+Cruz+Zaragoza%2C+C.+Furetta%2C+C.+Flores%2C+H.+Murrieta&inproceeding%5Btitle%5D=Kinetics+parameters+of+doped+NaCl%3ACa-Mn+during+fading&inproceeding%5Bpages%5D=59&inproceeding%5Bproceeding_attributes%5D%5Btitle%5D=XII+International+Symposium+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Byear%5D=2011&inproceeding%5Bproceeding_attributes%5D%5Bvolume%5D=1&inproceeding%5Bproceeding_attributes%5D%5Bpublisher_id%5D=171&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bname%5D=XII+International+Symposium+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencetype_id%5D=6&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencescope_id%5D=3&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bcountry_id%5D=484&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Byear%5D=2011&conference%5Bmonth%5D=10&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Blocation%5D=M%C3%A9xico+DF&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=5453&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B2%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=1&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328037497347%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328037497347%5D%5Binstitution_id%5D=null&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Buser_id%5D=57&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Bismainauthor%5D=true&commit=Guardar
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "warden.user.user.key"=>["User", [57], nil], "warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:18:06 UTC}}
* rack.session.options : {:key=>"_salva_session", :path=>"/", :domain=>nil, :expire_after=>1800 seconds, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :memcache_server=>["127.0.0.1:11211"], :namespace=>"sessions", :id=>"6e363aba57f3b4a72ea52b7d53eae41a"}
* rack.url_scheme : https
* rack.version : [1, 0]
* warden : Warden::Proxy:94088920 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:ldap_authenticatable], :academic=>[:ldap_authenticatable]}, :intercept_401=>false, :failure_app=>#}

* Process: 32746

salva@fisica.unam.mx
Jan 31

to alex
A ActiveRecord::InvalidForeignKey occurred in refereed_inproceedings#create:

PGError: ERROR: insert or update on table "conference_institutions" violates foreign key constraint "conference_institutions_institution_id_fkey"
DETAIL: Key (institution_id)=(0) is not present in table "institutions".
: INSERT INTO "conference_institutions" ("conference_id", "created_on", "institution_id", "moduser_id", "updated_on") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `get_last_result'

-------------------------------
Request:
-------------------------------

* URL : https://salva.fisica.unam.mx/refereed_inproceedings
* IP address: 132.248.7.148
* Parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328038491015"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* Rails root: /home/deployer/apps/salva

-------------------------------
Session:
-------------------------------

* session id: [FILTERED]
* data: {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=",
"warden.user.user.key"=>["User", [57], nil],
"warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:34:39 UTC}}

-------------------------------
Environment:
-------------------------------

* CONTENT_LENGTH : 2501
* CONTENT_TYPE : application/x-www-form-urlencoded
* DOCUMENT_ROOT : /home/deployer/apps/salva/public
* HTTPS : on
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : es-MX,es;q=0.8,en-us;q=0.5,en;q=0.3
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328038493810&r=156213&p=133980
* HTTP_HOST : salva.fisica.unam.mx
* HTTP_REFERER : https://salva.fisica.unam.mx/refereed_inproceedings/new
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
* PASSENGER_APP_SPAWNER_IDLE_TIME : -1
* PASSENGER_APP_TYPE : rack
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PASSENGER_DEBUGGER : false
* PASSENGER_ENVIRONMENT : production
* PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME : -1
* PASSENGER_FRIENDLY_ERROR_PAGES : true
* PASSENGER_GROUP :
* PASSENGER_MAX_REQUESTS : 0
* PASSENGER_MIN_INSTANCES : 1
* PASSENGER_SHOW_VERSION_IN_HEADER : true
* PASSENGER_SPAWN_METHOD : :smart
* PASSENGER_USER :
* PASSENGER_USE_GLOBAL_QUEUE : true
* PATH_INFO : /refereed_inproceedings
* QUERY_STRING :
* REMOTE_ADDR : 132.248.7.148
* REMOTE_PORT : 50115
* REQUEST_METHOD : POST
* REQUEST_URI : /refereed_inproceedings
* SCGI : 1
* SCRIPT_NAME :
* SERVER_ADDR : 132.248.7.50
* SERVER_NAME : salva.fisica.unam.mx
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : nginx/1.0.10
* UNION_STATION_SUPPORT : false
* _ : _
* action_controller.instance : refereed_inproceedings#create
* action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 132.248.7.148
* action_dispatch.request.content_type : application/x-www-form-urlencoded
* action_dispatch.request.flash_hash : #
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328038491015"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar", "action"=>"create", "controller"=>"refereed_inproceedings"}
* action_dispatch.request.path_parameters : {:action=>"create", :controller=>"refereed_inproceedings"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters: {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328038491015"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>57, "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* action_dispatch.routes : #
* action_dispatch.secret_token : 52d737e54b7c19af1c06c7101e405f842645b5c9446acd9cfa70bbdebf6aada443bb35460a5af20e3f93d567e59999fd6bd1d78ccc865b961c84318b4ebbf308
* action_dispatch.show_exceptions : true
* exception_notifier.options : {:sender_address=>"salva@fisica.unam.mx", :exception_recipients=>"alex@fisica.unam.mx", :email_prefix=>"[SALVA - Exception notification] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #
* rack-cache.use_native_ttl : false
* rack-cache.verbose : true
* rack.errors : #
* rack.input : #
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"__utma"=>"227192202.926526252.1321550520.1321559356.1322506761.3", "__utmz"=>"227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica unam", "_salva_session"=>"6e363aba57f3b4a72ea52b7d53eae41a", "NREUM"=>"s=1328038493810&r=156213&p=133980"}
* rack.request.cookie_string : __utma=227192202.926526252.1321550520.1321559356.1322506761.3; __utmz=227192202.1321550520.1.1.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=fisica%20unam; _salva_session=6e363aba57f3b4a72ea52b7d53eae41a; NREUM=s=1328038493810&r=156213&p=133980
* rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "inproceeding"=>{"authors"=>"A. Ortíz, E. Cruz Zaragoza, C. Furetta, C. Flores, H. Murrieta", "title"=>"Kinetics parameters of doped NaCl:Ca-Mn during fading", "pages"=>"59", "proceeding_attributes"=>{"title"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "year"=>"2011", "volume"=>"1", "publisher_id"=>"171", "conference_attributes"=>{"name"=>"XII International Symposium. XXII National Congress on Solid State Dosimetry", "conferencetype_id"=>"6", "conferencescope_id"=>"3", "country_id"=>"484", "year"=>"2011", "location"=>"México DF", "conference_institutions_attributes"=>{"0"=>{"institution_id"=>"5453"}, "1"=>{"institution_id"=>"0"}, "2"=>{"institution_id"=>"0"}, "3"=>{"institution_id"=>"1"}, "1328038491015"=>{"institution_id"=>"null"}}}}, "user_inproceedings_attributes"=>{"0"=>{"user_id"=>"57", "ismainauthor"=>"true"}}}, "conference"=>{"month"=>"10"}, "commit"=>"Guardar"}
* rack.request.form_input : #
* rack.request.form_vars : utf8=%E2%9C%93&authenticity_token=xZBMT4y%2BJFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew%3D&inproceeding%5Bauthors%5D=A.+Ort%C3%ADz%2C+E.+Cruz+Zaragoza%2C+C.+Furetta%2C+C.+Flores%2C+H.+Murrieta&inproceeding%5Btitle%5D=Kinetics+parameters+of+doped+NaCl%3ACa-Mn+during+fading&inproceeding%5Bpages%5D=59&inproceeding%5Bproceeding_attributes%5D%5Btitle%5D=XII+International+Symposium.+XXII+National+Congress+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Byear%5D=2011&inproceeding%5Bproceeding_attributes%5D%5Bvolume%5D=1&inproceeding%5Bproceeding_attributes%5D%5Bpublisher_id%5D=171&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bname%5D=XII+International+Symposium.+XXII+National+Congress+on+Solid+State+Dosimetry&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencetype_id%5D=6&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconferencescope_id%5D=3&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bcountry_id%5D=484&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Byear%5D=2011&conference%5Bmonth%5D=10&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Blocation%5D=M%C3%A9xico+DF&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B0%5D%5Binstitution_id%5D=5453&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B2%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B3%5D%5Binstitution_id%5D=1&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328038491015%5D%5Binstitution_id%5D=0&inproceeding%5Bproceeding_attributes%5D%5Bconference_attributes%5D%5Bconference_institutions_attributes%5D%5B1328038491015%5D%5Binstitution_id%5D=null&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Buser_id%5D=57&inproceeding%5Buser_inproceedings_attributes%5D%5B0%5D%5Bismainauthor%5D=true&commit=Guardar
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : {"_csrf_token"=>"xZBMT4y+JFwa6SpVGe5k9hM6RSBlb4rf4eAvMbiB6Ew=", "warden.user.user.key"=>["User", [57], nil], "warden.user.user.session"=>{"last_request_at"=>2012-01-31 19:34:39 UTC}}
* rack.session.options : {:key=>"_salva_session", :path=>"/", :domain=>nil, :expire_after=>1800 seconds, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :memcache_server=>["127.0.0.1:11211"], :namespace=>"sessions", :id=>"6e363aba57f3b4a72ea52b7d53eae41a"}
* rack.url_scheme : https
* rack.version : [1, 0]
* warden : Warden::Proxy:103063130 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:ldap_authenticatable], :academic=>[:ldap_authenticatable]}, :intercept_401=>false, :failure_app=>#}