简体   繁体   English

Capistrano对linked_files和linked_dirs的许多失败状态是什么意思?

[英]Capistrano many failed status on linked_files and linked_dirs what do they mean?

OK so all is working perfectly well as far as I can see, but I do see a lot of "failed" status on most of the linked_files and linked_dirs tasks and I am wondering if they deserve any attention. 好的,据我所知,一切工作都很好,但是在大多数linked_files和linked_dirs任务上,我确实看到了很多“失败”状态,我想知道它们是否值得关注。 Here are a few examples: 这里有一些例子:

DEBUG [423a17e1] Running [ -L /home/caluebat/www/ravenfort/releases/20160312213815/tmp/pids ] on xxx.xxx.xxx.xxx
DEBUG [423a17e1] Command: [ -L /home/caluebat/www/ravenfort/releases/20160312213815/tmp/pids ]
DEBUG [423a17e1] Finished in 0.470 seconds with exit status 1 (failed).
DEBUG [541d2f8a] Running [ -d /home/caluebat/www/ravenfort/releases/20160312213815/tmp/pids ] on xxx.xxx.xxx.xxx
DEBUG [541d2f8a] Command: [ -d /home/caluebat/www/ravenfort/releases/20160312213815/tmp/pids ]
DEBUG [541d2f8a] Finished in 0.476 seconds with exit status 1 (failed).

I was unable to find any detail on the capistrano official docs and they send either here or the mailing list for questions. 我无法找到有关capistrano官方文档的任何详细信息,他们将其发送至此处或发邮件询问问题。

I would appreciate any clarification on the above failures. 对于上述失败,请多多指教。 Thank you very much. 非常感谢你。

Don't worry about it! 不用担心!

Whenever cap runs a command that returns a non-zero result, it prints the line in red and says "failed". 每当cap运行返回非零结果的命令时,它将以红色打印该行并显示“失败”。 This can be misleading, because it runs a lot of commands just to see what already exists. 这可能会产生误导,因为它运行许多命令只是为了查看已经存在的命令。 For instance [ -d foo ] means "Is there a directory named foo?" 例如[ -d foo ]意思是“是否有一个名为foo的目录?” It's not actually a failure, it's just cap inspecting the target machine to find out what work it needs to do. 这实际上不是故障,而只是检查目标机器以找出其需要做的工作。

If cap hits a real error, it will quit early and you'll get a stack trace and/or actual error message. 如果cap遇到实际错误,它将提前退出,并且您会获得堆栈跟踪和/或实际错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM