Skip to content

mongo:4.4.29版本的数据库无法迁移插件 #7106

@chung1912

Description

@chung1912

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.15.0-beta4

问题描述, 日志截图,配置文件等
cpu不支持AVX,只能用mongo:4.4.29,但是插件上传后的确认阶段,提示确认失败,错误信息如下,应该是该版本的mongodb数据库兼容性问题?需修复

 [cause]: MongoServerError: The dollar ($) prefixed field '$schema' in 'data.secretSchema.$schema' is not valid for storage.
                                                           at Connection.sendCommand (file:///app/apps/server/dist/main.js:111758:13)
                                                           at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
                                                           at async Connection.command (file:///app/apps/server/dist/main.js:111773:21)
                                                           at async Server.command (file:///app/apps/server/dist/main.js:113290:18)
                                                           at async tryOperation (file:///app/apps/server/dist/main.js:67372:21)
                                                           at async executeOperation (file:///app/apps/server/dist/main.js:67276:11)
                                                           at async Collection.findOneAndUpdate (file:///app/apps/server/dist/main.js:121154:11)
                                                           at async model.Query._findOneAndUpdate (file:///app/apps/server/dist/main.js:156193:13)
                                                           at async model.Query.exec (file:///app/apps/server/dist/main.js:156996:62)
                                                           at async PluginRepo.confirmPlugin (file:///app/apps/server/dist/main.js:168136:4) {
                                                         errorLabelSet: Set(0) {},
                                                         errorResponse: {
                                                           operationTime: new Timestamp({ t: 1781319734, i: 1 }),
                                                           ok: 0,
                                                           errmsg: "The dollar ($) prefixed field '$schema' in 'data.secretSchema.$schema' is not valid for storage.",
                                                           code: 52,
                                                           codeName: 'DollarPrefixedFieldName',
                                                           '$clusterTime': [Object]
                                                         },
                                                         operationTime: new Timestamp({ t: 1781319734, i: 1 }),
                                                         ok: 0,
                                                         code: 52,
                                                         codeName: 'DollarPrefixedFieldName',
                                                         '$clusterTime': {
                                                           clusterTime: new Timestamp({ t: 1781319734, i: 1 }),
                                                           signature: [Object]
                                                         }
                                                       }
                                                     }
                                                   },
                                                  message: 'Failed to confirm plugin'
                                                 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions