db.copyDatabase Error:
"errmsg" : "Got invalid BSON from external server while reading from cursor :: caused by :: InvalidBSON: Cannot use decimal BSON type when the featureCompatibilityVersion is 3.2. See http://dochub.mongodb.org/core/3.4-feature-compatibility."
This is because the featureCompatibilityVersion version is not correct
1. Check the current featureCompatibilityVersion version and
execute the command line db.adminCommand({getParameter:1,featureCompatibilityVersion:1})
to return { “featureCompatibilityVersion” : “3.2”, “ok ” : 1 }
2. Modify the featureCompatibilityVersion version
Execute the command line db.adminCommand ({setFeatureCompatibilityVersion: “3.4”})
to return { “featureCompatibilityVersion” : “3.4”, “ok” :1 } , after the modification is successful,
execute db.copyDatabase and it will be ok
Read More:
- Nacos Click service offline error: caused: errCode: 500, errmsg: do metadata operation failed;
- [Solved] Android7 8 Jack server SSL error: Jack server failed to (re)start, try ‘jack-diagnose’ or see Jack server log
- [Solved] failed (13: Permission denied) while reading upstream
- [Solved] error: external/googletest/googletest: MODULE.TARGET.STATIC_LIBRARIES.libgtest already defined
- Matlab Raspberry Pi Error: External Mode Open Protocol Connect command failed
- [Solved] Tensorflow/Keras Error reading weights: ValueError: axes don‘t match array
- TensorFlow issue: Expected int32, got list containing Tensors of type ‘_Message’ instead.
- [Solved] Visual studio 2022 error LNK2019: unable to resolve external symbol for
- [Solved] unesolved external symbol _imp_fprintf referenced in funciton _showerror
- [Solved] Error from server (InternalError): an error on the server (““) has prevented the request from suc
- 500 (International server error) server error in Flash + heroku
- [Solved] react18 swiper Error: Cannot read properties of undefined (reading ‘wrapperClass’)
- How to Solve brew ERROR in `initialize‘: Version value must be a string; got a NilClass ()
- JanusGraph Error: Unknown external index backend [How to Solve]
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- [Solved] Docker Error: driver failed programming external connectivity on endpoint
- RabbitMQ:[error] Error when reading /Users/sixcandy/.erlang.cookie: eacces
- [Solved] RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of s
- [Solved] Docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq
- [Solved] Unity Error: Got null handle from IDXGIResource::GetSharedHandle