MUP Timeout Error, Solution: Update mup.json!

Not sure if this is common, however I have been troubled by this bug for a while.
On any activity using MUP it seemed to fail due to a timeout error, like this:

Meteor Up: Production Quality Meteor Deployments

Started TaskList: Stopping Application (linux)
[] - Stopping app
      throw er; // Unhandled 'error' event
Error: Timed out while waiting for handshake
    at null._onTimeout (/usr/local/lib/node_modules/mup/node_modules/nodemiral/node_modules/ssh2/lib/client.js:138:17)
    at Timer.listOnTimeout (timers.js:110:15)

Anyway, I found the reason in this thread:

If you’re using a custom port (I am) you need to update the setting to use the string ‘port’ not ‘Port’ (lowercase).

2 posibilities

  • You changed the app name in mup.json, then mup.json no matches with the old app name, or
  • Your using public IP address en mup json host entry, if the case, chage it by internal IP like