meolu / walle-web

walle - 瓦力 Devops开源项目代码部署平台
https://walle-web.io
Apache License 2.0
11.85k stars 2.76k forks source link

BUG 上线项目一直报错 Cannot open: No such file or directory #736

Open Akuns opened 5 years ago

Akuns commented 5 years ago

目前排查到原因是:

是因为添加了宿主机的IP到服务器管理,发布的时候就会出现这样的错误

问题描述 在Owner下,上线项目一直报错,求救:

[root@127.0.0.1]$ [ -d ".git" ] && git status nothing to commit, working directory clean [root@127.0.0.1]$ cp -rf /www/wwwroot/walle_project/2 2_18_20190301_160425 [root@127.0.0.1]$ git reset -q --hard c558fd7 [root@127.0.0.1]$ cd /www/wwwroot/walle_project/2 && [ -d ".git" ] && git status nothing to commit, working directory clean [root@127.0.0.1]$ cd /www/wwwroot/walle_project/ && cp -rf /www/wwwroot/walle_project/2 2_18_20190301_160425 [root@127.0.0.1]$ cd /www/wwwroot/walle_project/2_18_20190301_160425 && git reset -q --hard c558fd7 [root@127.0.0.1]$ cd /www/wwwroot/walle_project/ && tar zcf /www/wwwroot/walle_project/2_18_20190301_160425.tgz 2_18_20190301_160425/ [root@10.104.189.64]$ mkdir -p /www/wwwroot/melover/backup/api [root@127.0.0.1]$ scp /www/wwwroot/walle_project/2_18_20190301_160425.tgz root@10.104.189.64:/www/wwwroot/melover/backup/api [Errno 2] No such file or directory: '/www/wwwroot/walle_project/2_18_20190301_160425.tgz' [root@10.104.189.64]$ tar zxf 2_18_20190301_160425.tgz tar (child): 2_18_20190301_160425.tgz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now [root@127.0.0.1]$ rm -rf 218*

截图

wx20190301-193718 2x

运行环境

Akuns commented 5 years ago

@meolu

xbw1220 commented 5 years ago

你应该是误解了walle的使用方式