每次我运行cap deploy
时都会遇到此错误。我有三个实例(db01,web01,app01),问题似乎只与app实例有关。以下是发生的事情:
triggering after callbacks for `deploy:restart'
* 2013-01-06 12:13:17 executing `rubber:apache:reload'
* 2013-01-06 12:13:17 executing `rubber:apache:serial_reload'
* 2013-01-06 12:13:17 executing `rubber:apache:_serial_task_serial_reload_app01'
triggering before callbacks for `rubber:apache:_serial_task_serial_reload_app01'
* 2013-01-06 12:13:17 executing `rubber:passenger:serial_remove_from_pool_reload_app01'
* executing "sudo -p 'sudo password: ' bash -l -c 'rm -f /mnt/vlogio-production/releases/*/public/httpchk.txt && sleep 5'"
servers: ["app01.foo.com"]
[app01.foo.com] executing command
command finished in 10646ms
* executing "sudo -p 'sudo password: ' bash -l -c 'if ! ps ax | grep -v grep | grep -c apache2 &> /dev/null; then service apache2 start; else service apache2 reload; fi'"
servers: ["app01.foo.com"]
[app01.foo.com] executing command
** [out :: app01.foo.com] * Starting web server apache2
** [out :: app01.foo.com]
** [out :: app01.foo.com]
** [out :: app01.foo.com]
** [out :: app01.foo.com]
** [out :: app01.foo.com] [ OK ]
command finished in 5817ms
triggering after callbacks for `rubber:apache:_serial_task_serial_reload_app01'
* 2013-01-06 12:13:34 executing `rubber:passenger:serial_add_to_pool_reload_app01'
** Waiting for passenger to startup
* executing "sudo -p 'sudo password: ' bash -l -c 'while ! curl -s -ff http://localhost:$CAPISTRANO:VAR$/ &> /dev/null; do echo .; done'"
servers: ["app01.foo.com"]
[app01.foo.com] executing command
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
** [out :: app01.foo.com] .
然后** [out :: app01.foo.com] .
无限期地每秒打印几次(我离开它6个小时,什么也没发生)。任何帮助解决这个问题将不胜感激。