Ruby Gitorious:git poller赢得';开始

Ruby Gitorious:git poller赢得';开始,ruby,gem,gitorious,Ruby,Gem,Gitorious,我刚刚在我的服务器上安装了一个新的gitorious,当我发现git轮询器没有运行时,我想对它进行测试。而且它也不想开始 我遵循以下指南:,我的系统是Debian Squence,Ruby-v是Ruby 1.8.7 到目前为止,该指南中的所有内容都有效。系统已启动并运行,但我无法启动轮询器。轮询器写入日志的所有内容如下: tmp/pids/poller.log *** below you find the most recent exception thrown, this will be li

我刚刚在我的服务器上安装了一个新的gitorious,当我发现git轮询器没有运行时,我想对它进行测试。而且它也不想开始

我遵循以下指南:,我的系统是Debian Squence,Ruby-v是Ruby 1.8.7

到目前为止,该指南中的所有内容都有效。系统已启动并运行,但我无法启动轮询器。轮询器写入日志的所有内容如下:

tmp/pids/poller.log

*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
#<MissingSourceFile: no such file to load -- user_auto_completions_helper>
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
#<LoadError: no such file to load -- daemons>
#<TypeError: Expected a filter, an endpoint, a callable or a list of any of these.>
#<NameError: uninitialized constant ActiveMessaging>
#<MissingSourceFile: no such file to load -- user_auto_completions_helper>
我使用ispconfig作为Web服务器管理工具,这就是奇怪路径的来源。我改变了所有的路径,从howto到fit,tho


有人有主意吗?我可以提供更多的材料,如果需要的话,但我只是不知道什么是有用的。这是我关于stackoverflow的第一个问题,所以如果我没有做好每件事,请不要向我开枪:)

经过大量阅读和反复尝试(我从零开始尝试了大约3次,从源代码和RVM两个方面都尝试了Ruby 1.9.2和REE),我尝试了另一种方法[1]这与第一个版本有一个很大的区别:它建议下载并安装Rubygems 1.4.2,而不是Rubygems的apt版本

起初,我不想这样做,因为我担心它会破坏我的系统(该服务器上运行着许多其他东西,包括Redmine),但在我重新安装了所有丢失的gems之后,一切又恢复了正常

现在一切(Gitorious和Redmine)都在使用Ruby 1.8.7的apt版本和Rubygems 1.4.2的非apt版本

[1]

因为我偶然发现了另一个,希望是最后一个问题: 我为我的标准web用户安装了gitorious(为了遵守ISPConfig的策略),并为存储库创建了一个新的git用户。为了能够交换数据,我将两者都添加到同一用户组中,并修复了权限

我遇到的问题是git poller为自己添加了新的存储库,这意味着“git:git”而不是“git:sharedgroup”。要解决此问题,只需设置git文件夹的默认组id(/var/git在我的示例中):

/bin/su-git-c“newgrp&&cd/var/www/git.mydomain.com/web;RAILS\u ENV=production script/poller$@”
/home/clients/client1/web85/web/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant ActiveMessaging (NameError)
        from /home/clients/client1/web85/web/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
        from /home/clients/client1/web85/web/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
        from /home/clients/client1/web85/web/lib/gitorious/messaging/stomp_poller.rb:13
        from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:203:in `load'
        from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:203:in `start_load'
        from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:292:in `start'
    from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/controller.rb:70:in `run'
    from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:143:in `run'
    from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in `call'
    from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in `catch_exceptions'
    from /var/lib/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:142:in `run'
    from script/poller:30
chgrp -R <group_name> /var/git
chmod -R g+s /var/git
/bin/su - git -c "cd /var/www/git.mydomain.com/web;RAILS_ENV=production script/poller $@"
/bin/su - git -c "newgrp <group_name> && cd /var/www/git.mydomain.com/web;RAILS_ENV=production script/poller $@"