Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上线出错-是bug? #27

Closed
ShoujunChen opened this issue Oct 28, 2015 · 6 comments
Closed

上线出错-是bug? #27

ShoujunChen opened this issue Oct 28, 2015 · 6 comments

Comments

@ShoujunChen
Copy link

错误信息:

全量更新服务器出错:'10.93.0.4 : mv: cannot overwrite directory '/var/www/publish' with non-directory'
'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no www@10.74.0.4 "sh -c "ln -sfn /var/www/releases/portal-html/20151028-151637 /var/www/releases/portal-html/current-portal-html.tmp && chown -h www /var/www/releases/portal-html/current-portal-html.tmp && mv -fT /var/www/releases/portal-html/current-portal-html.tmp /var/www/publish""'

很明显是最后一段shell有问题:
mv -fT /var/www/releases/portal-html/current-portal-html.tmp /var/www/publish
直接执行也会报错:mv: 无法以非目录来覆盖目录"/var/www/publish"

是bug吧

@meolu
Copy link
Owner

meolu commented Oct 28, 2015

软链接不能覆盖目录 /var/www/publish,rm -rf /var/www/publish

@ShoujunChen
Copy link
Author

增加定位信息,这是点击部署的时候产生的,如何修复:
2015-10-28 3 26 04

@meolu
Copy link
Owner

meolu commented Oct 28, 2015

软链接不能覆盖目录 /var/www/publish,rm -rf /var/www/publish,重启部署

@ShoujunChen
Copy link
Author

对的,软链接不能覆盖目录 /var/www/publish,rm -rf /var/www/publish

但是这个系统生产的脚本,我也没法改它
是重新部署还是重启apache服务?

如果重新部署,不知道问题的根源是什么,根源不找到,重新部署一遍也未必可以啊

@meolu
Copy link
Owner

meolu commented Oct 28, 2015

image

目标机不应该新建该目录,删除就好,walle会自己新建一个/var/www/publish软链

@ShoujunChen
Copy link
Author

问题解决
多谢,meolu!

@meolu meolu closed this as completed Oct 28, 2015
@tedlz tedlz mentioned this issue Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants