[SOLVED] Data loss on mup deploy

When i re-run mup deploy my app is restarting with the new build. Everything seems ok and i’m not getting any warning but some of my clients are losing recently stored data. Is anyone facing same issue? What could be the problem?

My Meteor version is 1.5.1

What is your definition of “recently stored”? Where is your database hosted?

Are you changing methods that store the data in between these deployments?

1 Like

What is your definition of “recently stored”?

For example, some of the data which is inserted 10 hours ago.

Where is your database hosted?

Digital ocean, same droplet with meteor app.

Are you changing methods that store the data in between these deployments?

No, new version was about cordova-plugins.

It shouldn’t be a problem, but keeping your db on the droplet is probably not a good solution moving forward. You’d be better off moving that off the droplet to an actual db host, or at least to a different droplet.

That being said, can you diff the before and after data? Is there a pattern? Do you run any cron jobs? If I had to guess, I’d say that the deployment is a red herring, and there are other issues at play.

No pattern, no cron job. As you mentioned keeping database on the same droplet is a big problem. I realised lots of thing because of the issue. I have just carried database to mlab with replica sets. (shared cluster is cost effective)

Thank you for you help. It seems good for now.

1 Like