zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

request@2.88.2: request has been deprecated #1232

Closed eugle closed 3 years ago

eugle commented 3 years ago

Stuck here all the time, anyone

#16 2.367 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#16 2.664 npm WARN deprecated har-validator@5.1.5: this library is no longer supported

Unable to deploy successfully, is there a solution

eugle commented 3 years ago

but it is strange that I have been stuck here during the deployment.

#14 [internal] load build context
#14 sha256:41511ec4c597a1b0550555f355e02f71c58fe170fb44902c4cbdc100884aade8
#14 transferring context: 30B
#14 transferring context: 88.82MB 1.1s done
#14 DONE 1.2s

#15 [ 9/10] RUN --mount=type=bind,target=/tmp/__mup-bundle tar -xzf /tmp/__mup-bundle/bundle.tar.gz -C /built_app --strip-components=1 && ls /built_app
#15 sha256:b64013bc43ad2df977113bfbfb4dae14b34e8a2737fe29732eebd81931c879f8
#15 13.64 README
#15 13.64 main.js
#15 13.64 programs
#15 13.64 server
#15 13.64 star.json
#15 DONE 14.3s

#16 [10/10] RUN cd /built_app/programs/server &&     npm install --unsafe-perm
#16 sha256:5158d73acf5920ab0993d4743f88f2eaff62adaa9472c7f7aeff15476d91b18c
#16 2.425 npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
#16 2.711 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#16 3.081 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
zodern commented 3 years ago

@eugle how long is it stuck? It looks like you have useBuildKit enabled in your mup config. Docker Build Kit until recently was an experimental feature, so you could try disabling it, or running mup docker update to see if a new version of Docker fixes the problem.

If that doesn't help, could you please share the contents of your app's package.json and .meteor/versions files?

eugle commented 3 years ago

Thank you for your reply. This is the latest and complete record. I have been stuck and couldn't succeed. I tried to wait for a whole night, but it was impossible for more than 10 hours

eugle@eugledembp .cloud % mup deploy --verbose --cached-build
Not building app. Using build from previous deploy at
/var/folders/7k/cq63sq6n6fb8h55c4tgrx9_c0000gn/T/mup-meteor-ee06cb6a-ddfb-455f-b2e7-b86ade58bd4a

Started TaskList: Pushing Meteor App
[182.254.159.58] - Pushing Meteor App Bundle to the Server
[182.254.159.58] - Pushing Meteor App Bundle to the Server: SUCCESS
[182.254.159.58] - Prepare Bundle
Updating base image
node-12-base: Pulling from abernix/meteord
Digest: sha256:79c9c29c028fd72320fa1af5e2bab1147db3c206a9d807e9bdb3fb2110660c1a
Status: Image is up to date for abernix/meteord:node-12-base
docker.io/abernix/meteord:node-12-base
Preparing for docker build
Creating Dockerfile
Finished creating Dockerfile
Building image
#1 [internal] load build definition from Dockerfile
#1 sha256:e3dd96e0d11ee2395c2e07621646a304e666f319b7fe9de3a3cff85879f8c0a8
#1 transferring dockerfile: 1.57kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:0dc5f6a94b3925688cf0fbe326701cc9b85afac6496ebea88bd02187afc7ff83
#2 transferring context: 2B done
#2 DONE 0.1s

#3 resolve image config for docker.io/docker/dockerfile:1-experimental
#3 sha256:69b62bd5db81d5b3c4a4dffa5235d4a66365d82e081ec371170be889e64c7032
#3 DONE 1.9s

#4 docker-image://docker.io/docker/dockerfile:1-experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5
#4 sha256:d6fa9fb52f18bc64cd1e721ee71060639a9ab5f6c484cd06bfac8d8a11d6c802
#4 CACHED

#5 [internal] load metadata for docker.io/abernix/meteord:node-12-base
#5 sha256:323f94aac1a0cc548fdd9d2b7072302082aeae4beade8fc5c0121fb3c22e4661
#5 DONE 0.0s

#6 [1/7] FROM docker.io/abernix/meteord:node-12-base
#6 sha256:0806b083e01a0c2c2d485d8c97b9a3c236804adac4d41f4dd9b1912c69121288
#6 DONE 0.0s

#7 [2/7] RUN mkdir /built_app || true
#7 sha256:5464efb36c4880a7dcc787f9e574534d8ec133b39dbc2a65e86c64f70c46a764
#7 CACHED

#11 [ 6/10] RUN npm config set bcrypt_lib_binary_host_mirror https://cdn.mydomainname.com/package/bcrypt_lib/
#11 sha256:6cd249bd112817d7d61801fcf19981f66db91513c6f95528af4cf1c843cc58ff
#11 CACHED

