首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gitorious: git-poller不会启动

Gitorious: git-poller不会启动
EN

Stack Overflow用户
提问于 2012-07-27 07:21:06
回答 1查看 1K关注 0票数 1

我刚刚在我的服务器上安装了一个新的git,当我发现git-poller不能运行时,我想测试它。而且它也不想开始。

我遵循了这个指南:http://gitorious.org/gitorious/pages/DebianSqueezeInstallation,我的系统是Debian Squeeze,Ruby -v说的是ruby1.8.7

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

tmp/pids/poller.log

代码语言:javascript
复制
*** 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>

tmp/pid/poller.output

代码语言:javascript
复制
/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

我使用ispconfig作为are服务器管理工具,这就是奇怪路径的来源。我改变了所有的路径,从howto到fit。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-07-29 06:32:28

经过大量的阅读、试验和错误(我从头开始了大约3次,尝试了Ruby1.9.2和REE从源代码和RVM),我尝试了另一个howto1,它与第一个有一个很大的不同:它建议下载并安装Rubygems 1.4.2而不是apt版本的Rubygems。

一开始我不想这样做,因为我害怕它会破坏我的系统(在那个服务器上还有很多其他的东西在运行,包括Redmine),但在我重新安装了所有丢失的gem之后,一切都恢复了正常。

现在,所有东西(Gitorious和Redmine)都可以使用Ruby1.8.7的apt版本和Rubygems 1.4.2的非apt版本。

1

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

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

代码语言:javascript
复制
chgrp -R <group_name> /var/git
chmod -R g+s /var/git

看起来上面的两个命令确实起作用了,但是添加一个新项目再次破坏了一切,因为git-poller为项目和存储库添加了一个文件夹,这导致存储库文件夹再次拥有错误的所有者。

我(希望)通过将/etc/init.d/git-poller脚本从

代码语言:javascript
复制
/bin/su - git -c "cd /var/www/git.mydomain.com/web;RAILS_ENV=production script/poller $@"

代码语言:javascript
复制
/bin/su - git -c "newgrp <group_name> && cd /var/www/git.mydomain.com/web;RAILS_ENV=production script/poller $@"
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11679429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档