Issue with mongorestore - system crash

Hi, I use MongoDB 6.0.5 on Docker with a replica (3 Containers having 3 different instances of DB).
Regularly dump with ‘mongodump --quiet --gzip’ command.

Today, have created again the instances on Docker, for my 3 Containers, and wanted to restore DB from dumps. For most of bson files the restore with mongorestore went easy.
But for the biggest DB/collection, which is time-series it crashes.

I am using it in a recommended / standard way

mongorestore --host=node2 --port=27017 --username=jj --password=pp --authenticationDatabase=admin --nsInclude=my_db.my_collection --gzip system.buckets.timeseries.bson.gz

where all: jj, pp, my_db, my_collection are checked, and correct.

I have also tried to set different servers/primary, etc. but the result is the same.
The error is as:

	finished restoring test.system.buckets.timeseries (0 documents, 0 failures)
2023-05-08T23:01:00.472+0000	Failed: test.system.buckets.timeseries: error restoring from system.buckets.timeseries.bson.gz: connection(enode2:27017[-4]) socket was unexpectedly closed: EOF

and node_2 is even exiting. So I have looked into logs, and it shows something like

2023-05-09 01:00:30 {"t":{"$date":"2023-05-08T23:00:30.448+00:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn52","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}

Anyone can help on this? Maybe there is another way to restore what was dumped before?

more on the logs is here. It looks like it’s some issue with MongoDB.

2023-05-09 08:38:47 {"t":{"$date":"2023-05-09T06:38:47.680+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"conn29","msg":"Invariant failure","attr":{"expr":"!collectionName.startsWith(\"system.buckets.\")","file":"src/mongo/db/auth/resource_pattern.h","line":133}}
2023-05-09 08:38:47 {"t":{"$date":"2023-05-09T06:38:47.680+00:00"},"s":"F",  "c":"ASSERT",   "id":23080,   "ctx":"conn29","msg":"\n\n***aborting after invariant() failure\n\n"}
2023-05-09 08:38:47 {"t":{"$date":"2023-05-09T06:38:47.680+00:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn29","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}
2023-05-09 08:38:47 {"t":{"$date":"2023-05-09T06:38:47.680+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"conn30","msg":"Invariant failure","attr":{"expr":"!collectionName.startsWith(\"system.buckets.\")","file":"src/mongo/db/auth/resource_pattern.h","line":133}}

It’s strange as I just did mongodump as usual, not specifying any other names, etc.

Hey @Jakub_Polec,

Thanks for bringing this issue to our attention. I’ll let the concerned team know about this behavior.

Regards.
Satyam