RocketChat / RocketChat/Rocket.Chat

Some indexes for collection 'rocketchat_uploads' could not be created

Open
#29,614 6 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

I'm keeping rocketchat up to date, but each time I start rocketchat, I get this message:

Some indexes for collection 'rocketchat_uploads' could not be created
An existing index has the same name as the requested index. When index
 names are not specified, they are auto generated and can cause conflicts. Please refer to our documentation. Requested index: {
 v: 2, key: { rid: 1 }, name: "rid_1", sparse: true }, existing index: { v: 2, key: { rid: 1 }, name: "rid_1" }     

What exactly should be done to resolve this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the startup warning and inspect the index setup for the rocketchat_uploads collection. Compare the requested sparse rid index with the existing rid_1 index and determine the intended migration or creation behavior. Done means startup no longer reports the index conflict and the collection has the intended index configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.