lundi 1 juin 2015

Meteor deploying with mup : Error: Could not load the bindings file

I globally installed the mup package and configured the mup.json file referencing this

  • I have AWS account and have a Ubuntu instance running
  • I have allowed SSH with my ip address both Inbound and Outbound, and allowed all HTTP and HTTPS from all ip's.
  • I dont have a dedicated a server for mongodb database and simply want to install the database locally to the instance running. Hence why I have not included a "MONGO_URL in the env within the mup.json file.
  • I have followed https://www.youtube.com/watch?v=11K_DSrhJzQ. I also included the .pem file of my ssl bundled certificate provided by Comodo.

Is this mup.json file correct? I have left the setting.json file empty as I do not know if there is anything else to configure.

mup.json:

{
  "servers": [
    {
      "host": "51.16.3.224",
      "username": "ubuntu",
      "pem": "/Users/me/aws_key_pair.pem",
      "ssl": {
        "pem": "/Users/me/ssl/comodo/www_site_com.ca-bundle", // my bundled pem file from Comodo
        "backendPort": 80 
        },

      "env": {}
    }
  ],

  "setupMongo": true,

  "setupNode": true,

  "nodeVersion": "0.12.4", // the version on my local system

  "setupPhantom": false,

  "enableUploadProgressBar": false,

  "appName": "myApp",

  "app": "/Users/me/sites/project",

  // ROOT_URL must be set to your correct domain (https or http)
  "env": {
    "PORT": 80,
    "ROOT_URL": "http://ift.tt/1AFqlJz",
  },
  "deployCheckWaitTime": 15
}

error on mup depoy

    Error: Could not load the bindings file. Tried:
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Debug/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Debug/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Debug/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Release/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Release/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/default/bcrypt_lib.node
 → /opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/compiled/0.12.4/linux/x64/bcrypt_lib.node
    at bindings (/opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:84:13)
    at Object.<anonymous> (/opt/myApp/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.Npm.require (/opt/myApp/app/programs/server/boot.js:142:18)
    at packages/npm-bcrypt/wrapper.js:1:1
error: Forever detected script exited with code: 1
error: Script restart attempt #193
/opt/myApp/app/programs/server/node_modules/fibers/future.js:245
                        throw(ex);
                              ^

packages.json in my project root directory:

    {
    "request": "2.56.0",
    "querystring": "0.2.0",
    "qs": "3.1.0",
    "fibers": "1.0.5",
    "xml2json": "0.6.2",
    "future": "2.3.1",
    "cron": "1.0.9"
}

The packages above are require by meteor add meteorhacks:npm E.g qs = Meteor.npmRequire('qs');

mup setup succeeds but I get the above error when deploying the bundled app with `mup deploy`

Any suggestion are welcome. Thank you




Aucun commentaire:

Enregistrer un commentaire