zodern / meteor-up

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

Deployment fails for Meteor 1.5.1 application with meteor-up version 1.3.6 #815

Closed gjr-qm closed 6 years ago

gjr-qm commented 6 years ago

After the permission problems which were solved with version 1.3.6, I run into the following problem:

Deployment:

mup.js:

module.exports = {
  servers: {
    one: {
      host: 'xxx.xxx.xx.xxx',
      username: 'xxx',
      pem: '/xxx/xxx.pkk'
    },
  },

  meteor: {
    name: 'app-name',
    path: '../',
    volumes: {
    },
    docker: {
      image: 'abernix/meteord:node-4.8.4-base'
    },
    servers: {
      one: {},
    },
    buildOptions: {
      serverOnly: true
    },
    env: {
      PORT: 4000,
      ROOT_URL: 'https://xxx.xxx.xx/app-name',
      MONGO_URL: 'mongodb://mongodb:27017/app-name',
      MONGO_OPLOG_URL: 'mongodb://mongodb:27017/local'
    },
    deployCheckWaitTime: 60
  }
};

Resulting error:

tar (child): *.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

I ca't use the latest abernix/meteord:base image, because some of the application modules are incompatible with the nodejs version in this image, that's why I thought it would be best to use the abernix/meteord:node-4.8.4-base image that has the same nodejs version as my meteor 1.5.1 app.

Any idea what causes his problem and what I can do to diagnose or solve it?

gjr-qm commented 6 years ago

I solved this problem creating a modified version of the meteord image (added node-pre-gyph that was missing) as described here: https://github.com/abernix/meteord/issues/27