Lost server connection and logs users out

My Meteor application seem to log users out in about 10-60 minutes after logging in. The errors I see are on the client and I have seen, but only sometimes, “ERR_NETWORK_CHANGED” and " ERR_NAME_NOT_RESOLVED". When a user does get logged out it looks like we get a new connection to the server in meteor devtools:

Any ideas? I have a hard time figuring out what happens here. It does not happen locally but it always does if I use heroku or meteor cloud.

1 Like

Maybe your internet connection is not stable. You can try to ping the server to see the connection status.

It happens to all my users, hundreds.

I think it’s all about DNS system and infrastructure. You can ask your hosting provider or just change the hosting provider.

I got the same issue in heroku and meteor cloud. I also tried to increase the resources for my instance in heroku.

Picture a budget airline overselling seats on a flight. That’s all that happens. They resell cloud servers from the cheapest providers and cut corners where-ever possible so their pnl report for earnings looks good and no one figures it out.

I don’t have any reason to believe this is a problem in Meteor Cloud or Heroku.

I would bet this is something in your code that is causing these logouts.

Do you have MontiAPM or Meteor APM set up in this app? Did you see any calls to Meteor logout method?

I think you should start to investigate there.

I never heard of this problem in Meteor Cloud and I was there for more than 2 years reading all the tickets :slight_smile: