zodern / meteor-up

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

For Node version: 14.XX can't deploy on node this version #1260

Open ongbona opened 2 years ago

ongbona commented 2 years ago

Mup version (1.5.3):

Mup config

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: "X.X.X.X",
      username: "root",
      // pem: './path/to/pem'
      password: "xxxxxx",
      // or neither for authenticate from ssh-agent
    },
  },

  app: {
    // TODO: change app name and path
    name: "app1",
    path: "../",

    servers: {
      one: {},
    },

    buildOptions: {
      serverOnly: true,
    },

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: "http://X.X.X.X",
      MONGO_URL: "mongodb://mongodb/app1",
      MONGO_OPLOG_URL: "mongodb://mongodb/local",
    },

    docker: {
      // abernix/meteord:node-12-base works with Meteor 1.9 - 1.10
      // If you are using a different version of Meteor,
      // refer to the docs for the correct image to use.
      image: "abernix/meteord:node-12-base",
    },

    // Show progress bar while uploading bundle to server
    // You might need to disable it on CI servers
    enableUploadProgressBar: true,
  },

  mongo: {
    version: "4.4.4",
    servers: {
      one: {},
    },
  },

  // (Optional)
  // Use the proxy to setup ssl or to route requests to the correct
  // app when there are several apps

  // proxy: {
  //   domains: 'mywebsite.com,www.mywebsite.com',

  //   ssl: {
  //     // Enable Let's Encrypt
  //     letsEncryptEmail: 'email@domain.com'
  //   }
  // }
};

Output of command


              ------------------------------------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.3 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.3 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.3 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.3 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.3 port 3000: Connection refused
        Container spent too much time restarting.
        => Logs:
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.
        => Starting meteor app on port:3000
        Meteor requires Node v14.0.0 or later.

              ------------------------------------STDOUT------------------------------------
              IP: 172.17.0.3
        IP: 172.17.0.3
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        IP: 172.17.0.3
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        IP: 172.17.0.3
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        CONTAINER IP EMPTY
        IP: 172.17.0.3
        CONTAINER IP EMPTY
        IP: 
        Container has no IP Address, likely from the app crashing.
        => Container status:
        restarted: 8 times {"Bridge":"","SandboxID":"87c6c8d8b85301529e9483b953af96f4ddb10ac81d9e29411f78a087ce53aa48","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{},"SandboxKey":"/var/run/docker/netns/87c6c8d8b853","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","MacAddress":"","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"64677d59aabe7f910920c8cda4ff8c83ee00500bbddb734dd5065842c7a471c0","EndpointID":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"","DriverOpts":null}}} {"Status":"restarting","Running":true,"Paused":false,"Restarting":true,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":1,"Error":"","StartedAt":"2021-08-12T03:09:43.789002102Z","FinishedAt":"2021-08-12T03:09:44.576216563Z"}

        To see more logs type 'mup logs --tail=200'

              ------------------------------------------------------------------------------

edit

Batistleman commented 2 years ago

It's probably related to this: image: "abernix/meteord:node-12-base", (the latest version of meteor uses node 14)

There is a related thread on the forums: https://forums.meteor.com/t/problem-meteor-2-3-1-mup-abernix-meteord-node-12-base-solved/56279/2