#10 [ 5/10] RUN npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
#10 sha256:113fd1b4954b97a2adb7e6b35cceb60e2b9d1636ce795dd15aa47f650a75cd60
#10 CACHED

#8 [ 3/10] RUN npm config set registry https://registry.npm.taobao.org
#8 sha256:4f710371c930e20318de0a9d596e7e522008637fc2ac6f8f4f3d8db26ca1a082
#8 CACHED

#9 [ 4/10] RUN npm config set disturl https://npm.taobao.org/mirrors/node/
#9 sha256:f132b3acf360004f48850d00c389e937fe96163eef670de21d0e8c974bdb6cbf
#9 CACHED

#12 [ 7/10] RUN npm config set node_libcurl_binary_host_mirror https://cdn.mydomainname.com/package/node_libcurl/
#12 sha256:d5ac69af30703977e9060001ed8a9e4e5f135cd69a3c22488496883aa6339866
#12 CACHED

#13 [ 8/10] RUN npm config set nodejieba_binary_host_mirror https://cdn.mydomainname.com/package/nodejieba/
#13 sha256:b3ca6748830379010f4da0937ce411a8c49fbec30db678ca9287a5b8a1c269c2
#13 DONE 2.7s

#14 [internal] load build context
#14 sha256:4551b8cde776c7960dbe3a85e7498a387a1048b8ce67641fe0f5b8a66602bb02
#14 transferring context: 88.82MB 1.1s done
#14 DONE 1.1s

package.json

{
  "name": "",
  "private": true,
  "scripts": {
    "start": "export MONGO_URL=' --port 5100",
    "test": "meteor test --once --driver-package meteortesting:mocha",
    "test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
    "visualize": "meteor --production --extra-packages bundle-visualizer",
    "lint": "eslint .",
    "pretest": "npm run lint --silent"
  },
  "dependencies": {
    "@alicloud/pop-core": "^1.7.10",
    "@apollo/client": "^3.3.11",
    "@babel/runtime": "^7.13.9",
    "@eugle/oneui": "^0.2.41",
    "@eugle/toast": "^4.2.6",
    "@loadable/component": "^5.14.1",
    "@react-icons/all-files": "^4.1.0",
    "@serprex/react-motion": "^0.6.1",
    "ali-oss": "^6.13.2",
    "antd": "^4.13.1",
    "apollo-link-error": "^1.1.13",
    "apollo-server-express": "^2.21.0",
    "bcrypt": "^5.0.1",
    "bowser": "^2.11.0",
    "cookie-parser": "^1.4.5",
    "cross-fetch": "^3.0.6",
    "crypto-js": "^4.0.0",
    "dayjs": "^1.10.4",
    "express-session": "^1.17.1",
    "fs-extra": "^9.1.0",
    "graphql": "^15.4.0",
    "hex-rgb": "^4.2.0",
    "htmlmin": "0.0.7",
    "js-base64": "^3.6.0",
    "lodash": "^4.17.21",
    "md5": "^2.3.0",
    "meteor-node-stubs": "^1.0.1",
    "particles-bg": "^2.5.0",
    "pinyin-pro": "^2.0.8",
    "react": "^17.0.1",
    "react-amap": "^1.2.8",
    "react-confirm-alert": "^2.7.0",
    "react-copy-to-clipboard": "^5.0.3",
    "react-countdown": "^2.3.1",
    "react-dom": "^17.0.1",
    "react-flv-player": "^1.0.9",
    "react-frame-component": "^4.1.3",
    "react-gtm-module": "^2.0.11",
    "react-helmet-async": "^1.0.9",
    "react-hotkeys-hook": "^3.2.1",
    "react-input-slider": "^6.0.0",
    "react-progressive-image": "^0.6.0",
    "react-qr-code": "^1.1.1",
    "react-router-dom": "^5.2.0",
    "react-router-scroll-top": "^0.2.1",
    "react-select": "^4.2.1",
    "react-slick": "^0.28.1",
    "react-switch": "^6.0.0",
    "react-use": "^17.1.1",
    "react-zmage": "^0.8.5",
    "slick-carousel": "^1.8.1",
    "styled-components": "^5.2.1",
    "styled-spinkit": "^1.1.0",
    "tenpay": "^2.1.18",
    "video-react": "^0.14.1",
    "wechat": "^2.1.0",
    "xlsx": "^0.16.9"
  },
  "meteor": {
    "mainModule": {
      "client": "client/main.ts",
      "server": "server/main.ts"
    }
  },
  "devDependencies": {
    "@meteorjs/eslint-config-meteor": "^1.0.5",
    "babel-eslint": "^10.1.0",
    "babel-plugin-direct-import": "^0.6.3",
    "eslint": "^7.21.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-import-resolver-meteor": "^0.4.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-meteor": "^7.3.0",
    "eslint-plugin-react": "^7.22.0"
  },
  "eslintConfig": {
    "extends": "@meteorjs/eslint-config-meteor"
  }
}
eugle commented 3 years ago

