mup setup/deploy - ECONNREFUSED on 127.0.0.1

673 views Asked by At

I'm trying to mup deploy the todos example of Meteor to a Vagrant VM running Ubuntu 14.04 LTS x64.

Meteor Up supports Windows (I'm on Windows 7):

You can use install and use Meteor Up from Linux, Mac and Windows.

This is my c:\code\todos\mup.json:

{
    "servers": [
        {
            "host": "127.0.0.1",
            "port": 2222,
            "username": "vagrant",
            "password": "vagrant"
        }
    ],
    "setupMongo": true,
    "setupNode": true,
    "nodeVersion": "0.12.4",
    "setupPhantom": true,
    "enableUploadProgressBar": false,
    "appName": "todos-app",
    "app": "/code/todos",
    "env": {
        "ROOT_URL": "http://127.0.0.1",
        "PORT": "3001", // The port you want to bind to on your server.
        "UPSTART_UID": "vagrant" // The user you want to run meteor as.
    },
    "deployCheckWaitTime": 30
}

My Vagrant VM is up and PuTTYTray is connected via vagrant:[email protected]:2222. Yet mup deploy fails:

C:\code\todos>mup deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

" Checkout Kadira!
  It's the best way to monitor performance of your app.
  Visit: https://kadira.io/mup "

Building Started: /code/todos
? Can't build for mobile on Windows. Skipping the following platforms:
  android, ios

Started TaskList: Deploy app 'todos-app' (linux)
[127.0.0.1] - Uploading bundle
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: connect ECONNREFUSED
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)

Same for mup setup. And in the VM mup deploy encounters a "weird error".

Should I downgrade mup?

1

There are 1 answers

0
Cees Timmerman On BEST ANSWER

Downgrading mup doesn't help:

C:\code\todos>npm install -g [email protected]
C:\Users\Cees.Timmerman\AppData\Roaming\npm\mup -> C:\Users\Cees.Timmerman\AppData\Roaming\npm\node_modules\mup\bin\mup
[email protected] C:\Users\Cees.Timmerman\AppData\Roaming\npm\node_modules\mup
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected])

C:\code\todos>mup -v

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

sshpass required for password based authentication: refer http://git.io/_vHbvQ

C:\code\todos>mup deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

sshpass required for password based authentication: refer http://git.io/_vHbvQ

SSHPass doesn't work on Windows.

Manually setting up my Meteor app worked with help from this answer.