When remote connection is enabled for mongo, grandnode fails.

Tuesday, April 30, 2024 6:03:23 AM
  • Posted: Wednesday, October 27, 2021 9:55 AM
  • 11
When I allow remote connection to mongodb in mongod.conf file:
net:   bindIp: <use public ip here>
security: authorization: 'enabled'

I can remotely connect to mongo but then grandnode fails to connect to it.
What am I missing?
0
  • Posted: Wednesday, October 27, 2021 12:00 PM
  • 953
Well, if you enabled only remote access, so the most probably GrandNode that uses localhost (127.0.0.1) to connect, is not able to connect MongoDB. You need to enable also localhost IP.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Wednesday, October 27, 2021 1:55 PM
  • 11
It is already there. Error I am getting is
Command aggregate failed: not authorized on DB to execute command
0
  • Posted: Wednesday, October 27, 2021 1:57 PM
  • 11
Whole error:
MongoCommandException: Command aggregate failed: not authorized on hgrandnodedbname to execute command { aggregate: "Customer", pipeline: [ { $match: { CustomerGuid: BinData(3, E838D97A73BB644698E0BDFA9EA92171) } }, { $limit: 1 } ], cursor: {}, $db: "hgrandnodedbname ", lsid: { id: UUID("cca201c4-82ec-4d44-bee8-5ee25233b179") } }.

But this is only happening when I enable :
security:
    authorization: 'enabled'
in mogod.conf.
0
  • Posted: Thursday, October 28, 2021 6:23 AM
  • 953
I suppose it should be question for MongoDB administrators or server administrators. The error is caused by the wrong configuration.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters