Seeing the log message below repeatedly.
No steps, noticed this while viewing the log.
=== UnHandledPromiseRejection ===
TypeError: Cannot read property 'filter' of undefined
at app/user-data-download/server/cronProcessDownloads.js:50:57
at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1102:16)
at Cursor.[as forEach] (packages/mongo/mongo_driver.js:882:44)
at loadUserSubscriptions (app/user-data-download/server/cronProcessDownloads.js:46:9)
at app/user-data-download/server/cronProcessDownloads.js:498:3
at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
at app/user-data-download/server/cronProcessDownloads.js:567:2
at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Also what is this CRON job even for?
this cron job is in charge of processing users' "download my data" requests..
Fixed by #17577
I'm facing a similar issue after upgrading to 3.5.0.
=== UnHandledPromiseRejection ===
TypeError: Cannot read property 'filter' of undefined
at app/user-data-download/server/cronProcessDownloads.js:51:59
at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1138:16)
at Cursor.<computed> [as forEach] (packages/mongo/mongo_driver.js:918:44)
at loadUserSubscriptions (app/user-data-download/server/cronProcessDownloads.js:47:9)
at app/user-data-download/server/cronProcessDownloads.js:499:3
at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
at app/user-data-download/server/cronProcessDownloads.js:577:2
at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
---------------------------------
Errors like this can cause oplog processing errors.
Setting EXIT_UNHANDLEDPROMISEREJECTION will cause the process to exit allowing your service to automatically restart the process
Future node.js versions will automatically exit the process
=================================
@maiconbaumx what version were you using before upgrading? the uids field was created by https://github.com/RocketChat/Rocket.Chat/pull/16761/ released on version 3.1.0 .. I wonder if you missed a migration 馃