MUP deployed meteor not rendering {{> loginButtons}} and does not call the callback functions

I am working on a Meteor project on a droplet I call my development droplet (using my Cloud9 account). It works fine and dandy but when I deployed it to another droplet (I’ll call it as my production droplet), The {{> loginButtons}} doesn’t render. I thought it was a fluke, but on further inspections (I created my own login and registration system), it doesn’t login as well…

I tried calling a Meteor function I created to test if it is being called on both droplets.

if (Meteor.isServer) {
  Meteor.methods({
    test1: function(flag) {
       console.log("test1 is called");
       if (flag) return "test1 ok";
       else throw new Meteor.Error("test1 not ok");
    }
  })
}

The function will just return throw an error if the parameter is false and would return a string if it is true. I called it using the console for a quick test and here are the results.

Prod droplet
Picture 1
Prod droplet’s browser’s console. It doesn’t do the callback.

Picture 2
Prod droplet’s server also getting the signal and doing the function. But it doesn’t do the callback.

This is how the mup.json looks like (with the credentials stripped-off)

{
  "servers": [
    {
      "host": "<<host>>",
      "username": "<<username>>",
      "password": "<<password>>"
    }
  ],

  "setupMongo": false,

  "setupNode": true,

  "nodeVersion": "0.10.36",

  "setupPhantom": true,

  "enableUploadProgressBar": true,

  "appName": "<<demo>>",

  "app": ".",

  "env": {
    "ROOT_URL": "<<root_url>>",
    "MONGO_URL": "<<configured compose.io url>>",
    "MONGO_OPLOG_URL": "<<configured compose.io oplog url>>"
  },
  "deployCheckWaitTime": 30
}

And these are the packages that I used in the prototype system

meteor-platform
meteorhacks:kadira
reactive-var
meteorhacks:flow-router
meteorhacks:flow-layout
aldeed:collection2
meteorhacks:fast-render
meteorhacks:subs-manager
anti:fake
meteorhacks:kadira-profiler
meteorhacks:zones
accounts-password
accounts-ui
markdown
less
differential:vulcanize
hpx7:youtube-iframe-player
momentjs:moment
djedi:sanitize-html
matb33:collection-hooks
sewdn:rangy
gadicohen:headers
froala:editor
copleykj:autolinker
mquandalle:jquery-textcomplete
materialize:materialize
johnantoni:meteor-scrollto

I hope you all can help me fix this issue.

Hey, I ran into the same issue. After debugging into it, it appears the culprit is meteorhacks:zones package. Try removing that package and see if the problem is gone.