部署开始于 2024-06-28 15:50:16
AppID: wxc46331858565a277
环境名称:prod-9g7nsxtpd55ed7d6
[1/2] 创建版本 失败 228s 创建版本失败:任务失败
[2024-06-28 15:50:24] Started by user coding
[2024-06-28 15:50:24] Running in Durability level: MAX_SURVIVABILITY
[2024-06-28 15:50:26] [Pipeline] Start of Pipeline
[2024-06-28 15:50:26] [Pipeline] node
[2024-06-28 15:50:26] Running on Jenkins in /root/workspace
[2024-06-28 15:50:26] [Pipeline] {
[2024-06-28 15:50:26] [Pipeline] stage
[2024-06-28 15:50:26] [Pipeline] { (检出 ZIP 包)
[2024-06-28 15:50:26] [Pipeline] sh
[2024-06-28 15:50:26] + curl -L -u ****** -o code.zip
[2024-06-28 15:50:26] % Total % Received % Xferd Average Speed Time Time Time Current
[2024-06-28 15:50:26] Dload Upload Total Spent Left Speed
[2024-06-28 15:50:27]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9790 100 9790 0 0 37780 0 --:--:-- --:--:-- --:--:-- 37653
[2024-06-28 15:50:27] [Pipeline] sh
[2024-06-28 15:50:27] + unzip code.zip
[2024-06-28 15:50:27] Archive: code.zip
[2024-06-28 15:50:27] inflating: Dockerfile
[2024-06-28 15:50:27] inflating: requirements.txt
[2024-06-28 15:50:27] creating: app/
[2024-06-28 15:50:27] inflating: app/config.py
[2024-06-28 15:50:27] inflating: app/fpxz.py
[2024-06-28 15:50:27] [Pipeline] }
[2024-06-28 15:50:27] [Pipeline] // stage
[2024-06-28 15:50:27] [Pipeline] stage
[2024-06-28 15:50:27] [Pipeline] { (检出代码仓库)
[2024-06-28 15:50:27] Stage "检出代码仓库" skipped due to when conditional
[2024-06-28 15:50:27] [Pipeline] }
[2024-06-28 15:50:27] [Pipeline] // stage
[2024-06-28 15:50:27] [Pipeline] stage
[2024-06-28 15:50:27] [Pipeline] { (构建 Docker 镜像)
[2024-06-28 15:50:27] [Pipeline] sh
[2024-06-28 15:50:28] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-hljm/ca-bugxylvt_fpxz:fpxz-006-20240628155022
[2024-06-28 15:50:28] WARNING! Using --password via the CLI is insecure. Use --password-stdin.
[2024-06-28 15:50:28] WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
[2024-06-28 15:50:28] Configure a credential helper to remove this warning. See
[2024-06-28 15:50:28] https://docs.docker.com/engine/reference/commandline/login/#credentials-store
[2024-06-28 15:50:28]
[2024-06-28 15:50:28] Login Succeeded
[2024-06-28 15:50:28] [Pipeline] sh
[2024-06-28 15:50:28] + docker build -f ././/Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-hljm/ca-bugxylvt_fpxz:fpxz-006-20240628155022 ./
[2024-06-28 15:50:28] DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
[2024-06-28 15:50:28] Install the buildx component to build images with BuildKit:
[2024-06-28 15:50:28] https://docs.docker.com/go/buildx/
[2024-06-28 15:50:28]
[2024-06-28 15:50:28] Sending build context to Docker daemon 87.55kB
[2024-06-28 15:50:28] Step 1/11 : FROM python:3.9-slim
[2024-06-28 15:50:29] 3.9-slim: Pulling from library/python
[2024-06-28 15:50:29] 2cc3ae149d28: Pulling fs layer
[2024-06-28 15:50:29] 670483cd5170: Pulling fs layer
[2024-06-28 15:50:29] 8b920a4a2006: Pulling fs layer
[2024-06-28 15:50:29] 48e2a65c587f: Pulling fs layer
[2024-06-28 15:50:29] d95408d27250: Pulling fs layer
[2024-06-28 15:50:29] 48e2a65c587f: Download complete
[2024-06-28 15:50:30] d95408d27250: Verifying Checksum
[2024-06-28 15:50:30] 670483cd5170: Verifying Checksum
[2024-06-28 15:50:30] 670483cd5170: Download complete
[2024-06-28 15:50:30] 8b920a4a2006: Verifying Checksum
[2024-06-28 15:50:30] 8b920a4a2006: Download complete
[2024-06-28 15:50:32] 2cc3ae149d28: Verifying Checksum
[2024-06-28 15:50:32] 2cc3ae149d28: Download complete
[2024-06-28 15:50:33] 2cc3ae149d28: Pull complete
[2024-06-28 15:50:33] 670483cd5170: Pull complete
[2024-06-28 15:50:34] 8b920a4a2006: Pull complete
[2024-06-28 15:50:34] 48e2a65c587f: Pull complete
[2024-06-28 15:50:34] d95408d27250: Pull complete
[2024-06-28 15:50:34] Digest: sha256:d3185e5aa645a4ff0b52416af05c8465d93791e49c5a0d0f565c119099f26cde
[2024-06-28 15:50:34] Status: Downloaded newer image for python:3.9-slim
[2024-06-28 15:50:34] ---> 04bf3d9a322b
[2024-06-28 15:50:34] Step 2/11 : RUN python -m venv /env
[2024-06-28 15:50:34] ---> Running in 3bd017616df3
[2024-06-28 15:50:41] Removing intermediate container 3bd017616df3
[2024-06-28 15:50:41] ---> a9ce996e123f
[2024-06-28 15:50:41] Step 3/11 : ENV PATH="/env/bin:$PATH"
[2024-06-28 15:50:41] ---> Running in be4380e940d7
[2024-06-28 15:50:41] Removing intermediate container be4380e940d7
[2024-06-28 15:50:41] ---> 3a41293b7d08
[2024-06-28 15:50:41] Step 4/11 : WORKDIR /app
[2024-06-28 15:50:41] ---> Running in 72ccb80052b0
[2024-06-28 15:50:41] Removing intermediate container 72ccb80052b0
[2024-06-28 15:50:41] ---> 0a3b48ca98a4
[2024-06-28 15:50:41] Step 5/11 : COPY . /app
[2024-06-28 15:50:41] ---> c65a7a2ec8a7
[2024-06-28 15:50:41] Step 6/11 : RUN pip install --no-cache-dir -r requirements.txt
[2024-06-28 15:50:41] ---> Running in 80ce5ba93784
[2024-06-28 15:50:41] Collecting Flask==2.2.2
[2024-06-28 15:50:41] Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
[2024-06-28 15:50:41] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 kB 1.9 MB/s eta 0:00:00
[2024-06-28 15:50:41] Collecting suds
[2024-06-28 15:50:41] Downloading suds-1.1.2-py3-none-any.whl (144 kB)
[2024-06-28 15:50:41] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.8/144.8 kB 4.7 MB/s eta 0:00:00
[2024-06-28 15:50:41] Collecting pymysql==1.0.2
[2024-06-28 15:50:41] Downloading PyMySQL-1.0.2-py3-none-any.whl (43 kB)
[2024-06-28 15:50:41] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.8/43.8 kB 164.2 MB/s eta 0:00:00
[2024-06-28 15:50:41] Collecting requests==2.28.1
[2024-06-28 15:50:41] Downloading requests-2.28.1-py3-none-any.whl (62 kB)
[2024-06-28 15:50:41] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 157.9 MB/s eta 0:00:00
[2024-06-28 15:50:41] Collecting xmltodict==0.12.0
[2024-06-28 15:50:41] Downloading xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
[2024-06-28 15:50:41] Collecting click>=8.0
[2024-06-28 15:50:42] Downloading click-8.1.7-py3-none-any.whl (97 kB)
[2024-06-28 15:50:42] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 23.7 MB/s eta 0:00:00
[2024-06-28 15:50:42] Collecting Jinja2>=3.0
[2024-06-28 15:50:42] Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
[2024-06-28 15:50:42] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 kB 27.1 MB/s eta 0:00:00
[2024-06-28 15:50:42] Collecting itsdangerous>=2.0
[2024-06-28 15:50:42] Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
[2024-06-28 15:50:42] Collecting importlib-metadata>=3.6.0
[2024-06-28 15:50:42] Downloading importlib_metadata-8.0.0-py3-none-any.whl (24 kB)
[2024-06-28 15:50:42] Collecting Werkzeug>=2.2.2
[2024-06-28 15:50:42] Downloading werkzeug-3.0.3-py3-none-any.whl (227 kB)
[2024-06-28 15:50:42] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.3/227.3 kB 22.8 MB/s eta 0:00:00
[2024-06-28 15:50:42] Collecting charset-normalizer<3,>=2
[2024-06-28 15:50:42] Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
[2024-06-28 15:50:42] Collecting certifi>=2017.4.17
[2024-06-28 15:50:42] Downloading certifi-2024.6.2-py3-none-any.whl (164 kB)
[2024-06-28 15:50:42] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 164.4/164.4 kB 102.8 MB/s eta 0:00:00
[2024-06-28 15:50:42] Collecting idna<4,>=2.5
[2024-06-28 15:50:43] Downloading idna-3.7-py3-none-any.whl (66 kB)
[2024-06-28 15:50:43] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 kB 185.5 MB/s eta 0:00:00
[2024-06-28 15:50:43] Collecting urllib3<1.27,>=1.21.1
[2024-06-28 15:50:43] Downloading urllib3-1.26.19-py2.py3-none-any.whl (143 kB)
[2024-06-28 15:50:43] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.9/143.9 kB 76.7 MB/s eta 0:00:00
[2024-06-28 15:50:43] Collecting zipp>=0.5
[2024-06-28 15:50:43] Downloading zipp-3.19.2-py3-none-any.whl (9.0 kB)
[2024-06-28 15:50:43] Collecting MarkupSafe>=2.0
[2024-06-28 15:50:43] Downloading MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
[2024-06-28 15:50:43] Installing collected packages: zipp, xmltodict, urllib3, suds, pymysql, MarkupSafe, itsdangerous, idna, click, charset-normalizer, certifi, Werkzeug, requests, Jinja2, importlib-metadata, Flask
[2024-06-28 15:50:44] Successfully installed Flask-2.2.2 Jinja2-3.1.4 MarkupSafe-2.1.5 Werkzeug-3.0.3 certifi-2024.6.2 charset-normalizer-2.1.1 click-8.1.7 idna-3.7 importlib-metadata-8.0.0 itsdangerous-2.2.0 pymysql-1.0.2 requests-2.28.1 suds-1.1.2 urllib3-1.26.19 xmltodict-0.12.0 zipp-3.19.2
[2024-06-28 15:50:44]
[2024-06-28 15:50:44] [notice] A new release of pip is available: 23.0.1 -> 24.1.1
[2024-06-28 15:50:44] [notice] To update, run: pip install --upgrade pip
[2024-06-28 15:50:45] Removing intermediate container 80ce5ba93784
[2024-06-28 15:50:45] ---> 059a1bddf3fe
[2024-06-28 15:50:45] Step 7/11 : RUN pip install --upgrade pip
[2024-06-28 15:50:45] ---> Running in a7b634af2659
[2024-06-28 15:50:46] Requirement already satisfied: pip in /env/lib/python3.9/site-packages (23.0.1)
[2024-06-28 15:50:46] Collecting pip
[2024-06-28 15:50:46] Downloading pip-24.1.1-py3-none-any.whl (1.8 MB)
[2024-06-28 15:50:46] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 9.9 MB/s eta 0:00:00
[2024-06-28 15:50:46] Installing collected packages: pip
[2024-06-28 15:50:46] Attempting uninstall: pip
[2024-06-28 15:50:46] Found existing installation: pip 23.0.1
[2024-06-28 15:50:47] Uninstalling pip-23.0.1:
[2024-06-28 15:50:47] Successfully uninstalled pip-23.0.1
[2024-06-28 15:50:48] Successfully installed pip-24.1.1
[2024-06-28 15:50:49] Removing intermediate container a7b634af2659
[2024-06-28 15:50:49] ---> fa78718e674f
[2024-06-28 15:50:49] Step 8/11 : EXPOSE 4600
[2024-06-28 15:50:49] ---> Running in 40cff12d7622
[2024-06-28 15:50:49] Removing intermediate container 40cff12d7622
[2024-06-28 15:50:49] ---> 929306d6b6b4
[2024-06-28 15:50:49] Step 9/11 : ENV FLASK_APP=fpxz.py
[2024-06-28 15:50:49] ---> Running in 4f7a66882cba
[2024-06-28 15:50:49] Removing intermediate container 4f7a66882cba
[2024-06-28 15:50:49] ---> f0b2431a2099
[2024-06-28 15:50:49] Step 10/11 : ENV FLASK_RUN_HOST=0.0.0.0
[2024-06-28 15:50:49] ---> Running in 98635fec459b
[2024-06-28 15:50:49] Removing intermediate container 98635fec459b
[2024-06-28 15:50:49] ---> 8a36b1f2a5c5
[2024-06-28 15:50:49] Step 11/11 : CMD ["flask", "run"]
[2024-06-28 15:50:49] ---> Running in 6088d03ced3a
[2024-06-28 15:50:49] Removing intermediate container 6088d03ced3a
[2024-06-28 15:50:49] ---> e0c6d59b16d0
[2024-06-28 15:50:49] Successfully built e0c6d59b16d0
[2024-06-28 15:50:49] Successfully tagged ccr.ccs.tencentyun.com/tcb-******-hljm/ca-bugxylvt_fpxz:fpxz-006-20240628155022
[2024-06-28 15:50:49] [Pipeline] }
[2024-06-28 15:50:49] [Pipeline] // stage
[2024-06-28 15:50:49] [Pipeline] stage
[2024-06-28 15:50:49] [Pipeline] { (推送 Docker 镜像到 TCR)
[2024-06-28 15:50:49] [Pipeline] sh
[2024-06-28 15:50:50] + docker push ccr.ccs.tencentyun.com/tcb-******-hljm/ca-bugxylvt_fpxz:fpxz-006-20240628155022
[2024-06-28 15:50:50] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-hljm/ca-bugxylvt_fpxz]
[2024-06-28 15:50:50] fd55c07cd75c: Preparing
[2024-06-28 15:50:50] 1cd0a14c8ec9: Preparing
[2024-06-28 15:50:50] e797af9b0537: Preparing
[2024-06-28 15:50:50] 6c4efffe00c5: Preparing
[2024-06-28 15:50:50] 63aa8a2853d0: Preparing
[2024-06-28 15:50:50] 96bc6bc13d2f: Preparing
[2024-06-28 15:50:50] 8b2d7b261e2c: Preparing
[2024-06-28 15:50:50] 7d4e4b165042: Preparing
[2024-06-28 15:50:50] 9a9d1a3508f5: Preparing
[2024-06-28 15:50:50] 1387079e86ad: Preparing
[2024-06-28 15:50:50] 8b2d7b261e2c: Layer already exists
[2024-06-28 15:50:50] 1387079e86ad: Layer already exists
[2024-06-28 15:50:50] 7d4e4b165042: Layer already exists
[2024-06-28 15:50:50] 96bc6bc13d2f: Layer already exists
[2024-06-28 15:50:50] 9a9d1a3508f5: Layer already exists
[2024-06-28 15:50:51] e797af9b0537: Pushed
[2024-06-28 15:50:51] 6c4efffe00c5: Pushed
[2024-06-28 15:50:53] 1cd0a14c8ec9: Pushed
[2024-06-28 15:50:55] 63aa8a2853d0: Pushed
[2024-06-28 15:50:55] fd55c07cd75c: Pushed
[2024-06-28 15:50:56] fpxz-006-20240628155022: digest: sha256:2f682e3a780154004c701f7edbf0f4287c016b87b626a8aa2f9df181273f9382 size: 2418
[2024-06-28 15:50:56] [Pipeline] }
[2024-06-28 15:50:56] [Pipeline] // stage
[2024-06-28 15:50:56] [Pipeline] }
[2024-06-28 15:50:56] [Pipeline] // node
[2024-06-28 15:50:56] [Pipeline] End of Pipeline
[2024-06-28 15:50:56] Finished: SUCCESS
***
-----------构建fpxz-006-----------
2024-06-28 15:50:23 create_build_image : succ,
2024-06-28 15:51:01 create_eks_virtual_service : succ,
2024-06-28 15:51:01 check_build_image : succ, ,
-----------服务fpxz部署fpxz-006-----------
2024-06-28 15:51:02 check_eks_virtual_service : process, DescribeVersion_user_error_Back-off restarting failed container, [service]:[Failed to pull image "ccr.ccs.tencentyun.com/tcb_prd/coredns:amd64-1.10.1-cloudrun": rpc error: code = Unknown desc = failed to pull and unpack image "ccr.ccs.tencentyun.com/tcb_prd/coredns:amd64-1.10.1-cloudrun": failed to copy: httpReaderSeeker: failed open: failed to do request: Get "http://ccr-avatar-sh-1258344699.cos-internal.ap-shanghai.tencentcos.cn/avatar/data/blob/sha256/d7/d78db2b57cc6b7f8c2dadb1b27d712071d02370ec969748d6f03f10b87efe619?q-sign-algorithm=sha1&q-ak=AKIDysfRH0aYzdEs9GF4f6LOI4g6KK8pRAvb&q-sign-time=1719561095%3B1719562295&q-key-time=1719561095%3B1719562295&q-header-list=host&q-url-param-list=&q-signature=f5ec48c6157489dbaf88453adc5a1271d47b2442": dial tcp: lookup ccr-avatar-sh-1258344699.cos-internal.ap-shanghai.tencentcos.cn: no such host,Error: ErrImagePull,Exec lifecycle hook ([/bin/sh /app/cert/initenv.sh]) for Container "fpxz-006" in Pod "fpxz-006-fcff7c6cc-pnv65_rcwhxhhc(f97b335f-f8d7-4309-94aa-6f96b0488816)" failed - error: command '/bin/sh /app/cert/initenv.sh' exited with 137: + certFile=/app/cert/certificate.crt
+ certLog=/app/cert.log
+ srcIp=169.254.10.1
+ srcHost=api.weixin.qq.com
+ checkFileCnt=0
+ is_user_root
+ id -u
+ [ 0 -eq 0 ]
+ echo User is root, patching env and certs.
+ [ ! -f /app/cert/certificate.crt ]
+ [ ! -f /etc/os-release ]
+ . /etc/os-release
+ PRETTY_NAME=Debian GNU/Linux 12 (bookworm)
+ NAME=Debian GNU/Linux
+ VERSION_ID=12
+ VERSION=12 (bookworm)
+ VERSION_CODENAME=bookworm
+ ID=debian
+ HOME_URL=https://www.debian.org/
+ SUPPORT_URL=https://www.debian.org/support
+ BUG_REPORT_URL=https://bugs.debian.org/
+ echo [I]: os release is debian
+ update-ca-certificates -h
+ cp /app/cert/certificate.crt /usr/local/share/ca-certificates/
+ update-ca-certificates
, message: "/usr/sbin/update-ca-certificates: [--verbose] [--fresh]\nUpdating certificates in /etc/ssl/certs...\n+ certFile=/app/cert/certificate.crt\n+ certLog=/app/cert.log\n+ srcIp=169.254.10.1\n+ srcHost=api.weixin.qq.com\n+ checkFileCnt=0\n+ is_user_root\n+ id -u\n+ [ 0 -eq 0 ]\n+ echo User is root, patching env and certs.\n+ [ ! -f /app/cert/certificate.crt ]\n+ [ ! -f /etc/os-release ]\n+ . /etc/os-release\n+ PRETTY_NAME=Debian GNU/Linux 12 (bookworm)\n+ NAME=Debian GNU/Linux\n+ VERSION_ID=12\n+ VERSION=12 (bookworm)\n+ VERSION_CODENAME=bookworm\n+ ID=debian\n+ HOME_URL=https://www.debian.org/\n+ SUPPORT_URL=https://www.debian.org/support\n+ BUG_REPORT_URL=https://bugs.debian.org/\n+ echo [I]: os release is debian\n+ update-ca-certificates -h\n+ cp /app/cert/certificate.crt /usr/local/share/ca-certificates/\n+ update-ca-certificates\n",Error: ImagePullBackOff,Back-off restarting failed container,]