walle-web
walle-web copied to clipboard
release前置任务前,会有个奇怪的报错信息
问题描述
在owner
下,上线单发布页面,发布过程中出现异常,报错:会有奇怪的异常
问题描述 日志堆栈贴上来。 logs/runtime.log(部分日志)
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"127.0.0.1","error":"","user":"root","success":"","sequence":3,"cmd":"cd /home/gitlab/ && tar zcf /home/gitlab/2_24_20190226_184519.tgz --exclude=.DS_Store --exclude=node_modules --exclude=/dist --exclude=.env.local --exclude=.env.*.local --exclude=npm-debug.log* --exclude=yarn-debug.log* --exclude=yarn-error.log* --exclude=.idea --exclude=.vscode --exclude=*.suo --exclude=*.ntvs* --exclude=*.njsproj --exclude=*.sln --exclude=*.sw* 2_24_20190226_184519/ ","stage":"post_deploy"},"event":"console"}]
emitting event "fail" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["fail",{"data":{"message":"\u4efb\u52a1\u90e8\u7f72\u5931\u8d25\uff0c\u5df2\u7ec8\u6b62\u3002\u8bf7\u4fee\u590d\u9519\u8bef\u540e\uff0c\u91cd\u65b0\u90e8\u7f72\u3002"},"event":"finish"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":4,"cmd":"mkdir -p /home/data/releases/hm_ai_dashboard","stage":"prev_release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":1,"host":"127.0.0.1","error":"","user":"root","success":"","sequence":4,"cmd":"scp /home/gitlab/2_24_20190226_184519.tgz root@47.**.**.**:/home/data/releases/hm_ai_dashboard","stage":"prev_release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":4,"cmd":"tar zxf 2_24_20190226_184519.tgz","stage":"prev_release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":4,"cmd":"WEB_NAME=${PWD##*/} && cd ../ && cp -r ${WEB_NAME}/dist ${WEB_NAME}_dist && rm -rf ./${WEB_NAME} && mv ${WEB_NAME}_dist ${WEB_NAME}","stage":"prev_release"},"event":"task:console"}]
/home/data/releases/hm_ai_dashboard/2_22_20190226_174638
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":5,"cmd":"ln -sfn /home/data/releases/hm_ai_dashboard/2_24_20190226_184519 /home/data/releases/hm_ai_dashboard/current-tmp-24","stage":"release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":5,"cmd":"mv -fT /home/data/releases/hm_ai_dashboard/current-tmp-24 /home/data/www/hm_ai_dashboard","stage":"release"},"event":"task:console"}]
release后置任务
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"release\u540e\u7f6e\u4efb\u52a1\r\n","sequence":6,"cmd":"echo 'release\u540e\u7f6e\u4efb\u52a1'","stage":"post_release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":6,"cmd":"rm -rf 2_*.tgz","stage":"post_release"},"event":"task:console"}]
emitting event "console" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["console",{"data":{"status":0,"host":"47.**.**.**","error":"","user":"root","success":"","sequence":6,"cmd":"rm -rf `ls -t 2_* | tail -n +6`","stage":"post_release"},"event":"task:console"}]
emitting event "success" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["success",{"data":{"host":"47.**.**.**","message":"47.**.**.** \u90e8\u7f72\u5b8c\u6210\uff01"},"event":"finish"}]
emitting event "success" to 24 [/walle]
1edbc30d680448ef895065b5b5f542b9: Sending packet MESSAGE data 2/walle,["success",{"data":{"message":"\u90e8\u7f72\u5b8c\u6210\uff0c\u8f9b\u82e6\u4e86\uff0c\u4e3a\u4f60\u7684\u52aa\u529b\u559d\u5f69\uff01"},"event":"finish"}]
31e123364e4e4e248a90e30699222ed4: Received packet PING data None
Receive error -- socket is closed
logs/error.log
错误日志里没有错误信息
截图
执行发布操作时,会在release前置任务的时候提示’任务部署失败,已终止。请修复错误后,重新部署。‘ 然而发布任务还在继续执行,然后紧接着会提示’部署完成‘ 而且实际上上线发布是成功的
运行环境
- OS: [e.g. Centos 7.6.1810]
- 版本 [e.g. 2.0.0]
辛苦了
怎么解决的呢
@444136347 没解决,最后换框架了