1

gitorious を 2.x から 3 に更新しました。いくつかのトラブルの後、プル、プッシュなどを行うことができます。しかし、アクティビティ ストリームは更新されず、リポジトリは作成されません ("Your new repository is being created" が持続します)。

> ./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

ポーラー スクリプトはどこにあり、v3 でこれを開始する方法は? これが問題の理由ですか?

4

1 に答える 1

1

私のGoogleグループの投稿の回答によると、ポーラーを開始できる(または開始できない)

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、ポーラーは現在実行されており、通知メールを受信して​​おり、アクティビティ ストリームが更新されています。

最後のステップは (できれば) スクリプトを修復し、サービスとして実行することです。この投稿をできるだけ早く更新します。

の 71 行目( ce-installer/upgrade.shfunction start-gitorious) で、 を開始する解決策を見つけましたresque-worker。次のように入力します。

start resque-worker

(ではないsudo service resque-worker start

于 2013-12-27T21:49:26.560 に答える