package-look.json is too long,

You can't comment at this time — your comment is too long (maximum is 65536 characters).
eugle commented 3 years ago

mup.js

module.exports = {
    servers: {
        one: {
            host: '',
            username: '',
            password: '',
        },
        two: {
            host: '',
            username: '',
            password: '',
        }
    },
    app: {
        name: 'cloud.mydomainname.com', 
        path: '../../', 
        type: 'meteor',
        volumes: {
            '/etc/localtime': '/etc/localtime', 
            '/data': '/data',
        },
        docker: {
            // image: 'zodern/meteor:root', //https://github.com/zodern/meteor-docker
            image: 'abernix/meteord:node-12-base', //https://hub.docker.com/r/abernix/meteord
            // image: 'emjimadhu/meteord:node-12-base',
            buildInstructions: [
                'RUN npm config set registry https://registry.npm.taobao.org',
                'RUN npm config set disturl https://npm.taobao.org/mirrors/node/',
                'RUN npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/',
                // https://github.com/kelektiv/node.bcrypt.js/releases/tag/v5.0.0
                'RUN npm config set bcrypt_lib_binary_host_mirror https://cdn.mydomainname.com/package/bcrypt_lib/',
                // https://github.com/JCMais/node-libcurl/releases/tag/v2.2.0
                'RUN npm config set node_libcurl_binary_host_mirror https://cdn.mydomainname.com/package/node_libcurl/',
                // https://github.com/yanyiwu/nodejieba/blob/v2.5.1  nodejieba
                'RUN npm config set nodejieba_binary_host_mirror https://cdn.mydomainname.com/package/nodejieba/'
            ],
            prepareBundle: true,
            useBuildKit: true
        },
        servers: {
            one: {},
            two: {}
        },
        deployCheckPort: 3002,
        buildOptions: {
            serverOnly: true,
            debug: false,
            allowIncompatibleUpdates: true,
        },
        env: {
            TOOL_NODE_FLAGS: '--max-old-space-size = 4096',
            METEOR_DISABLE_OPTIMISTIC_CACHING: 1, 
            PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1,
            HTTP_FORWARDED_COUNT: 1, 
            testMode: 1,
            enumCordova: 1,
            PORT: 3002,
            ROOT_URL: 'https://cloud.mydomainname.com/',
            MAIL_URL: '', 
            MONGO_URL: ', 
            MONGO_OPLOG_URL: 'mongodb:', 
        },
        enableUploadProgressBar: true,
        deployCheckWaitTime: 600, //default 10部署完成后检查的等待时间(如果网络不是很好需要加大)
    },
    proxy: {
        domains: 'cloud.mydomainname.com',
        loadBalancing: true,
        ssl: {
            //forceSSL: true,
            crt: './chain.crt',
            key: './key.key',
        },
    },
    plugins: ['mup-disk'],
};

Very strange, a few days ago or fine, is the problem occurred in these days

eugle commented 3 years ago

.meteor/versions

accounts-base@1.8.0 accounts-password@1.7.0 allow-deny@1.1.0 apollo@4.0.0 autoupdate@1.7.0 babel-compiler@7.6.0 babel-runtime@1.5.0 base64@1.0.12 binary-heap@1.0.11 blaze-tools@1.0.10 boilerplate-generator@1.7.1 caching-compiler@1.2.2 caching-html-compiler@1.1.3 callback-hook@1.3.0 check@1.3.1 coffeescript@1.0.17 dburles:mongo-collection-instances@0.3.5 ddp@1.4.0 ddp-client@2.4.0 ddp-common@1.4.0 ddp-rate-limiter@1.0.9 ddp-server@2.3.2 deps@1.0.12 diff-sequence@1.1.1 dynamic-import@0.6.0 ecmascript@0.15.0 ecmascript-runtime@0.7.0 ecmascript-runtime-client@0.11.0 ecmascript-runtime-server@0.10.0 ejson@1.1.1 email@2.0.0 es5-shim@4.8.0 fetch@0.1.1 geojson-utils@1.0.10 hot-code-push@1.0.4 hot-module-replacement@0.2.0 html-tools@1.0.11 htmljs@1.0.11 http@1.4.3 id-map@1.1.0 inter-process-messaging@0.1.1 lai:collection-extensions@0.2.1_1 launch-screen@1.2.0 less@3.0.1 livedata@1.0.18 localstorage@1.2.0 logging@1.2.0 meteor@1.9.3 meteor-base@1.4.0 minifier-css@1.5.3 minifier-js@2.6.0 minimongo@1.6.1 mizzao:timesync@0.5.1 mobile-experience@1.1.0 mobile-status-bar@1.1.0 modern-browsers@0.1.5 modules@0.16.0 modules-runtime@0.12.0 modules-runtime-hot@0.13.0 mongo@1.10.1 mongo-decimal@0.1.2 mongo-dev-server@1.1.0 mongo-id@1.0.7 natestrauser:publish-performant-counts@0.1.2 nimble:restivus@0.8.12 npm-bcrypt@0.9.3 npm-mongo@3.8.1 ordered-dict@1.1.0 ostrio:cookies@2.7.0 promise@0.11.2 random@1.2.0 rate-limit@1.0.9 react-fast-refresh@0.1.0 react-meteor-data@2.2.2 reactive-var@1.0.11 reload@1.3.1 retry@1.1.0 routepolicy@1.1.0 server-render@0.3.1 service-configuration@1.0.11 sha@1.0.9 shell-server@0.5.0 simple:json-routes@2.1.0 socket-stream-client@0.3.1 spacebars-compiler@1.1.3 srp@1.1.0 standard-minifier-css@1.7.2 standard-minifier-js@2.6.0 static-html@1.2.2 swydo:graphql@0.4.0 templating-tools@1.1.2 tmeasday:publish-counts@0.8.0 tracker@1.2.0 typescript@4.1.2 underscore@1.0.10 url@1.3.1 webapp@1.10.0 webapp-hashing@1.1.0

