工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
nihiue

配置好的 MongoDB 偶尔出现 not authorized 错误, 重连后正常

  •  
  •   nihiue · Mar 1, 2019 · 3267 views
    This topic created in 2665 days ago, the information mentioned may be changed or developed.

    如题, 线上已经稳定运行数月的网站和数据库服务(账户和权限配置已确认正确), 突然间歇性出现无法操作数据库, 导致整个网站挂掉的情况

    应用日志显示

    MongoError:  not authorized on xxx to execute command {xxx}
    

    此时重启网站可以恢复正常

    MongoDB 实例用的是阿里云的服务, 他们控制台的日志也偶尔不可访问, 显示 failed due to failure of the server, 怀疑和上面这个问题是同个原因

    有 V 友知道这个是什么问题吗, 是否是 MongoDB 本身的 bug?

    1 replies    2019-03-01 12:25:53 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
    ♥ Do have faith in what you're doing.