1

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

> ./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 中启动它?这是问题的原因吗?

4

1 回答 1

1

根据我的 Google Groups 帖子中的答案,您可以(或不)通过以下方式启动轮询器

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 行(函数 start-gitorious)中,我找到了启动resque-worker. 只需输入:

start resque-worker

(不是sudo service resque-worker start

于 2013-12-27T21:49:26.560 回答