Hi guys
I build a log aggregator for that ingest, aggregate and display logs in a web ui.
Everything works smoothly in development.
I ONLY face the following issue in my dockerize app [WebApp + Mongo DB instance] in the production environment.
When logging in production app, the loading icon is continously showned and I can see this in console logs:
Uncaught Error: Expected to find a document to change
at Object.update (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:63:3438)
at Object.o.(anonymous function) [as update] (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:42838)
at http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:51034
at Array.forEach (<anonymous>)
at Function.A.each.A.forEach (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:1:854)
at http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:51013
at Function.A.each.A.forEach (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:1:998)
at b._performWrites (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:50969)
at b._flushBufferedWrites (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:50772)
at b._livedata_data (http://localhost:5000/a4ba31848c4ec1e154f39bf68782ae8aa013acde.js?meteor_js_resource=true:55:50519)
I’m doing the subscription in container:
....
if (Meteor.subscribe('queries.servers').ready()) {
onData(null, { servers: Servers.find({}, sortServers).fetch(), filters });
} else {
onData(null, { filters });
}
...
If I clean the db and logging in again the app, it works a expected.
While trying to debug that, I came accross theses issues
[https://github.com/kadirahq/fast-render/issues/9]
[https://github.com/kadirahq/fast-render/issues/12]
that was pointing that is might be linked to [meteorhacks:fast-render].
Since the package anymore maintained I succeed to find a fork of that package that was containing the fix for that issue [meteorspark:fast-render]
it’s mentioned in that issue: [https://github.com/kadirahq/fast-render/pull/191]
But even with that package the issue is still present.
Additional information:
Running on Meteor 1.5
Meteor package:
accounts-base 1.3.1 A user account system
accounts-password 1.4.0 Password support for accounts
blaze-html-templates 1.1.2 Compile HTML templates into reactive UI with Meteor Blaze
dynamic-import 0.1.1 Runtime support for Meteor 1.5 dynamic import(...) syntax
ecmascript 0.8.2 Compiler plugin that supports ES2015+ in all .js files
es5-shim 4.6.15 Shims and polyfills to improve ECMAScript 5 support
jcbernack:reactive-aggregate 0.7.0 Reactively publish aggregations. **[ USE FOR LOG AGGREGATION IN PUBLICATIONS]**
jquery 1.11.10 Manipulate the DOM using CSS selectors
kadira:flow-router 2.12.1 Carefully Designed Client Side Router for Meteor
meteor-base 1.1.0 Packages that every Meteor app needs
meteorspark:fast-render 2.16.2 Render your app before the DDP connection even comes alive - magic?
mobile-experience 1.0.4 Packages for a great mobile user experience
mongo 1.1.19* Adaptor for using MongoDB and Minimongo over DDP
reactive-var 1.0.11 Reactive variable
service-configuration 1.0.11 Manage the configuration for third-party services
shell-server 0.2.4 Server-side component of the `meteor shell` command.
standard-minifier-css 1.3.4 Standard css minifier used with Meteor apps by default.
standard-minifier-js 2.1.1 Standard javascript minifiers used with Meteor apps by default.
themeteorchef:bert 2.1.3 A client side, multi-style alerts system for Meteor.
tracker 1.1.3 Dependency tracker to allow reactive callbacks