This error is coming from here and can be hit during startup when we initialize a Collection instance.
{"t":\{"$date":"2021-03-23T21:50:03.402+00:00"}
,"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"InvalidOptions: recordPreImages collection option is not supported on shards or config servers"}} |
It'd be nice if the error message included the namespace string, so the user can identify what to modify, and then add a suggestion to restart as a non-shard and use collmod to remove the setting (I think it's unsettable? Maybe double check...).