プロジェクト

全般

プロフィール

Vote #75573

未完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
17887
author_id:
111272
assigned_to_id:
0
comments:
7
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
84
ステータス-->[Needs feedback]

説明

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'@


journals

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
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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?
--------------------------------------------------------------------------------
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

--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0