收藏
回答

部署node项目 ,卡了很久后 出现部署失败 日志里看不到有效信息 是为什么 ?

从日志上 前面编译 打包阶段都正常运行 后 部署界面一直转圈 ,等很久后 末尾出现错误信息

[2023-04-12 09:24:58] Aborted by coding

[2023-04-12 09:24:58] Sending interrupt signal to process


完整日志如下

部署开始于 2023-04-12 09:14:52

AppID: wx04d052b8357e35bf
环境名称:prod-0g20n9ae60e4ff20

[1/2] 创建版本     进行中 预计需要 1 分钟...  -
[2023-04-12 09:14:57] Started by user coding
[2023-04-12 09:14:57] Running in Durability level: MAX_SURVIVABILITY
[2023-04-12 09:14:58] [Pipeline] Start of Pipeline
[2023-04-12 09:14:58] [Pipeline] node
[2023-04-12 09:14:58] Running on Jenkins in /root/workspace
[2023-04-12 09:14:58] [Pipeline] {
[2023-04-12 09:14:58] [Pipeline] stage
[2023-04-12 09:14:58] [Pipeline] { (检出 ZIP 包)
[2023-04-12 09:14:59] Stage "检出 ZIP 包" skipped due to when conditional
[2023-04-12 09:14:59] [Pipeline] }
[2023-04-12 09:14:59] [Pipeline] // stage
[2023-04-12 09:14:59] [Pipeline] stage
[2023-04-12 09:14:59] [Pipeline] { (检出代码仓库)
[2023-04-12 09:14:59] [Pipeline] sh
[2023-04-12 09:14:59] + git clone ****** .
[2023-04-12 09:14:59] Cloning into '.'...
[2023-04-12 09:15:01] [Pipeline] sh
[2023-04-12 09:15:01] + git checkout master
[2023-04-12 09:15:01] Already on 'master'
[2023-04-12 09:15:01] Your branch is up-to-date with 'origin/master'.
[2023-04-12 09:15:01] [Pipeline] }
[2023-04-12 09:15:01] [Pipeline] // stage
[2023-04-12 09:15:01] [Pipeline] stage
[2023-04-12 09:15:01] [Pipeline] { (构建 Docker 镜像)
[2023-04-12 09:15:01] [Pipeline] sh
[2023-04-12 09:15:02] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-spkg/ca-xbxwbhrq_qmatches-servise:qmatches-servise-001-20230412091455
[2023-04-12 09:15:02] WARNING! Using --password via the CLI is insecure. Use --password-stdin.
[2023-04-12 09:15:02] WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
[2023-04-12 09:15:02] Configure a credential helper to remove this warning. See
[2023-04-12 09:15:02] https://docs.docker.com/engine/reference/commandline/login/#credentials-store
[2023-04-12 09:15:02] 
[2023-04-12 09:15:02] Login Succeeded
[2023-04-12 09:15:02] [Pipeline] sh
[2023-04-12 09:15:02] + docker build -f ././/Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-spkg/ca-xbxwbhrq_qmatches-servise:qmatches-servise-001-20230412091455 ./
[2023-04-12 09:15:02] Sending build context to Docker daemon  1.902MB

[2023-04-12 09:15:02] Step 1/10 : FROM node:16.15.0-alpine
[2023-04-12 09:15:04] 16.15.0-alpine: Pulling from library/node
[2023-04-12 09:15:04] df9b9388f04a: Pulling fs layer
[2023-04-12 09:15:04] 70c90f7de7cb: Pulling fs layer
[2023-04-12 09:15:04] f83937c3ce37: Pulling fs layer
[2023-04-12 09:15:04] 98b78bba1d70: Pulling fs layer
[2023-04-12 09:15:04] 98b78bba1d70: Verifying Checksum
[2023-04-12 09:15:04] 98b78bba1d70: Download complete
[2023-04-12 09:15:05] df9b9388f04a: Verifying Checksum
[2023-04-12 09:15:05] df9b9388f04a: Download complete
[2023-04-12 09:15:05] df9b9388f04a: Pull complete
[2023-04-12 09:15:05] 70c90f7de7cb: Verifying Checksum
[2023-04-12 09:15:05] 70c90f7de7cb: Download complete
[2023-04-12 09:15:05] f83937c3ce37: Verifying Checksum
[2023-04-12 09:15:05] f83937c3ce37: Download complete
[2023-04-12 09:15:06] 70c90f7de7cb: Pull complete
[2023-04-12 09:15:06] f83937c3ce37: Pull complete
[2023-04-12 09:15:06] 98b78bba1d70: Pull complete
[2023-04-12 09:15:06] Digest: sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10
[2023-04-12 09:15:06] Status: Downloaded newer image for node:16.15.0-alpine
[2023-04-12 09:15:06]  ---> e5065cc78074
[2023-04-12 09:15:06] Step 2/10 : RUN mkdir -p /usr/src/app
[2023-04-12 09:15:06]  ---> Running in c33f44addd39
[2023-04-12 09:15:07] Removing intermediate container c33f44addd39
[2023-04-12 09:15:07]  ---> 535c2cb43a2b
[2023-04-12 09:15:07] Step 3/10 : RUN npm install -g npm@latest
[2023-04-12 09:15:07]  ---> Running in cde62bfd2d8f
[2023-04-12 09:15:12] 
[2023-04-12 09:15:12] removed 13 packages, changed 104 packages, and audited 238 packages in 4s
[2023-04-12 09:15:12] 
[2023-04-12 09:15:12] 18 packages are looking for funding
[2023-04-12 09:15:12]   run `npm fund` for details
[2023-04-12 09:15:12] 
[2023-04-12 09:15:12] found 0 vulnerabilities
[2023-04-12 09:15:12] npm notice 
[2023-04-12 09:15:12] npm notice New major version of npm available! 8.5.5 -> 9.6.4
[2023-04-12 09:15:12] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.4>
[2023-04-12 09:15:12] npm notice Run `npm install -g npm@9.6.4` to update!
[2023-04-12 09:15:12] npm notice 
[2023-04-12 09:15:12] Removing intermediate container cde62bfd2d8f
[2023-04-12 09:15:12]  ---> 885378f04294
[2023-04-12 09:15:12] Step 4/10 : WORKDIR /app
[2023-04-12 09:15:12]  ---> Running in f8d9edb39fc1
[2023-04-12 09:15:13] Removing intermediate container f8d9edb39fc1
[2023-04-12 09:15:13]  ---> f7c2f997f734
[2023-04-12 09:15:13] Step 5/10 : COPY . /app
[2023-04-12 09:15:13]  ---> f9f813aec820
[2023-04-12 09:15:13] Step 6/10 : RUN yarn
[2023-04-12 09:15:13]  ---> Running in a6fd09804bd2
[2023-04-12 09:15:13] yarn install v1.22.18
[2023-04-12 09:15:13] info No lockfile found.
[2023-04-12 09:15:13] [1/5] Validating package.json...
[2023-04-12 09:15:13] [2/5] Resolving packages...
[2023-04-12 09:15:17] warning cos-nodejs-sdk-v5 > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2023-04-12 09:15:17] warning cos-nodejs-sdk-v5 > request > har-validator@5.1.5: this library is no longer supported
[2023-04-12 09:15:17] warning cos-nodejs-sdk-v5 > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
[2023-04-12 09:15:49] warning autod > babel-core > babel-register > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:49] warning autod > babel-core > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:54] warning egg-mock > supertest > superagent@3.8.3: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
[2023-04-12 09:15:54] warning egg-mock > power-assert > empower > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:54] warning egg-mock > power-assert > power-assert-formatter > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:54] warning egg-mock > globby > fast-glob > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
[2023-04-12 09:15:54] warning egg-mock > supertest > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
[2023-04-12 09:15:54] warning egg-mock > power-assert > power-assert-formatter > power-assert-context-reducer-ast > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:54] warning egg-mock > power-assert > power-assert-formatter > power-assert-renderer-diagram > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > globby > fast-glob > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[2023-04-12 09:15:55] warning egg-mock > globby > fast-glob > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
[2023-04-12 09:15:55] warning egg-mock > globby > fast-glob > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2023-04-12 09:15:55] warning egg-mock > power-assert > empower > empower-core > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > power-assert > power-assert-formatter > power-assert-context-reducer-ast > espurify > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > power-assert > power-assert-formatter > power-assert-context-formatter > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > power-assert > power-assert-formatter > power-assert-renderer-comparison > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > power-assert > power-assert-formatter > power-assert-context-formatter > power-assert-context-traversal > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:15:55] warning egg-mock > power-assert > power-assert-formatter > power-assert-renderer-diagram > stringifier > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2023-04-12 09:16:02] [3/5] Fetching packages...
[2023-04-12 09:16:08] warning @puppeteer/browsers@0.4.0: Invalid bin entry for "@puppeteer/browsers" (in "@puppeteer/browsers").
[2023-04-12 09:16:16] [4/5] Linking dependencies...
[2023-04-12 09:16:21] [5/5] Building fresh packages...
[2023-04-12 09:24:58] Aborted by coding
[2023-04-12 09:24:58] Sending interrupt signal to process
[2023-04-12 09:24:59] Sending interrupt signal to process
[2023-04-12 09:24:59] Aborted by coding
[2023-04-12 09:25:00] Sending interrupt signal to process
[2023-04-12 09:25:00] Aborted by coding
[2023-04-12 09:25:01] Sending interrupt signal to process
[2023-04-12 09:25:01] Aborted by coding
[2023-04-12 09:25:02] Sending interrupt signal to process
[2023-04-12 09:25:02] Aborted by coding
[2023-04-12 09:25:03] Sending interrupt signal to process
[2023-04-12 09:25:03] Aborted by coding
[2023-04-12 09:25:04] Sending interrupt signal to process
[2023-04-12 09:25:04] Aborted by coding
[2023-04-12 09:25:05] Sending interrupt signal to process
[2023-04-12 09:25:05] Aborted by coding
[2023-04-12 09:25:06] Sending interrupt signal to process
[2023-04-12 09:25:06] Aborted by coding
[2023-04-12 09:25:07] Sending interrupt signal to process
[2023-04-12 09:25:07] Aborted by coding
***
-----------构建qmatches-servise-001-----------
2023-04-12 09:14:56 create_build_image : succ, 
回答关注问题邀请回答
收藏

1 个回答

  • Starkwang
    Starkwang
    2023-04-12

    看起来像是运行yarn安装依赖的时候超时了,可以尝试把yarn的镜像源换到国内站,具体做法可以搜索下

    2023-04-12
    有用 1
    回复 2
    • 腰果鸡丁
      腰果鸡丁
      2023-04-12
      好的 谢谢  我试试
      2023-04-12
      回复
    • Eason Six
      Eason Six
      2023-09-25
      切了没用啊,求救
      2023-09-25
      回复
登录 后发表内容
问题标签