Skip to content

Conversation

@sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

Fix bio and prid startup index creation errors.

Issue(s)

Closes #24347

Steps to test or reproduce

Further comments

@sampaiodiego sampaiodiego added this to the 4.4.1 milestone Feb 3, 2022
@sampaiodiego sampaiodiego requested review from a team February 3, 2022 19:28
@sampaiodiego sampaiodiego changed the title [FIX] Startup error creating indexes [FIX] Startup errors creating indexes Feb 3, 2022
@sampaiodiego sampaiodiego merged commit d254da5 into develop Feb 3, 2022
@sampaiodiego sampaiodiego deleted the fix-startup-index-error branch February 3, 2022 20:24
@pierre-lehnen-rc pierre-lehnen-rc mentioned this pull request Feb 7, 2022
@robbyoconnor
Copy link
Contributor

Didn't fix it.

@robbyoconnor
Copy link
Contributor

robbyoconnor commented Feb 11, 2022

rocketchat_1          | Error creating index: users -> { bio: 1 } { sparse: 1 } MongoError: Index with name: bio_1 already exists with different options
rocketchat_1          |     at MessageStream.messageHandler (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connection.js:272:20)
rocketchat_1          |     at MessageStream.emit (events.js:400:28)
rocketchat_1          |     at MessageStream.emit (domain.js:475:12)
rocketchat_1          |     at processIncomingData (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
rocketchat_1          |     at MessageStream._write (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
rocketchat_1          |     at writeOrBuffer (internal/streams/writable.js:358:12)
rocketchat_1          |     at MessageStream.Writable.write (internal/streams/writable.js:303:10)
rocketchat_1          |     at Socket.ondata (internal/streams/readable.js:731:22)
rocketchat_1          |     at Socket.emit (events.js:400:28)
rocketchat_1          |     at Socket.emit (domain.js:475:12)
rocketchat_1          |     at addChunk (internal/streams/readable.js:293:12)
rocketchat_1          |     at readableAddChunk (internal/streams/readable.js:267:9)
rocketchat_1          |     at Socket.Readable.push (internal/streams/readable.js:206:10)
rocketchat_1          |     at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
rocketchat_1          |     at TCP.callbackTrampoline (internal/async_hooks.js:130:17) {
rocketchat_1          |   operationTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1644519388 },
rocketchat_1          |   ok: 0,
rocketchat_1          |   code: 85,
rocketchat_1          |   codeName: 'IndexOptionsConflict',
rocketchat_1          |   '$clusterTime': {
rocketchat_1          |     clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1644519388 },
rocketchat_1          |     signature: { hash: [Binary], keyId: 0 }
rocketchat_1          |   }
rocketchat_1          | }
rocketchat_1          | LocalStore: store created at 
rocketchat_1          | LocalStore: store created at 
rocketchat_1          | LocalStore: store created at 
rocketchat_1          | {"level":51,"time":"2022-02-10T18:56:44.106Z","pid":1,"hostname":"47ae43ad1bac","name":"","name":"Migrations","msg":"Migrating from version 253 -> 254"}
rocketchat_1          | {"level":51,"time":"2022-02-10T18:56:44.108Z","pid":1,"hostname":"47ae43ad1bac","name":"","name":"Migrations","msg":"Running up() on version 254"}
rocketchat_1          | Error creating index: users -> { bio: 1 } { unique: 1 } MongoError: E11000 duplicate key error collection: rocketchat.users index: bio_1 dup key: { bio: null }
rocketchat_1          |     at MessageStream.messageHandler (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connection.js:272:20)
rocketchat_1          |     at MessageStream.emit (events.js:400:28)
rocketchat_1          |     at MessageStream.emit (domain.js:475:12)
rocketchat_1          |     at processIncomingData (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
rocketchat_1          |     at MessageStream._write (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
rocketchat_1          |     at writeOrBuffer (internal/streams/writable.js:358:12)
rocketchat_1          |     at MessageStream.Writable.write (internal/streams/writable.js:303:10)
rocketchat_1          |     at Socket.ondata (internal/streams/readable.js:731:22)
rocketchat_1          |     at Socket.emit (events.js:400:28)
rocketchat_1          |     at Socket.emit (domain.js:475:12)
rocketchat_1          |     at addChunk (internal/streams/readable.js:293:12)
rocketchat_1          |     at readableAddChunk (internal/streams/readable.js:267:9)
rocketchat_1          |     at Socket.Readable.push (internal/streams/readable.js:206:10)
rocketchat_1          |     at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
rocketchat_1          |     at TCP.callbackTrampoline (internal/async_hooks.js:130:17) {
rocketchat_1          |   operationTime: Timestamp { _bsontype: 'Timestamp', low_: 4, high_: 1644519404 },
rocketchat_1          |   ok: 0,
rocketchat_1          |   code: 11000,
rocketchat_1          |   codeName: 'DuplicateKey',
rocketchat_1          |   keyPattern: { bio: 1 },
rocketchat_1          |   keyValue: { bio: null },
rocketchat_1          |   '$clusterTime': {
rocketchat_1          |     clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 4, high_: 1644519404 },
rocketchat_1          |     signature: { hash: [Binary], keyId: 0 }
rocketchat_1          |   }
rocketchat_1          | }
rocketchat_1          | {"level":51,"time":"2022-02-10T18:56:44.159Z","pid":1,"hostname":"47ae43ad1bac","name":"","name":"Migrations","msg":"Finished migrating."}
rocketchat_1          | ufs: temp directory created at "/tmp/ufs"
rocketchat_1          | Loaded the Apps Framework and loaded a total of 4 Apps!
rocketchat_1          | +----------------------------------------------------+
rocketchat_1          | |                   SERVER RUNNING                   |
rocketchat_1          | +----------------------------------------------------+
rocketchat_1          | |                                                    |
rocketchat_1          | |  Rocket.Chat Version: 4.4.2                        |
rocketchat_1          | |       NodeJS Version: 14.18.2 - x64                |
rocketchat_1          | |      MongoDB Version: 4.2.18                       |
rocketchat_1          | |       MongoDB Engine: wiredTiger                   |
rocketchat_1          | |             Platform: linux                        |
rocketchat_1          | |         Process Port: 3000                         |
rocketchat_1          | |             Site URL: https://chat.librehealth.io  |
rocketchat_1          | |     ReplicaSet OpLog: Enabled                      |
rocketchat_1          | |          Commit Hash: ec8011e94c                   |
rocketchat_1          | |        Commit Branch: HEAD                         |
rocketchat_1          | |                                                    |
rocketchat_1          | |                                                    |
rocketchat_1          | +----------------------------------------------------+

@pierre-lehnen-rc pierre-lehnen-rc mentioned this pull request Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.4.0 Upgrade: Error creating index: users -> { bio: 1 }

5 participants