[opensuse-buildservice] Internal Server Error
Hi all, I got this error trying to add FE5/x86_64 to a repository were a FE5/i586 already existed. Message: Internal Server Error Exception from API: ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry '651-Fedora_Extras_5' for key 2: INSERT INTO repositories (`name`, `db_project_id`) VALUES('Fedora_Extras_5', 651) Stack Trace: /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/mysql_adapter.rb:184:in `execute' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/mysql_adapter.rb:194:in `insert' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1739:in `create_without_callbacks' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks.rb:261:in `create_without_timestamps' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/timestamp.rb:30:in `create' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1718:in `create_or_update_without_callbacks' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks.rb:249:in `create_or_update' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1392:in `save_without_validation' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/validations.rb:724:in `save_without_transactions' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:126:in `save' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:91:in `transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:118:in `transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:126:in `save' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/associations/association_collection.rb:89:in `create' /srv/www/opensuse/frontend/current/public/../config/../app/models/db_project.rb:137:in `store_axml' /srv/www/opensuse/common/current/lib/activexml/node.rb:224:in `method_missing' /usr/lib64/ruby/1.8/rexml/element.rb:939:in `each' /usr/lib64/ruby/1.8/rexml/xpath.rb:53:in `each' /usr/lib64/ruby/1.8/rexml/element.rb:939:in `each' /srv/www/opensuse/common/current/lib/activexml/node.rb:222:in `method_missing' /srv/www/opensuse/frontend/current/public/../config/../app/models/db_project.rb:134:in `store_axml' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:91:in `transaction' /srv/www/opensuse/frontend/current/public/../config/../app/models/db_project.rb:43:in `store_axml' /srv/www/opensuse/frontend/current/public/../config/../app/models/db_project.rb:21:in `store_axml' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:91:in `transaction' /srv/www/opensuse/frontend/current/public/../config/../app/models/db_project.rb:17:in `store_axml' /srv/www/opensuse/common/current/lib/activexml/transport.rb:227:in `save' /srv/www/opensuse/common/current/lib/activexml/base.rb:90:in `save' /srv/www/opensuse/frontend/current/public/../config/../app/controllers/source_controller.rb:246:in `project_meta' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in `perform_action_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescue.rb:82:in `perform_action' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:381:in `process_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in `process' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:150:in `process_request' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:54:in `process!' /usr/lib64/ruby/1.8/fcgi.rb:612:in `each_cgi' /usr/lib64/ruby/1.8/fcgi.rb:609:in `each_cgi' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in `process!' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in `process!' /srv/www/opensuse/frontend/current/public/dispatch.fcgi:24 -- -- Amilcar Lucas Current webmaster The KDevelop team --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Thursday 01 February 2007 00:39 schrieb Amilcar do Carmo Lucas:
Hi all,
I got this error trying to add FE5/x86_64 to a repository were a FE5/i586 already existed.
You want to add it with a repo name that already exist ? Or do you modify the existing target description by adding another architecture ? bye adrian -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thursday 01 February 2007 10:14:13 Adrian Schröter wrote:
Am Thursday 01 February 2007 00:39 schrieb Amilcar do Carmo Lucas:
Hi all,
I got this error trying to add FE5/x86_64 to a repository were a FE5/i586 already existed.
You want to add it with a repo name that already exist ? Or do you modify the existing target description by adding another architecture ?
I want to modify the existing target description by adding another architecture ? Basically the SQL query should see if the key already exists, and if yes, it should do an update instead of an insert. Regards, -- Amilcar Lucas Webmaster The KDevelop project --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Amilcar do Carmo Lucas