zodern / meteor-up

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

Node version problem. #1200

Closed pociej closed 3 years ago

pociej commented 3 years ago

Mup version 1.5.1

Mup config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root",
      "pem": "~/.ssh/pem"
    }
  },
  "proxy": {
    "domains": "domain",
    "ssl": {
      "letsEncryptEmail": "email",
      "forceSSL": true
    }
  },
  "app": {
    "name": "my-app",
    "path": "~/Projects/Meteor/test_mup",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb://mongodb:27017/my-app",
      "MONGO_OPLOG_URL": "mongodb://mongodb/local",
      "VIRTUAL_HOST": "https://subdomain.host.com",
      "HTTPS_METHOD": "redirect",
      "LETSENCRYPT_HOST": "https://subdomain.host.com",
      "LETSENCRYPT_EMAIL": "myemail",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "docker": {
      "image": "abernix/meteord:node-8.4.0-base",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000,
      "args": [
        "--link=mongodb:mongodb"
      ]
    },
    "enableUploadProgressBar": true,
    "type": "meteor"
  },
  "mongo": {
    "version": "3.4.1",
    "servers": {
      "one": {}
    },
    "dbName": "app"
  }
}

Im using DigitalOcean droplet. I ran mup config. then mup deploy. This is what i see.

[159.65.127.118] - Start Meteor
[159.65.127.118] - Start Meteor: SUCCESS
[159.65.127.118] - Verifying Deployment
[159.65.127.118] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
            % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    Container spent too much time restarting.
    => Logs:
    => Starting meteor app on port:3000
    Meteor requires Node v12.0.0 or later.
    => Starting meteor app on port:3000
    Meteor requires Node v12.0.0 or later.
    => Starting meteor app on port:3000
    Meteor requires Node v12.0.0 or later.

I was sure mup is responsible for installing proper version of node. Also everything was working fine with same config till today..

pociej commented 3 years ago

Solution is in docker image. I changed it to abernix/meteord:node-12-base and error disappeared.