zodern / meteor-up

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

Deploy from bitbucket pipeline is failing Verifying (the same config works correctly in local machine) #1312

Open paomosca opened 2 years ago

paomosca commented 2 years ago

Mup version (mup --version): 1.5.8

Mup config

module.exports = {
    servers: {
      one: {
        host: '1.2.3.4',
        username: 'root',
        pem: '/opt/atlassian/pipelines/agent/data/id_rsa',
      }
    },

    app: {
      name: 'app-name',
      path: '../',

      servers: {
        one: {},
      },

      buildOptions: {
        serverOnly: true,
        debug: false,
      },

      env: {

        ROOT_URL: 'http://1.2.3.4',
        MONGO_URL: 'mongodb://user:pass@mongodb.net/test',
      },

      docker: {
        image: 'zodern/meteor:root',
        stopAppDuringPrepareBundle: false,
      },

      deployCheckWaitTime: 120,
      enableUploadProgressBar: false
    },

  };```

Output of command
<!-- use the `--verbose` option. Remember to remove sensitive information -->

```CONTAINER IP EMPTY
IP: 
Container has no IP Address, likely from the app crashing.
CONTAINER IP EMPTY
IP: 
Container has no IP Address, likely from the app crashing.
CONTAINER IP EMPTY
IP: 
Container has no IP Address, likely from the app crashing.
CONTAINER IP EMPTY
IP: 
Container has no IP Address, likely from the app crashing.
=> Container status:
Container spent too much time restarting.
restarted: 7 times {...}
=> Logs:
default -> 14.19.1 (-> v14.19.1 *)
=> Starting meteor app on port 3000
/built_app/programs/server/node_modules/fibers/fibers.js:92
                    return fn.apply(this, arguments);
                              ^
Error: 
The @babel/runtime npm package could not be found in your node_modules 
directory. Please run the following command to install it:
  meteor npm install --save @babel/runtime
    at module (packages/babel-runtime.js:20:9)
    at fileEvaluate (packages/modules-runtime.js:336:7)
    at Module.require (packages/modules-runtime.js:238:14)
    at require (packages/modules-runtime.js:258:21)
    at packages/babel-runtime.js:53:15
    at packages/babel-runtime.js:58:3
    at /built_app/programs/server/boot.js:401:38
    at Array.forEach (<anonymous>)
    at /built_app/programs/server/boot.js:226:21
    at /built_app/programs/server/boot.js:464:7
=> Setting node version
NODE_VERSION=14.19.1
v14.19.1 is already installed.
Now using node v14.19.1 (npm v6.14.16)
default -> 14.19.1 (-> v14.19.1 *)
=> Starting meteor app on port 3000
/built_app/programs/server/node_modules/fibers/fibers.js:92
                    return fn.apply(this, arguments);
                              ^
Error: 
The @babel/runtime npm package could not be found in your node_modules 
directory. Please run the following command to install it:
  meteor npm install --save @babel/runtime
    at module (packages/babel-runtime.js:20:9)
    at fileEvaluate (packages/modules-runtime.js:336:7)
    at Module.require (packages/modules-runtime.js:238:14)
    at require (packages/modules-runtime.js:258:21)
    at packages/babel-runtime.js:53:15
    at packages/babel-runtime.js:58:3
    at /built_app/programs/server/boot.js:401:38
    at Array.forEach (<anonymous>)
    at /built_app/programs/server/boot.js:226:21
    at /built_app/programs/server/boot.js:464:7
=> Setting node version
NODE_VERSION=14.19.1
v14.19.1 is already installed.
Now using node v14.19.1 (npm v6.14.16)
default -> 14.19.1 (-> v14.19.1 *)
=> Starting meteor app on port 3000
/built_app/programs/server/node_modules/fibers/fibers.js:92
                    return fn.apply(this, arguments);
                              ^
Error: 
The @babel/runtime npm package could not be found in your node_modules 
directory. Please run the following command to install it:
  meteor npm install --save @babel/runtime
    at module (packages/babel-runtime.js:20:9)
    at fileEvaluate (packages/modules-runtime.js:336:7)
    at Module.require (packages/modules-runtime.js:238:14)
    at require (packages/modules-runtime.js:258:21)
    at packages/babel-runtime.js:53:15
    at packages/babel-runtime.js:58:3
    at /built_app/programs/server/boot.js:401:38
    at Array.forEach (<anonymous>)
    at /built_app/programs/server/boot.js:226:21
    at /built_app/programs/server/boot.js:464:7
=> Setting node version
NODE_VERSION=14.19.1
v14.19.1 is already installed.
Now using node v14.19.1 (npm v6.14.16)
default -> 14.19.1 (-> v14.19.1 *)
=> Starting meteor app on port 3000
/built_app/programs/server/node_modules/fibers/fibers.js:92
                    return fn.apply(this, arguments);
                              ^
Error: 
The @babel/runtime npm package could not be found in your node_modules 
directory. Please run the following command to install it:
  meteor npm install --save @babel/runtime
    at module (packages/babel-runtime.js:20:9)
    at fileEvaluate (packages/modules-runtime.js:336:7)
    at Module.require (packages/modules-runtime.js:238:14)
    at require (packages/modules-runtime.js:258:21)
    at packages/babel-runtime.js:53:15
    at packages/babel-runtime.js:58:3
    at /built_app/programs/server/boot.js:401:38
    at Array.forEach (<anonymous>)
    at /built_app/programs/server/boot.js:226:21
    at /built_app/programs/server/boot.js:464:7
To see more logs type 'mup logs --tail=200'

=> Redeploying previous version of the app

[178.62.230.232] x Verifying Deployment: FAILED

It's possible to disable the verification step?