Poller未运行,未找到文件脚本/轮询器。活动未更新,未创建repos

时间:2013-12-25 13:34:39

标签: git self-hosting gitorious

我已经将2.x更新为2.x。遇到一些麻烦后我可以拉,推等。但是活动流没有更新,也没有创建存储库(“正在创建新的存储库”仍然存在)。

> ./script/diagnose
Both MergeRequest and its :status machine have defined a different default for "status". Use only one or the other for defining defaults to avoid unexpected behaviors.
everything healthy?                          false
git user ok?                                 true
gitorius front web page is up?               false
rails process present & owned by git user?   true
atleast one gitorious account present?       true
repo base dir present, owned by git user?    true
tarball dirs present, owned by git user?     true
git user has ~/.ssh/authorized_keys file?    true
ssh deamon is up?                            true
git daemon is up?                            true
poller is up?                                false
mysql is up?                                 true
ultrasphinx is up?                           true
queue service is up?                         true
memcached is up?                             true
enough disk free?                            true
enough RAM free?                             true
healthy cpu load average?                    true


uptime:
 13:40:41 up 81 days, 17:17,  1 user,  load average: 1.45, 0.76, 0.37


free:
             total       used       free     shared    buffers     cached
Mem:          2048       1353        694          0          0        289
-/+ buffers/cache:       1063        984
Swap:            0          0          0


vmstat:
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 711344      0 296864    0    0     4     7    0    5 14  3 83  0  0


df:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vzfs        25G   15G   11G  59% /
none            1.0G  4.0K  1.0G   1% /dev

并且轮询器脚本不存在:

> RAILS_ENV=production script/poller start                                                                                       
zsh: datei oder Verzeichnis nicht gefunden: script/poller

我的档案:

> ls script bin                                                                                         
bin:
bundle   create-user  git-proxy      micro-tests  rake               restart  search_engine  snapshot  update-ui                  varnish
console  gitorious    gts-whats-new  migrate      repo_housekeeping  restore  setup.rb       unicorn   upgrade-gitorious3-config

script:
create_admin  destroy_invalid_events  git-daemon        git-proxy     regenerate_assets    server                          suspend_user          upgrade_to
create_user   diagnose                gitorious         rails         regenerate_ssh_keys  shard_git_repositories_by_hash  test_ldap_connection
create_wikis  fixup_hooks             gitorious-config  rake-wrapper  restart_unicorn      snapshot                        undo_last_upgrade

poller脚本在哪里以及如何在v3中启动它?这是问题的原因吗?

1 个答案:

答案 0 :(得分:1)

根据my Google Groups post中的答案,您可以(或不)通过

启动轮询

sudo service resque-worker start

如果您通过ce-installer安装了gitorious。在我的情况下,设置是一个奇怪的混合ce-installer和自定义修复工作。所以这对我不起作用(服务未知)。

resque-worker会导致/etc/init/resque-worker.conf

如果你看看/etc/init/resque-worker.conf

description "Run a Resque worker on all queues"
author "Marius Mårnes Mathiesen <marius@gitorious.com>"

start on started rc RUNLEVEL=[35]
stop on runlevel [06]

env PATH=/bin:/usr/bin:/usr/local/bin
env QUEUE=*
env PIDFILE=/var/www/gitorious/app/tmp/pids/resque-worker1.pid

exec /usr/local/bin/chruby-exec ruby-1.9.3-p448 -- /var/www/gitorious/app/bin/rake resque:work
respawn

现在我暂时执行了QUEUE=* /var/www/gitorious/app/bin/rake resque:work,它在当前终端内启动。

根据./script/diagnose轮询器正在运行,我正在接收通知邮件,并且活动流已更新。

最后一步(希望如此)是修复脚本,将其作为服务运行。我会尽快更新这篇文章。

ce-installer/upgrade.sh第71行(功能开始有效)我找到了启动resque-worker的解决方案。只需输入:

start resque-worker

(不是sudo service resque-worker start