Some indexes for collection 'rocketchat_livechat_visitor' could not be created:
Index key contains an illegal field name: field name starts with '$'.
Error creating index: rocketchat_room -> { 'livechatData.$**': 1 } MongoServerError: Index key contains an illegal field name: field name starts with '$'.
at MessageStream.messageHandler (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connection.js:462:30)
at MessageStream.emit (events.js:400:28)
at MessageStream.emit (domain.js:475:12)
at processIncomingData (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
at MessageStream._write (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
at writeOrBuffer (internal/streams/writable.js:358:12)
at MessageStream.Writable.write (internal/streams/writable.js:303:10)
at Socket.ondata (internal/streams/readable.js:731:22)
at Socket.emit (events.js:400:28)
at Socket.emit (domain.js:475:12)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
at TCP.callbackTrampoline (internal/async_hooks.js:130:17) {
operationTime: new Timestamp({ t: 1675142601, i: 1 }),
ok: 0,
code: 67,
codeName: 'CannotCreateIndex',
'$clusterTime': {
clusterTime: new Timestamp({ t: 1675142601, i: 1 }),
signature: {
hash: new Binary(Buffer.from("ddd687851700cd15d41c6a1f51be5c2a55b32f8d", "hex"), 0),
keyId: new Long("7194681051048837124")
}
}
}
strict mode: use allowUnionTypes to allow union type keyword at "#/properties/value" (strictTypes)
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
MessageType.render is deprecated. Use MessageType.message instead. livechat_webrtc_video_call
{"level":40,"time":"2023-01-31T05:23:27.170Z","pid":1,"hostname":"b4d3cd82f168","name":"VoIPService","msg":"Voip is not enabled. Cant start the service"}
{"level":40,"time":"2023-01-31T05:23:28.752Z","pid":1,"hostname":"b4d3cd82f168","name":"VoIPService","msg":"VoIP service already stopped"}
{"level":51,"time":"2023-01-31T05:23:28.954Z","pid":1,"hostname":"b4d3cd82f168","name":"Migrations","msg":"Not migrating, already at version 281"}
{"level":51,"time":"2023-01-31T05:23:28.977Z","pid":1,"hostname":"b4d3cd82f168","name":"DatabaseWatcher","msg":"Using change streams"}
Loaded the Apps Framework and loaded a total of 0 Apps!
+--------------------------------------------------+
| SERVER ERROR |
+--------------------------------------------------+
| |
| Rocket.Chat Version: 5.4.0 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 4.0.28 |
| MongoDB Engine: unknown |
| Platform: linux |
| Process Port: 3000 |
| Site URL: https://r.xxxx.us |
| ReplicaSet OpLog: Enabled |
| Commit Hash: 51f456a544 |
| Commit Branch: HEAD |
| |
| YOUR CURRENT MONGODB VERSION IS NOT SUPPORTED, |
| PLEASE UPGRADE TO VERSION 4.4 OR LATER |
| |
+--------------------------------------------------+
What am i doing wrong?