eugle commented 3 years ago

I tried to close the useBuildKit and set it to false, but it still stuck all the time. This afternoon, the deployment was successful once in a while, and the subsequent deployment failed again.

Since I am in mainland China, I suspect that there are some packages that cannot be installed and stop showing the code in places like this

npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

If you look at the log of a successful installation, here is the log of a successful installation as follows:

#15 [9/9] RUN cd /built_app/programs/server &&     npm install --unsafe-perm
#15 sha256:b84543afe82204f420176fd92c2faa3a2567a5a8716d56dde8269dbea2ebf8dd
#15 1.779 npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
#15 1.882 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#15 2.127 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
#15 91.29 
#15 91.29 > fibers@4.0.3 install /built_app/programs/server/node_modules/fibers
#15 91.29 > node build.js || nodejs build.js
#15 91.29 
#15 91.35 `linux-x64-72-glibc` exists; testing
#15 91.41 Binary is fine; exiting
#15 91.45 
#15 91.45 > meteor-dev-bundle@ install /built_app/programs/server
#15 91.45 > node npm-rebuild.js

I can't find where the Har-Validator came from. Google says delete package-lock.json again NPM I, but I can't find the relevant content in package-lock.json.

The @mapbox/node-pre-gyp package is from bcrypt5.0.1 and I have set the address to download this installation package for custom, like this:

buildInstructions: [
                'RUN npm config set registry https://registry.npm.taobao.org',
                'RUN npm config set disturl https://npm.taobao.org/mirrors/node/',
                'RUN npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/',
                // https://github.com/kelektiv/node.bcrypt.js/releases/tag/v5.0.0
                'RUN npm config set bcrypt_lib_binary_host_mirror https://cdn.mydomainname.com/package/bcrypt_lib/',

I searched the har-validator, request@2.88.2, @mapbox/node-pre-gyp, and fibers. I didn't find the binary package path in their package.json.

Help me, what should I do about it?

thank you

eugle commented 3 years ago

I've been trying, and today, I've only succeeded occasionally twice, and now, I'm stuck here, and the code is as follows

#9 [4/9] RUN npm config set disturl https://npm.taobao.org/mirrors/node/
#9 sha256:adfdd3b017961679c34445c2a10879538eb52051ed3413f06713a18e6f68eaab
#9 CACHED

#12 [7/9] RUN npm config set node_libcurl_binary_host_mirror https://cdn.mydomainname.com/package/node_libcurl/
#12 sha256:12fdcd313505f1886ec9a38f901b1a1d261ebb76a5fbcad6ff7b18784ca140c2
#12 CACHED

#13 [internal] load build context
#13 sha256:4404946737f7c1718f9bd874affbed9b78467ab2a2b5168794df61a51ce264bc
#13 transferring context: 30B
#13 transferring context: 89.01MB 0.9s done
#13 DONE 0.9s
eugle commented 3 years ago

16 [10/10] RUN cd /built_app/programs/server && npm install --unsafe-perm

16 sha256:4a1af1940f058403f31ffe1f3fcadd5b8e848e156786157bd08b1f1c3d50699b

16 2.573 npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

16 2.669 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

16 2.925 npm WARN deprecated har-validator@5.1.5: this library is no longer supported

@zodern It's still stuck here

eugle commented 3 years ago

Close UseBuildKit, should be the solution