- 该代码片段中第一行出错的原因?且该安装的库都有
[图片]
1天前 - 云托管部署发布的原因?
部署开始于 2024-11-02 19:29:22 AppID: wxa7ef1d783a403f9b 环境名称:prod-3gk6qsu5eff5b1f9 [1/2] 创建版本 失败 239s 创建版本失败:任务失败 [2024-11-02 19:29:34] Started by user coding [2024-11-02 19:29:34] Running in Durability level: MAX_SURVIVABILITY [2024-11-02 19:29:36] [Pipeline] Start of Pipeline [2024-11-02 19:29:37] [Pipeline] node [2024-11-02 19:29:37] Running on Jenkins in /root/workspace [2024-11-02 19:29:37] [Pipeline] { [2024-11-02 19:29:37] [Pipeline] stage [2024-11-02 19:29:37] [Pipeline] { (检出软件包) [2024-11-02 19:29:37] Stage "检出软件包" skipped due to when conditional [2024-11-02 19:29:37] [Pipeline] } [2024-11-02 19:29:37] [Pipeline] // stage [2024-11-02 19:29:37] [Pipeline] stage [2024-11-02 19:29:37] [Pipeline] { (检出 ZIP 包) [2024-11-02 19:29:37] [Pipeline] script [2024-11-02 19:29:38] [Pipeline] { [2024-11-02 19:29:38] [Pipeline] sh [2024-11-02 19:29:38] + curl -fsSL -u ****** -o code.zip [2024-11-02 19:29:38] [Pipeline] } [2024-11-02 19:29:38] [Pipeline] // script [2024-11-02 19:29:38] [Pipeline] sh [2024-11-02 19:29:38] + unzip code.zip [2024-11-02 19:29:38] Archive: code.zip [2024-11-02 19:29:38] inflating: .gitignore [2024-11-02 19:29:38] inflating: Dockerfile [2024-11-02 19:29:38] inflating: Dockerfile.txt [2024-11-02 19:29:38] inflating: gulpfile.js [2024-11-02 19:29:38] inflating: package-lock.json [2024-11-02 19:29:38] inflating: package.json [2024-11-02 19:29:38] inflating: README.md [2024-11-02 19:29:38] inflating: README_en.md [2024-11-02 19:29:38] inflating: router.js [2024-11-02 19:29:38] inflating: server.js [2024-11-02 19:29:38] creating: example/ [2024-11-02 19:29:38] creating: example/POST/ [2024-11-02 19:29:38] inflating: example/POST/users.json [2024-11-02 19:29:38] creating: example/GET/ [2024-11-02 19:29:38] inflating: example/GET/echo.json [2024-11-02 19:29:38] inflating: example/GET/users.json [2024-11-02 19:29:38] creating: example/GET/api/ [2024-11-02 19:29:38] creating: example/GET/api/v1/ [2024-11-02 19:29:38] creating: example/GET/api/v1/users/ [2024-11-02 19:29:38] inflating: example/GET/api/v1/users/{id}.json [2024-11-02 19:29:38] creating: example/DELETE/ [2024-11-02 19:29:38] creating: example/DELETE/users/ [2024-11-02 19:29:38] inflating: example/DELETE/users/{id}.json [2024-11-02 19:29:38] creating: assets/ [2024-11-02 19:29:38] inflating: assets/04-16-13-22-37.png [2024-11-02 19:29:38] + rm code.zip [2024-11-02 19:29:38] [Pipeline] } [2024-11-02 19:29:38] [Pipeline] // stage [2024-11-02 19:29:39] [Pipeline] stage [2024-11-02 19:29:39] [Pipeline] { (检出代码仓库) [2024-11-02 19:29:39] Stage "检出代码仓库" skipped due to when conditional [2024-11-02 19:29:39] [Pipeline] } [2024-11-02 19:29:39] [Pipeline] // stage [2024-11-02 19:29:39] [Pipeline] stage [2024-11-02 19:29:39] [Pipeline] { (写入 dockerfile) [2024-11-02 19:29:39] Stage "写入 dockerfile" skipped due to when conditional [2024-11-02 19:29:39] [Pipeline] } [2024-11-02 19:29:39] [Pipeline] // stage [2024-11-02 19:29:39] [Pipeline] stage [2024-11-02 19:29:39] [Pipeline] { (构建 Docker 镜像) [2024-11-02 19:29:39] [Pipeline] sh [2024-11-02 19:29:39] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp:weapp-006-20241102192932 [2024-11-02 19:29:39] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2024-11-02 19:29:39] WARNING! Your password will be stored unencrypted in /root/.docker/config.json. [2024-11-02 19:29:39] Configure a credential helper to remove this warning. See [2024-11-02 19:29:39] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2024-11-02 19:29:39] [2024-11-02 19:29:39] Login Succeeded [2024-11-02 19:29:40] [Pipeline] sh [2024-11-02 19:29:40] + docker build -f ././/Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp:weapp-006-20241102192932 ./ [2024-11-02 19:29:41] #0 building with "default" instance using docker driver [2024-11-02 19:29:41] [2024-11-02 19:29:41] #1 [internal] load build definition from Dockerfile [2024-11-02 19:29:41] #1 transferring dockerfile: [2024-11-02 19:29:41] #1 transferring dockerfile: 623B done [2024-11-02 19:29:41] #1 DONE 0.3s [2024-11-02 19:29:41] [2024-11-02 19:29:41] #2 [internal] load .dockerignore [2024-11-02 19:29:41] #2 transferring context: 2B done [2024-11-02 19:29:41] #2 DONE 0.3s [2024-11-02 19:29:41] [2024-11-02 19:29:41] #3 [internal] load metadata for docker.io/library/node:10.10.0-slim [2024-11-02 19:29:42] #3 DONE 1.1s [2024-11-02 19:29:42] [2024-11-02 19:29:42] #4 [1/6] FROM docker.io/library/node:10.10.0-slim@sha256:ef2488a31e41b8b359f5320f2283b612f6ac97900e59cf7d0c3eac9f63d0756e [2024-11-02 19:29:42] #4 resolve docker.io/library/node:10.10.0-slim@sha256:ef2488a31e41b8b359f5320f2283b612f6ac97900e59cf7d0c3eac9f63d0756e [2024-11-02 19:29:42] #4 ... [2024-11-02 19:29:42] [2024-11-02 19:29:42] #5 [internal] load build context [2024-11-02 19:29:42] #5 transferring context: 230.85kB done [2024-11-02 19:29:42] #5 DONE 0.1s [2024-11-02 19:29:42] [2024-11-02 19:29:42] #4 [1/6] FROM docker.io/library/node:10.10.0-slim@sha256:ef2488a31e41b8b359f5320f2283b612f6ac97900e59cf7d0c3eac9f63d0756e [2024-11-02 19:29:42] #4 resolve docker.io/library/node:10.10.0-slim@sha256:ef2488a31e41b8b359f5320f2283b612f6ac97900e59cf7d0c3eac9f63d0756e 0.1s done [2024-11-02 19:29:42] #4 sha256:ef2488a31e41b8b359f5320f2283b612f6ac97900e59cf7d0c3eac9f63d0756e 770B / 770B done [2024-11-02 19:29:42] #4 sha256:f9269789a23254329c0948df08cb98f55c9d710c4a79df8fb7fd7b487166aa69 1.37kB / 1.37kB done [2024-11-02 19:29:42] #4 sha256:7db9c916bc4ebdea44cc251bff98006688d1e470e9acc90dc240cd4ce9454c67 5.59kB / 5.59kB done [2024-11-02 19:29:42] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 0B / 30.12MB 0.1s [2024-11-02 19:29:42] #4 sha256:b186cf19f9edbd5ee7b8f79fb5fa0a8a21c4f4119149d8f900b2f4f00b440815 0B / 4.40kB 0.1s [2024-11-02 19:29:42] #4 sha256:eadbf83122625b628be463f73c3c568462c43eaaeb284b83692ad754e5a126be 0B / 124.68kB 0.2s [2024-11-02 19:29:42] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 0B / 35.85MB 0.2s [2024-11-02 19:29:42] #4 sha256:63f9178730fedfd986aeb0b128fd7e47fb38229cd39a7b9368807c91cab2854a 0B / 1.07MB 0.2s [2024-11-02 19:29:43] #4 sha256:b186cf19f9edbd5ee7b8f79fb5fa0a8a21c4f4119149d8f900b2f4f00b440815 4.40kB / 4.40kB 0.3s done [2024-11-02 19:29:43] #4 sha256:eadbf83122625b628be463f73c3c568462c43eaaeb284b83692ad754e5a126be 124.68kB / 124.68kB 0.4s done [2024-11-02 19:29:43] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 2.10MB / 30.12MB 0.6s [2024-11-02 19:29:43] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 2.10MB / 35.85MB 0.6s [2024-11-02 19:29:43] #4 sha256:63f9178730fedfd986aeb0b128fd7e47fb38229cd39a7b9368807c91cab2854a 1.07MB / 1.07MB 0.5s done [2024-11-02 19:29:43] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 11.53MB / 35.85MB 0.7s [2024-11-02 19:29:43] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 4.19MB / 30.12MB 0.8s [2024-11-02 19:29:43] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 20.97MB / 35.85MB 0.8s [2024-11-02 19:29:43] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 6.29MB / 30.12MB 1.0s [2024-11-02 19:29:43] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 34.60MB / 35.85MB 1.0s [2024-11-02 19:29:44] #4 sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 35.85MB / 35.85MB 1.1s done [2024-11-02 19:29:44] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 9.44MB / 30.12MB 1.3s [2024-11-02 19:29:44] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 11.53MB / 30.12MB 1.5s [2024-11-02 19:29:44] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 13.63MB / 30.12MB 1.7s [2024-11-02 19:29:44] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 15.73MB / 30.12MB 1.9s [2024-11-02 19:29:44] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 17.83MB / 30.12MB 2.0s [2024-11-02 19:29:45] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 20.97MB / 30.12MB 2.3s [2024-11-02 19:29:45] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 25.17MB / 30.12MB 2.6s [2024-11-02 19:29:45] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 28.31MB / 30.12MB 2.9s [2024-11-02 19:29:45] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 30.12MB / 30.12MB 3.0s [2024-11-02 19:29:46] #4 sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 30.12MB / 30.12MB 3.0s done [2024-11-02 19:29:46] #4 extracting sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 [2024-11-02 19:29:46] #4 extracting sha256:57936531d1eea907ae6c73ebe8f8b5dc71232f5a642db22e877a4f0fc6ff1516 1.0s done [2024-11-02 19:29:47] #4 extracting sha256:b186cf19f9edbd5ee7b8f79fb5fa0a8a21c4f4119149d8f900b2f4f00b440815 done [2024-11-02 19:29:47] #4 extracting sha256:eadbf83122625b628be463f73c3c568462c43eaaeb284b83692ad754e5a126be done [2024-11-02 19:29:47] #4 extracting sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 [2024-11-02 19:29:48] #4 extracting sha256:1a0019633b3330785d1f4195e2e1023c26fe211efa17e49fa404401aff417964 1.0s done [2024-11-02 19:29:48] #4 extracting sha256:63f9178730fedfd986aeb0b128fd7e47fb38229cd39a7b9368807c91cab2854a 0.0s done [2024-11-02 19:29:48] #4 DONE 6.2s [2024-11-02 19:29:49] [2024-11-02 19:29:49] #6 [2/6] WORKDIR /usr/src/app [2024-11-02 19:29:49] #6 DONE 0.7s [2024-11-02 19:29:49] [2024-11-02 19:29:49] #7 [3/6] COPY package*.json ./ [2024-11-02 19:29:49] #7 DONE 0.2s [2024-11-02 19:29:49] [2024-11-02 19:29:49] #8 [4/6] RUN npm install --only=production [2024-11-02 19:29:51] #8 1.898 npm WARN app No description [2024-11-02 19:29:51] #8 1.898 npm WARN app No repository field. [2024-11-02 19:29:51] #8 1.898 npm WARN app No license field. [2024-11-02 19:29:51] #8 1.898 [2024-11-02 19:29:51] #8 2.163 audited 622 packages in 1.479s [2024-11-02 19:29:52] #8 2.164 found 67 vulnerabilities (6 low, 17 moderate, 38 high, 6 critical) [2024-11-02 19:29:52] #8 2.164 run `npm audit fix` to fix them, or `npm audit` for details [2024-11-02 19:29:52] #8 DONE 2.2s [2024-11-02 19:29:52] [2024-11-02 19:29:52] #9 [5/6] RUN npm install -g gulp [2024-11-02 19:30:07] #9 12.97 /usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js [2024-11-02 19:30:07] #9 12.98 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/gulp/node_modules/chokidar/node_modules/fsevents): [2024-11-02 19:30:07] #9 12.98 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [2024-11-02 19:30:07] #9 12.99 [2024-11-02 19:30:07] #9 12.99 + gulp@5.0.0 [2024-11-02 19:30:07] #9 12.99 added 142 packages from 121 contributors in 12.139s [2024-11-02 19:30:07] #9 DONE 13.2s [2024-11-02 19:30:07] [2024-11-02 19:30:07] #10 [6/6] COPY . ./ [2024-11-02 19:30:07] #10 DONE 0.2s [2024-11-02 19:30:07] [2024-11-02 19:30:07] #11 exporting to image [2024-11-02 19:30:07] #11 exporting layers [2024-11-02 19:30:07] #11 exporting layers 0.5s done [2024-11-02 19:30:07] #11 writing image sha256:7e37be36ce9f0b687ff308f2948da14b3d3a57bb2457bdbdd9a85fb941fd3694 0.0s done [2024-11-02 19:30:07] #11 naming to ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp:weapp-006-20241102192932 [2024-11-02 19:30:07] #11 naming to ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp:weapp-006-20241102192932 0.0s done [2024-11-02 19:30:07] #11 DONE 0.6s [2024-11-02 19:30:07] [Pipeline] } [2024-11-02 19:30:07] [Pipeline] // stage [2024-11-02 19:30:07] [Pipeline] stage [2024-11-02 19:30:07] [Pipeline] { (推送 Docker 镜像到 TCR) [2024-11-02 19:30:07] [Pipeline] sh [2024-11-02 19:30:07] + docker push ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp:weapp-006-20241102192932 [2024-11-02 19:30:07] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-fjwv/ca-heulwjvu_weapp] [2024-11-02 19:30:07] 6cd5667942ed: Preparing [2024-11-02 19:30:07] 0f979adbe871: Preparing [2024-11-02 19:30:07] d03f4256ff74: Preparing [2024-11-02 19:30:07] 0f3cdee78b56: Preparing [2024-11-02 19:30:07] 7b0517ab86c4: Preparing [2024-11-02 19:30:07] 714216cb7288: Preparing [2024-11-02 19:30:07] 5af8c8620ac5: Preparing [2024-11-02 19:30:07] 5d2af82ffb9a: Preparing [2024-11-02 19:30:07] 3036823869ea: Preparing [2024-11-02 19:30:07] 745c54f27f14: Preparing [2024-11-02 19:30:07] 3036823869ea: Layer already exists [2024-11-02 19:30:07] 5af8c8620ac5: Layer already exists [2024-11-02 19:30:07] 714216cb7288: Layer already exists [2024-11-02 19:30:07] 745c54f27f14: Layer already exists [2024-11-02 19:30:07] 5d2af82ffb9a: Layer already exists [2024-11-02 19:30:08] 6cd5667942ed: Pushed [2024-11-02 19:30:08] d03f4256ff74: Pushed [2024-11-02 19:30:08] 7b0517ab86c4: Pushed [2024-11-02 19:30:08] 0f3cdee78b56: Pushed [2024-11-02 19:30:10] 0f979adbe871: Pushed [2024-11-02 19:30:11] weapp-006-20241102192932: digest: sha256:1180e0a349ce9f3bf201229ff4446b4c622f5f17bc49eee9e3e6cf666ca33693 size: 2413 [2024-11-02 19:30:12] [Pipeline] } [2024-11-02 19:30:12] [Pipeline] // stage [2024-11-02 19:30:12] [Pipeline] } [2024-11-02 19:30:12] [Pipeline] // node [2024-11-02 19:30:12] [Pipeline] End of Pipeline [2024-11-02 19:30:12] Finished: SUCCESS *** -----------构建weapp-006----------- 2024-11-02 19:29:34 create_build_image : succ, 2024-11-02 19:30:16 check_build_image : succ, , -----------服务weapp部署weapp-006----------- 2024-11-02 19:30:17 create_eks_virtual_service : succ, 2024-11-02 19:30:17 check_eks_virtual_service : process, DescribeVersion_user_error_Back-off restarting failed container, [service]:[Exec lifecycle hook ([/bin/sh /app/cert/initenv.sh]) for Container "weapp-006" in Pod "weapp-006-8dc679d69-v265p_pqrldrcj(753d9c47-8663-4ffe-b10a-4157ccc6df0f)" 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 8 (jessie) + NAME=Debian GNU/Linux + VERSION_ID=8 + VERSION=8 (jessie) + ID=debian + HOME_URL=http://www.debian.org/ + SUPPORT_URL=http://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... + 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 8 (jessie)\n+ NAME=Debian GNU/Linux\n+ VERSION_ID=8\n+ VERSION=8 (jessie)\n+ ID=debian\n+ HOME_URL=http://www.debian.org/\n+ SUPPORT_URL=http://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",Back-off restarting failed container,] wxa7ef1d783a403f9b prod-3gk6qsu5eff5b1f9 tid=767809 rid=multi_tenant_1t7CJmNAtifCsm weapp bid=47690915 weapp-006
11-02 - 想知道旧版的微信开发者工具的云托管选项跑哪里去了?新版本的变成了云后台
[图片][图片]
11-02 - 为什么和风天气在小程序上面会显示这样?
[图片]
2023-12-02