Project

General

Profile

Actions

Defect #8990

closed

Git: Error when fetching changesets

Added by Dave Abrahams over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-08-05
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

This is what I found in my fetch-changesets log, which is being produced by the command

ruby script/runner "Repository.fetch_changesets" -e production >> /tmp/redmine-changeset-fetch.log 2>&1 & disown

warning: ignoring dangling symref upstream.
warning: ignoring dangling symref upstream.
warning: ignoring dangling symref upstream.
warning: ignoring dangling symref upstream.
/srv/redmine/vendor/rails/railties/lib/commands/runner.rb:48: /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log': Mysql::Error: Duplicate entry '20-5c4e52e49648c196f629b8623b4aca7e4c0080e3' for key 'changesets_repos_rev': INSERT INTO `changesets` (`committed_on`, `comments`, `commit_date`, `scmid`, `user_id`, `revision`, `repository_id`, `committer`) VALUES('2011-08-04 10:00:11', 'Fix the bitwidth of the remaining fields.\n\ngit-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136884 91177308-0d34-0410-b5e6-96231b3b80d8', '2011-08-04 10:00:11', '5c4e52e49648c196f629b8623b4aca7e4c0080e3', NULL, '5c4e52e49648c196f629b8623b4aca7e4c0080e3', 20, 'Rafael Espindola <rafael.espindola@gmail.com>') (ActiveRecord::StatementInvalid)
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `insert_sql'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:334:in `insert_sql'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:44:in `insert_without_query_dirty'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `insert'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/base.rb:2961:in `create_without_timestamps'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/timestamp.rb:53:in `create_without_callbacks'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/callbacks.rb:266:in `create'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/callbacks.rb:250:in `create_or_update'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/base.rb:2577:in `save_without_validation'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/validations.rb:1090:in `save_without_dirty'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/dirty.rb:79:in `save_without_transactions'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:229:in `send'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:196:in `save'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:196:in `save'
    from /srv/redmine/app/models/repository/git.rb:152:in `save_revision'
    from /srv/redmine/app/models/repository/git.rb:133:in `fetch_changesets'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:188:in `transaction'
    from /srv/redmine/app/models/repository/git.rb:131:in `fetch_changesets'
    from /srv/redmine/lib/redmine/scm/adapters/git_adapter.rb:222:in `revisions'
    from /srv/redmine/lib/redmine/scm/adapters/git_adapter.rb:207:in `each_line'
    from /srv/redmine/lib/redmine/scm/adapters/git_adapter.rb:207:in `revisions'
    from /srv/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:215:in `call'
    from /srv/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:215:in `shellout'
    from /srv/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:213:in `popen'
    from /srv/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:213:in `shellout'
    from /srv/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:194:in `shellout'
    from /srv/redmine/lib/redmine/scm/adapters/git_adapter.rb:368:in `scm_cmd'
    from /srv/redmine/lib/redmine/scm/adapters/git_adapter.rb:202:in `revisions'
    from /srv/redmine/app/models/repository/git.rb:129:in `fetch_changesets'
    from /srv/redmine/app/models/repository/git.rb:125:in `each'
    from /srv/redmine/app/models/repository/git.rb:125:in `fetch_changesets'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `send'
    from /srv/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
    from /srv/redmine/app/models/repository.rb:243:in `fetch_changesets'
    from /srv/redmine/app/models/repository.rb:240:in `each'
    from /srv/redmine/app/models/repository.rb:240:in `fetch_changesets'
    from (eval):1
    from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'
    from /srv/redmine/vendor/rails/railties/lib/commands/runner.rb:48
    from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from script/runner:3
Actions

Also available in: Atom PDF