0

私はRubyOnRailsアプリケーションを約9か月間使用しています。本番環境は、ApacheとPassengerを使用するUbuntuサーバーです。Capistranoを使用してデプロイしましたが、これはGitリポジトリを使用して正常に機能しています。開発マシンを変更したばかりですが、デプロイしようとするとタイムアウトエラーが発生します。エラーがどこにあるのかはわかりませんが、何らかのセキュリティの可能性があると感じています。私の開発マシンはubuntu12.04デスクトップです。'capdeploy'からの端末出力は次のとおりです。

 * executing `deploy`
 * executing `deploy:update`
** transaction: start
* executing `deploy:update_code`
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:nicko777/Tata.git HEAD"
command finished in 4260ms
* executing "if [ -d /home/passenger/Tata/shared/cached-copy ]; then cd /home/passenger/Tata/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 34350075132fff5c0bd8a831667680f6c912ef23 && git clean -q -d -x -f; else git clone -q git@github.com:nicko777/Tata.git /home/passenger/Tata/shared/cached-copy && cd /home/passenger/Tata/shared/cached-copy && git checkout -q -b deploy 34350075132fff5c0bd8a831667680f6c912ef23; fi"
servers: ["10.1.1.21"]
Password: 
[10.1.1.21] executing command
 ** [10.1.1.21 :: out] Write failed: Broken pipe
 ** fatal: The remote end hung up unexpectedly
command finished in 1033137ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/passenger/Tata/releases/20120626103643; true"
servers: ["10.1.1.21"]
[10.1.1.21] executing command
command finished in 16ms
failed: "sh -c 'if [ -d /home/passenger/Tata/shared/cached-copy ]; then cd /home/passenger/Tata/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 34350075132fff5c0bd8a831667680f6c912ef23 && git clean -q -d -x -f; else git clone -q git@github.com:nicko777/Tata.git /home/passenger/Tata/shared/cached-copy && cd /home/passenger/Tata/shared/cached-copy && git checkout -q -b deploy 34350075132fff5c0bd8a831667680f6c912ef23; fi'" on 10.1.1.21
4

1 に答える 1

1

これの何が問題だったのかを突き止めました。Capistrano をバージョン 2.12.0 にアップグレードする新しいマシンを作成したとき、サーバーをチェックしたところ、バージョンは 2.9.0 でした。新しいマシンのバージョンを 2.9.0 にダウングレードしたところ、cap デプロイが正常に機能するようになりました。

于 2012-07-03T15:23:53.297 に答える