Project

General

Profile

fetch_changesets failed

Added by Klaus-Peter Webersinke almost 12 years ago

Hi,

when using the following command

rake  RAILS_ENV=production redmine:fetch_changesets

i'm always get an error message

rake aborted!
Mysql2::Error: Column 'user_id' cannot be null: INSERT INTO `changesets` (`comments`, `commit_date`, `committed_on`, `committer`, `repository_id`, `revision`, `scmid`, `user_id`) VALUES ('initial import from vss [version 1]', '2006-04-26 17:56:48', '2006-04-26 17:56:48', 'Michael', 47, '111214', NULL, NULL)
/var/www/redmine/app/models/repository/subversion.rb:72:in `block (2 levels) in fetch_changesets'
/var/www/redmine/app/models/repository/subversion.rb:71:in `block in fetch_changesets'
/var/www/redmine/app/models/repository/subversion.rb:70:in `reverse_each'
/var/www/redmine/app/models/repository/subversion.rb:70:in `fetch_changesets'
/var/www/redmine/app/models/repository.rb:330:in `block (2 levels) in fetch_changesets'
/var/www/redmine/app/models/repository.rb:328:in `block in fetch_changesets'
/var/www/redmine/app/models/repository.rb:327:in `each'
/var/www/redmine/app/models/repository.rb:327:in `fetch_changesets'
/var/www/redmine/lib/tasks/redmine.rake:42:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:fetch_changesets
(See full trace by running task with --trace)

i can't figure out what i'm doing wrong here. Under which user account should the script running ?

redmine information:

Environment:
  Redmine version                          2.2.2.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  projects_table                           0.0.3
  redmine_embedded                         0.0.2
  redmine_evm                              0.9.0
  redmine_hudson                           2.1.0
  redmine_knowledgebase                    2.2.0
  redmine_logs                             0.0.5
  redmine_mylyn_connector                  2.8.2.stable
  redmine_release_notes                    1.2.0