-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.1
-
Component/s: None
-
Labels:None
-
ALL
-
Problem Description
mongodump failing with invalid json input
Steps to Reproduce
{{/usr/bin/mongodump -u backup -p backup12345 --host=XX.XX.XX.XX --port XXXX --out=/tmp -d local -c oplog.rs --gzip --authenticationDatabase admin --query "{'ts':
}" --ssl --sslAllowInvalidCertificates }}
Expected Results
2021-04-28T02:02:25.569-0700 writing local.oplog.rs to /tmp/local/oplog.rs.bson.gz
2021-04-28T02:02:28.535-0700 local.oplog.rs 0
2021-04-28T02:02:31.535-0700 local.oplog.rs 0
2021-04-28T02:02:34.535-0700 local.oplog.rs 0
2021-04-28T02:02:37.535-0700 local.oplog.rs 0
2021-04-28T02:02:40.535-0700 local.oplog.rs 0
2021-04-28T02:02:43.535-0700 local.oplog.rs 0
2021-04-28T02:02:45.952-0700 local.oplog.rs 464
2021-04-28T02:02:45.952-0700 done dumping local.oplog.rs (464 documents)
Actual Results
2021-04-28T01:21:37.694-0700 Failed: error parsing query as Extended JSON: invalid JSON input
Additional Notes
anyone can figure what's the issue here ?
I understand that I'm using 3.4.1 which is older but still it is working on the other server and with same version.
Also tried using the latest version of mongodump still the same error.
mongodb-database-tools-ubuntu1804-x86_64-100.3.1.tgz