2012-02-15 12 views
0

私はそれにアクセスしようとすると、私は/var/log/apache2/error.logでエラーが出るgit://github.com/ericpaulbishop/redmine_git_hosting.gitなぜルビーがクラッシュするのですか?

から「redmine_git_hosting」を使用しようとしています:

/lib/redmine/scm/adapters/git_adapter.rb:26: warning: already initialized constant GIT_BIN 

私は私が手にリフレッシュした場合、私はその後、Redmineのサイトにアクセスすることができますが。

/usr/share/redmine_dev/lib/redmine/scm/adapters/git_adapter.rb:26: warning: already initialized constant GIT_BIN 
[ pid=31351 thr=3075225872 file=ext/apache2/Hooks.cpp:817 time=2012-02-15 15:41:08.102 ]: The backend application (process 3677) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. 
[ pid=3677 thr=-609445668 file=utils.rb:176 time=2012-02-15 15:41:08.103 ]: *** Exception NameError in application (uninitialized constant Redmine::Scm::Adapters::CommandFailed) (process 3677, thread #<Thread:0xb75931b8>): 

私は500内部エラーが発生します。

投稿者top私は1つのRubyプロセスが殺されたことがわかります。

私の環境は次のとおりです。

  • のUbuntu 11.10
  • のPostgreSQL 8.4
  • Apache2.20
  • のRuby 1.8.7
  • Redmineの1.3.0
  • のPhusionバージョン3.0.11
  • Rails(2.3.14)
  • Rubygemsの1.6.2これはChiliprojectフォークに対して報告この1と同じバグのように見える
+0

は、提案された解決策は、モジュール内から必要で削除しapplication_controllerにそれらを統合...

にありました作業する。ソースコードを見る必要があります。 –

+0

警告は問題の一部である場合とそうでない場合があります。より大きな問題は次のように出力されていると思われます。***アプリケーションの例外名エラー(初期化されていない定数Redmine :: Scm :: Adapters :: CommandFailed)(プロセス3677、スレッド#<スレッド:0xb75931b8>): – jefflunt

答えて

0

:秒から(https://www.chiliproject.org/issues/828

はこれが唯一の最初の要求の後、開発モードで発生したようですあなたが変更を加えるたびにあなたのアプリを再起動する必要はないので、レールがあなたのモジュールをアンロードするからです。 application_controllerでは、すべてのscmリポジトリ・クラスが要求ごとにrequire_dependencyで再度ロードされます。しかし、これらのscmが依存しているモジュールのように、git_adapterやabstract_adapterは標準のruby requireをロードするので、再度ロードされることはありません。 したがって、初期化されていない定数エラーが発生します。あなたは十分に私たちに与えられていない

require_dependency 'redmine/scm/adapters/abstract_adapter' 
    Redmine::Scm::Base.all.each do |scm| 
     require_dependency "repository/#{scm.underscore}" 
     require_dependency "redmine/scm/adapters/#{scm.underscore}_adapter" 
    end 
関連する問題