收藏
回答

本地测试正常启动,服务部署为什么失败?

一键部署开始于 2022-06-14 15:32:01


AppID: wx5d5dcbf1b2c21e61

环境名称:weiqing-5gr0ahluc583fe58


[1/5] 创建数据库    完成  3s

[2/5] 创建服务     完成  1s

[3/5] 构建镜像     完成  44s

[4/5] 创建版本     失败  426s 创建版本失败: version_status=deploy_fail

[5/5] 发布版本     进行中 预计需要 1 分钟... -

[2022-06-14 15:32:07] Started by user coding

[2022-06-14 15:32:07] Running in Durability level: MAX_SURVIVABILITY

[2022-06-14 15:32:08] [Pipeline] Start of Pipeline

[2022-06-14 15:32:09] [Pipeline] node

[2022-06-14 15:32:09] Running on Jenkins in /root/workspace

[2022-06-14 15:32:09] [Pipeline] {

[2022-06-14 15:32:09] [Pipeline] stage

[2022-06-14 15:32:09] [Pipeline] { (检出 ZIP 包)

[2022-06-14 15:32:09] Stage "检出 ZIP 包" skipped due to when conditional

[2022-06-14 15:32:09] [Pipeline] }

[2022-06-14 15:32:09] [Pipeline] // stage

[2022-06-14 15:32:09] [Pipeline] stage

[2022-06-14 15:32:09] [Pipeline] { (检出代码仓库)

[2022-06-14 15:32:09] [Pipeline] sh

[2022-06-14 15:32:09] + git clone ****** .

[2022-06-14 15:32:09] Cloning into '.'...

[2022-06-14 15:32:10] [Pipeline] sh

[2022-06-14 15:32:10] + git checkout master

[2022-06-14 15:32:10] Already on 'master'

[2022-06-14 15:32:10] Your branch is up-to-date with 'origin/master'.

[2022-06-14 15:32:10] [Pipeline] }

[2022-06-14 15:32:10] [Pipeline] // stage

[2022-06-14 15:32:10] [Pipeline] stage

[2022-06-14 15:32:10] [Pipeline] { (构建 Docker 镜像)

[2022-06-14 15:32:10] [Pipeline] sh

[2022-06-14 15:32:10] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926

[2022-06-14 15:32:10] WARNING! Using --password via the CLI is insecure. Use --password-stdin.

[2022-06-14 15:32:11] WARNING! Your password will be stored unencrypted in /root/.docker/config.json.

[2022-06-14 15:32:11] Configure a credential helper to remove this warning. See

[2022-06-14 15:32:11] https://docs.docker.com/engine/reference/commandline/login/#credentials-store

[2022-06-14 15:32:11]

[2022-06-14 15:32:11] Login Succeeded

[2022-06-14 15:32:11] [Pipeline] sh

[2022-06-14 15:32:11] + docker build -f Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926 .

[2022-06-14 15:32:11] Sending build context to Docker daemon 70.14kB


[2022-06-14 15:32:11] Step 1/3 : FROM hnpx/takan:latest

[2022-06-14 15:32:13] latest: Pulling from hnpx/takan

[2022-06-14 15:32:13] 7b1a6ab2e44d: Pulling fs layer

[2022-06-14 15:32:13] f9f3e4499328: Pulling fs layer

[2022-06-14 15:32:13] e4e5e36b03a5: Pulling fs layer

[2022-06-14 15:32:13] df506a1358f3: Pulling fs layer

[2022-06-14 15:32:13] 7b1a6ab2e44d: Verifying Checksum

[2022-06-14 15:32:13] 7b1a6ab2e44d: Download complete

[2022-06-14 15:32:14] df506a1358f3: Verifying Checksum

[2022-06-14 15:32:14] df506a1358f3: Download complete

[2022-06-14 15:32:14] 7b1a6ab2e44d: Pull complete

[2022-06-14 15:32:20] f9f3e4499328: Download complete

[2022-06-14 15:32:25] f9f3e4499328: Pull complete

[2022-06-14 15:32:34] e4e5e36b03a5: Verifying Checksum

[2022-06-14 15:32:34] e4e5e36b03a5: Download complete

[2022-06-14 15:32:34] e4e5e36b03a5: Pull complete

[2022-06-14 15:32:34] df506a1358f3: Pull complete

[2022-06-14 15:32:34] Digest: sha256:1da6401d3d3cbfbd57a59d75ae29a2aca4c03de6afdc5e72fe7cd086a8f73e58

[2022-06-14 15:32:34] Status: Downloaded newer image for hnpx/takan:latest

[2022-06-14 15:32:34] ---> 8a7608168cb4

[2022-06-14 15:32:34] Step 2/3 : EXPOSE 8100

[2022-06-14 15:32:34] ---> Running in e2e9e79878b9

[2022-06-14 15:32:34] Removing intermediate container e2e9e79878b9

[2022-06-14 15:32:34] ---> c409bc35bc94

[2022-06-14 15:32:34] Step 3/3 : CMD ["bash","start.sh"]

[2022-06-14 15:32:34] ---> Running in 9e4d6417e209

[2022-06-14 15:32:34] Removing intermediate container 9e4d6417e209

[2022-06-14 15:32:34] ---> 4a6ae02fb3a4

[2022-06-14 15:32:34] Successfully built 4a6ae02fb3a4

[2022-06-14 15:32:34] Successfully tagged ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926

[2022-06-14 15:32:34] [Pipeline] }

[2022-06-14 15:32:34] [Pipeline] // stage

[2022-06-14 15:32:34] [Pipeline] stage

[2022-06-14 15:32:34] [Pipeline] { (推送 Docker 镜像到 TCR)

[2022-06-14 15:32:35] [Pipeline] sh

[2022-06-14 15:32:35] + docker push ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926

[2022-06-14 15:32:35] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764]

[2022-06-14 15:32:35] 46a9c39b8386: Preparing

[2022-06-14 15:32:35] a5985d786bf9: Preparing

[2022-06-14 15:32:35] 5381db41d99a: Preparing

[2022-06-14 15:32:35] 9f54eef41275: Preparing

[2022-06-14 15:32:35] 5381db41d99a: Layer already exists

[2022-06-14 15:32:35] 9f54eef41275: Layer already exists

[2022-06-14 15:32:37] 46a9c39b8386: Pushed

[2022-06-14 15:32:47] a5985d786bf9: Pushed

[2022-06-14 15:32:49] w7-301764-20220614153206-1655191926: digest: sha256:42633095633c7be8a78cdea2afec7a43415f18562b92c294e789983c8788c5d1 size: 1162

[2022-06-14 15:32:49] [Pipeline] }

[2022-06-14 15:32:49] [Pipeline] // stage

[2022-06-14 15:32:49] [Pipeline] }

[2022-06-14 15:32:49] [Pipeline] // node

[2022-06-14 15:32:49] [Pipeline] End of Pipeline

[2022-06-14 15:32:49] Finished: SUCCESS

***

-----------服务w7-301764部署w7-301764-009-----------

2022-06-14 15:32:53 create_version_describe_cluster : succ,

2022-06-14 15:32:53 create_version_check_vpc : succ,

2022-06-14 15:32:54 create_eks_virtual_service : succ,

2022-06-14 15:32:55 check_eks_virtual_service : succ, Back-off restarting failed container, [pod]:[Successfully assigned default/w7-301764-009-57df6bc7c8-bg977 to eklet-subnet-j0rtfzdd-192863;

Starting pod sandbox eks-a0uatx15;

Sync endpoints;

Pulling image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926";

Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926" in 16.56112671s;

Created container w7-301764-009;

Started container w7-301764-009;

Container image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926" already present on machine;

Back-off restarting failed container;

]

***

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

redis 启动

程序 启动

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

redis 启动

程序 启动

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成

旧应用进程id:

redis 启动

程序 启动

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed


0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused

完成


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签