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

项目发布流程卡住一直进行中 #357

Open
JuneyQiu opened this issue Nov 10, 2022 · 8 comments
Open

项目发布流程卡住一直进行中 #357

JuneyQiu opened this issue Nov 10, 2022 · 8 comments

Comments

@JuneyQiu
Copy link

项目发布时,流程卡住,停在编译代码阶段,不往后走了。
详细部署日志流水:
编译代码
【执行编译命令脚本】
2022-11-03 19:07:29 by pengfei01.liu
dos2unix: converting file /apps/Deploy/sh/08677027.sh to UNIX format ...

部署日志流水

@welliamcao
Copy link
Owner

编辑命令能贴一下吗。

@JuneyQiu
Copy link
Author

image

@JuneyQiu
Copy link
Author

这是一个前端项目,使用nodejs编译,项目发布配置没有做过变更,就突然编译完卡住,查看release目录已经打好包,就是不往目标服务器推送。不清楚哪里卡住。
目前只能使用临时方法,在部署主机上写脚本,执行deploy。使用脚本,scp 到目标主机均执行正常;
scp /apps/Deploy/release/$project_name/$dirname $dest_host:/apps/dat/web/tmp/$project_name/
请大神指点一下。为什么同样的操作,界面执行就有问题。
为了及时沟通,有任务疑问可以随时邮件沟通,谢谢

@welliamcao
Copy link
Owner

是不会仓库访问网络延迟了。

@JuneyQiu
Copy link
Author

JuneyQiu commented Jan 8, 2023

NPM也有打包成功;就是不推送到目标机器;是超时了吗?所以不执行后续推送的任务;

@welliamcao
Copy link
Owner

目标服务器能通过ssh进行连接吗?

@JuneyQiu
Copy link
Author

目标机器可以通过ssh连接。我现在上版是半自动化的,cmdb页面编译打包,然后在cmdb主机上写脚本推送。都可以的;

@welliamcao
Copy link
Owner

怀疑是npm编译的时间超过django的默认http超时时间了。或者使用使用ansible rsync模块直接同步看看会不会卡住。方便的话,我远程协助帮你看看。

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