Since I Meteor 1.6.2 to 2.1 I have strange things happening, the worst was just discovered today, after launch: The client does not react to db changes. First I thought it was something with the subscriptions, but then I noticed that changes in the user db is not reflected either, Meteor.user() will ignore any changes made to the profile until next login.
Same with all other data that I subscribe to - I get the data, but updates in the db will not be seem until reload.
Anyone has an idea of where I should start to look?
I will do some more research, but the system is huge, so the code snippet would not help I’m afraid, not without being accompanied by thousands of lines of code from 2017
Maybe you were using the package autopublish and you remove it, now you need to make sure your publications are correct.
Also, check your Tracker if they have the correct reactive variables.
Meteor DevTools is great to watch your data, maybe you can find the reason there
no, never used that. And the pub’s works, but only once (db changes are not picked up).
The system has been running for years, but it has too much old stuff in it.
I am currently simply doing what I should have done - throw out all atmosphere packages.
To start with. But it is painful
No, Blaze…
I do wonder though if there might be any React packages on there…
That’s the curse and blessing with node/ meteor – “oh, I just add this package”.
Then that package adds this package and this package adds that…
Just moments ago I got it working again, tomorrow I will find out exactly why.
What I did was to remove:
matb33:collection-hooks
easy:search
npm-mongo@3.8.1
minimongo@1.6.1
msavin:mongol
One of them must be the culprit.
I have not added npm-mongo or minimongo myself and I was very surprised to see that the system does not seem to need them. Maybe their importance (if any) will show later.
I am having a similar issue. In my case, pub/sub breaks on production only, on Galaxy. Restarting the container seems to fix things. I need to investigate further with Meteor Dev Tools, but I wanted to ask if you managed to figure out exactly what the source of your issue was.
No, I never tried to find out the exact reason. What I did was to remove some old packages that maybe once upon a time had a reason to exist but was no longer needed. Removing them allowed other packages to update etcetera. Oh, I got rid of everything that needed coffee script, that abomination…