Project

General

Profile

Actions

Defect #17887

closed

NoMethodError (undefined method `downcase' for nil:NilClass):

Added by Tristan S. about 10 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

When I follow the instructions at http://www.redmine.org/projects/redmine/wiki/HowTo_keep_in_sync_your_git_repository_for_redmine and point the repository to the just mirrored git repo, I get a Redmine 500 error, with the following in the production log:

NoMethodError (undefined method `downcase' for nil:NilClass):
app/models/changeset.rb:100:in `scan_for_issues'
app/models/repository/git.rb:218:in `save_revision'
app/models/repository/git.rb:207:in `block (2 levels) in save_revisions'
app/models/repository/git.rb:204:in `block in save_revisions'
app/models/repository/git.rb:203:in `each'
app/models/repository/git.rb:203:in `save_revisions'
app/models/repository/git.rb:153:in `fetch_changesets'
app/controllers/repositories_controller.rb:114:in `show'

Actions #1

Updated by Tristan S. about 10 years ago

Environment:
Redmine version 2.5.1.stable.13174
Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux]
Rails version 3.2.18
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1

Actions #2

Updated by Toshi MARUYAMA about 10 years ago

  • Category changed from Importers to SCM
Actions #3

Updated by Toshi MARUYAMA about 10 years ago

  • Status changed from New to Needs feedback

Log says Setting.commit_ref_keywords is nil.
source:tags/2.5.2/app/models/changeset.rb#L118
It seems your Redmine installation is broken.

Actions #4

Updated by Tristan S. about 10 years ago

Toshi MARUYAMA wrote:

It seems your Redmine installation is broken.

It's a fresh install... Just updated (via "svn update") to 2.5.2.stable.13410 and still the same problem. How is my installation broken?

Actions #5

Updated by Masato NODA about 10 years ago

I guess that settings table has NULL value when name = 'commit_ref_keywords' or your config/setting.yml is broken.
Because, if settings table doesn't have row when name = 'commit_ref_keywords', Setting.commit_ref_keywords returns value of commit_ref_keywords.default in config/setting.yml

Actions #6

Updated by Terry Hwang about 10 years ago

Masato NODA wrote:

I guess that settings table has NULL value when name = 'commit_ref_keywords' or your config/setting.yml is broken.
Because, if settings table doesn't have row when name = 'commit_ref_keywords', Setting.commit_ref_keywords returns value of commit_ref_keywords.default in config/setting.yml

Hello Masato NODA and Tristan,
I have same problem in one of two redmine systems only when I connected HTTPS subversion.
The db table had a value "refs,references,IssueID" for name "commit_ref_keywords".

working system's environment:
Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.9
Git 1.9.0
Filesystem
Redmine plugins:
no plugin installed

System not working:
Environment:
Redmine version 2.5.2.stable
Ruby version 2.0.0-p481 (2014-05-08) [i386-mingw32]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Git 1.9.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.8
issue_id 0.0.1b
redmine_agile 1.3.3
redmine_code_review 0.6.3
redmine_didyoumean 1.2.0
redmine_hudson 2.1.2
redmine_monitoring_controlling 0.1.1
redmine_wiki_lists 0.0.3
sidebar_hide 0.0.7

Actions #7

Updated by Jan Niggemann (redmine.org team member) about 9 years ago

  • Resolution set to No feedback
Actions #8

Updated by Go MAEDA about 1 month ago

  • Status changed from Needs feedback to Closed
Actions

Also available in: Atom PDF