Deploy project on meteor 2.7.1?

I deploy with project on meteor version 2.7.1 with mongo 4.0.5 and docker image: ‘zodern/meteor:root’,
But it is Connection refused


Please Any help

Hi,
That may help
Greetings,

1 Like

As @erixtekila posted the guide helps. However you will have to use mongodump to backup your data. Note that older indexes might be incompatible with those in 5.0.

I also found that importing using mongorestore required a the renaming of namespaces, see this GitHub issue:

This is an enormous problem I have seen lately regarding the connection to mongodb, especially after upgrading the DB to Mongo 5 as recommended. You still should use the latest version of MongoDB, but I think you will have the same error. Anyways by trial and error I solved this by appending &directConnection=true to the end of the MONGO_URL and MONGO_OPLOG_URL

I use meteor up and my mup.js like code above

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: '192.168.0.220', // Leangsrun: BMC
      username: 'root',
      // pem: '~/.ssh/id_rsa',
      password: 'root',
      // or neither for authenticate from ssh-agent
    },
  },

  app: {
    // TODO: change app name and path
    // Leangsrun
    name: 'new_pos', // Cement PPT,
    path: '../',
    volumes: {
      '/data/file_uploads': '/data/file_uploads',
    },

    servers: {
      one: {},
    },

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      // Leang Srun
      // Ls Cement
      ROOT_URL: 'http://192.168.0.220:4000',
      MONGO_URL: 'mongodb://mongodb/new_pos',
      MONGO_OPLOG_URL: 'mongodb://mongodb/local',
      PORT: 4000,
    },

    docker: {
      // change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
      // image: 'abernix/meteord:node-8.15.1-base', // Mr chheng usd node
      image: 'zodern/meteor:root',
    },

    // The maximum number of seconds it will wait
    // for your app to successfully start (optional, default is 60)
    deployCheckWaitTime: 120,

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

  mongo: {
    version: '4.0.5',
    servers: {
      one: {},
    },
  },
}

In Meteor 2.7.2 (once it comes out) you can add a setting to re-build indexes if there is issue with their settings. Though use this carefully as it might for a little bit impact performance as the indexes re-build.
See more here: