[SERVER-56425] mongodump failing with invalid json input Created: 28/Apr/21  Updated: 22/Jun/22  Resolved: 28/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.4.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Bharath Kumar CM Assignee: Edwin Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
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':

{ \$gt: Timestamp(1619548593, 1) }

}" --ssl --sslAllowInvalidCertificates }}

Participants:

 Description   

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':

{ \$gt: Timestamp(1619548593, 1) }

}" --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



 Comments   
Comment by Bharath Kumar CM [ 28/Apr/21 ]

thanks Edwin noted, I've understood the use of this forum and will here for bugs.

Comment by Edwin Zhou [ 28/Apr/21 ]

Hi bharath_achar@outlook.com,

MongoDB v3.4 is incompatible with the latest version of mongodump. Additionally, MongoDB v3.4 has reached EOL, and v3.6 is approaching EOL by the end of this month. Please try upgrading to a later version of the MongoDB server that is compatible with our database tools.

Also as a reminder, please note that the SERVER project is for bugs and feature suggestions for the MongoDB server. I will now close this ticket given that this does not appear to be a bug with the MongoDB server. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the MongoDB Developer Community Forums. If your discussion there leads you to believe that you've hit a bug in our server, please let us know and we will reopen this ticket and continue our investigation!

Best,
Edwin

Generated at Thu Feb 08 05:39:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.