Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Querying group information with the same groupId returns normally, but updating group information results in an error {"errCode":1004,"errMsg":"mongo find one: mongo: no documents in result","errDlt":"mongo find one: mongo: no documents in result"} #2443

Closed
chanachana opened this issue Jul 26, 2024 · 8 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@chanachana
Copy link

OpenIM Server Version

release-v3.7

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

image
这是 11002 openim 后台修改群组的时候报错,直接调用api
https://doc.rentsoft.cn/zh-Hans/restapi/apis/groupManagement/setGroupInfo
也是相同的错误,其他接口都是正常的,创建查询都是ok的

Screenshots Link

No response

@chanachana chanachana added the bug Categorizes issue or PR as related to a bug. label Jul 26, 2024
@kubbot
Copy link
Contributor

kubbot commented Jul 26, 2024

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@skiffer-git skiffer-git changed the title [BUG] 相同groupId 查询群组信息正常返回,但是修改群组信息报错 {"errCode":1004,"errMsg":"mongo find one: mongo: no documents in result","errDlt":"mongo find one: mongo: no documents in result"} [BUG] Querying group information with the same groupId returns normally, but updating group information results in an error {"errCode":1004,"errMsg":"mongo find one: mongo: no documents in result","errDlt":"mongo find one: mongo: no documents in result"} Jul 26, 2024
@chanachana
Copy link
Author

{"t":{"$date":"2024-07-26T14:32:19.843+08:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn274","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"openIM","authenticationDatabase":"openim_v3","remote":"221.232.59.18:65009","extraInfo":{}}}
{"t":{"$date":"2024-07-26T14:32:20.183+08:00"},"s":"I", "c":"ACCESS", "id":20436, "ctx":"conn274","msg":"Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on db to execute command { serverStatus: 1, $db: "db", lsid: { id: UUID("7a95f2bb-7218-412a-8600-bffa424e140b") } }"}}}
{"t":{"$date":"2024-07-26T14:32:20.695+08:00"},"s":"I", "c":"ACCESS", "id":20436, "ctx":"conn274","msg":"Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on db to execute command { serverStatus: 1, $db: "db", lsid: { id: UUID("7a95f2bb-7218-412a-8600-bffa424e140b") } }"}}}

mongo 对应的日志

@chanachana
Copy link
Author

是不是修改群组需要特别权限的账户才能操作,但是已经是admin账户了

@kubbot
Copy link
Contributor

kubbot commented Jul 26, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Does modifying the group require an account with special permissions to operate, but it is already an admin account?

@skiffer-git
Copy link
Member

check your token first

@skiffer-git
Copy link
Member

Are you the group owner or administrator?

@chanachana
Copy link
Author

yes

@skiffer-git
Copy link
Member

this issue has fixed in release-v3.8, I recommend you update to new version. If you run into any new issues, please reopen this issue or create a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants