Description
Server Setup Information
- Version of Rocket.Chat Server: 7.10.0 CE
- Operating System: Amazon Linux 2023
- Deployment Method: docker compose
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: 22.16.0
- MongoDB Version: 7.0.15
- Proxy: Cloudflare
- Firewalls involved:
Any additional Information
Web server: Nginx
Reverse proxy setup: Yes
Type of SSL/https certificates: Letsencrypt
I got this error after my last restart about 15 days ago and when I restarted it didn’t happen again. What was the problem?
rocketchat-1 | Errors like this can cause oplog processing errors.
rocketchat-1 | Setting EXIT_UNHANDLEDPROMISEREJECTION will cause the process to exit allowing your service to automatically restart the process
rocketchat-1 | Future node.js versions will automatically exit the process
rocketchat-1 | =================================
rocketchat-1 | === UnHandledPromiseRejection ===
rocketchat-1 | MongoServerError: Regular expression is invalid: missing closing parenthesis
rocketchat-1 | at Connection.sendCommand (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cmap/connection.ts:518:17)
rocketchat-1 | at processTicksAndRejections (node:internal/process/task_queues:105:5)
rocketchat-1 | at Connection.command (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cmap/connection.ts:586:22)
rocketchat-1 | at Server.command (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/sdam/server.ts:327:21)
rocketchat-1 | at FindOperation.execute (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/operations/find.ts:112:12)
rocketchat-1 | at tryOperation (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/operations/execute_operation.ts:263:14)
rocketchat-1 | at executeOperation (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/operations/execute_operation.ts:109:12)
rocketchat-1 | at FindCursor._initialize (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/find_cursor.ts:72:22)
rocketchat-1 | at FindCursor.cursorInit (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/abstract_cursor.ts:722:21)
rocketchat-1 | at FindCursor.fetchBatch (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/abstract_cursor.ts:758:7)
rocketchat-1 | at FindCursor.next (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/abstract_cursor.ts:425:7)
rocketchat-1 | at FindCursor.[Symbol.asyncIterator] (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/abstract_cursor.ts:346:26)
rocketchat-1 | at FindCursor.toArray (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/cursor/abstract_cursor.ts:493:22)
rocketchat-1 | at messageSearch (server/methods/messageSearch.ts:79:10)
rocketchat-1 | at DefaultProvider.search (app/search/server/provider/DefaultProvider.ts:47:18) {
rocketchat-1 | errorResponse: {
rocketchat-1 | ok: 0,
rocketchat-1 | errmsg: ‘Regular expression is invalid: missing closing parenthesis’,
rocketchat-1 | code: 51091,
rocketchat-1 | codeName: ‘Location51091’,
rocketchat-1 | ‘$clusterTime’: {
rocketchat-1 | clusterTime: new Timestamp({ t: 1760514252, i: 5 }),
rocketchat-1 | signature: [Object]
rocketchat-1 | },
rocketchat-1 | operationTime: new Timestamp({ t: 1760514252, i: 5 })
rocketchat-1 | },
rocketchat-1 | ok: 0,
rocketchat-1 | code: 51091,
rocketchat-1 | codeName: ‘Location51091’,
rocketchat-1 | ‘$clusterTime’: {
rocketchat-1 | clusterTime: new Timestamp({ t: 1760514252, i: 5 }),
rocketchat-1 | signature: {
rocketchat-1 | hash: Binary.createFromBase64(‘AAAAAAAAAAAAAAAAAAAAAAAAAAA=’, 0),
rocketchat-1 | keyId: 0
rocketchat-1 | }
rocketchat-1 | },
rocketchat-1 | operationTime: new Timestamp({ t: 1760514252, i: 5 }),
rocketchat-1 | [Symbol(errorLabels)]: Set(0) {}
rocketchat-1 | }
rocketchat-1 | ---------------------------------