[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*
目前排查到原因是:
问题描述 在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*
截图
运行环境