Arbiter Logging Error Every Second

Hi,

I have a PSA architecture where the arbiter was added as the last node. rs.status() dumps health: 1 for all nodes but there’s a log entry that I see appending every 1 second in the arbiter node. This is what it says:

{"t":{"$date":"2023-10-22T14:47:19.001+00:00"},"s":"W",  "c":"QUERY",    "id":23799,   "ctx":"ftdc","msg":"Aggregate command executor error","attr":{"error":{"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [local.oplog.rs] not found."},"stats":{},"cmd":{"aggregate":"oplog.rs","cursor":{},"pipeline":[{"$collStats":{"storageStats":{"waitForLock":false,"numericOnly":true}}}],"$db":"local"}}}

Should this be ignored or something be fixed?

Hi @rick123

From the documentation:

https://www.mongodb.com/docs/manual/core/replica-set-arbiter/#:~:text=An%20arbiter%20participates%20in%20elections%20for%20primary%20but%20an%20arbiter%20does%20not%20have%20a%20copy%20of%20the%20data%20set%20and%20cannot%20become%20a%20primary.

https://www.mongodb.com/docs/manual/core/replica-set-oplog/#:~:text=MongoDB%20applies%20database,of%20the%20database.

So, if the arbiter node serves only for voting and is not a data-carrying node, logically, it will not be an impactful issue.

Regards

I also have the same problem, which has been bothering me for a long time. Have you solved it? :sob:

I think the problem is that the replica set config is not set.

When I start a new db in docker like ‘mongod --bind_ip_all --replSet xxx_repl_set --keyFile xxxx’.
local.oplog.rs is missing and NamespaceNotFound errors keep popping.
rs.status() says ‘MongoServerError: no replset config has been received’

rs.initiate() fixed this.