[SERVER-3238] Windows 1.8.1/1.8.2-rc3 32-bit mongoexport Exits With "too many positional options" Error Created: 10/Jun/11  Updated: 12/Jul/16  Resolved: 03/Sep/11

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

Type: Bug Priority: Major - P3
Reporter: Jared D. Cottrell Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2008 R2 64-bit AMI from AWS, 32-bit versions of 1.8.1 and 1.8.2-rc3


Operating System: Windows
Participants:

 Description   

When I try to connect to use mongoexport with my auth-mode server I get the errors shown below when using the 32-bit client but not the 64-bit client. For security, all identifying information has been scrubbed from the example below.

PS C:\Program Files\mongodb-win32-x86_64-1.8.1\bin> .\mongoexport.exe -h db.mycompany.com:27017 -d <database> -c <collection> -u <username> -p <password> -o <collection>.json
connected to: db.mycompany.com:27017
exported 1 records

PS C:\Program Files\mongodb-win32-i386-1.8.1\bin> .\mongoexport.exe -h db.mycompany.com:27017 -d <database> -c <collection> -u <username> -p <password> -o <collection>.json
ERROR: too many positional options

options:
--help produce help message
-v [ --verbose ] be more verbose (include multiple times for more
verbosity e.g. -vvvvv)
-h [ --host ] arg mongo host to connect to ( <set name>/s1,s2 for sets)
--port arg server port. Can also use --host hostname:port
--ipv6 enable IPv6 support (disabled by default)
-u [ --username ] arg username
-p [ --password ] arg password
--dbpath arg directly access mongod database files in the given
path, instead of connecting to a mongod server -
needs to lock the data directory, so cannot be used
if a mongod is currently accessing the same path
--directoryperdb if dbpath specified, each db is in a separate
directory
-d [ --db ] arg database to use
-c [ --collection ] arg collection to use (some commands)
-f [ --fields ] arg comma separated list of field names e.g. -f name,age
--fieldFile arg file with fields names - 1 per line
-q [ --query ] arg query filter, as a JSON string
--csv export to csv instead of json
-o [ --out ] arg output file; if not specified, stdout is used
--jsonArray output to a json array rather than one object per
line



 Comments   
Comment by Eliot Horowitz (Inactive) [ 03/Sep/11 ]

the windows 32 bit build system was using an older version of boost.
2.0.0-* should fix

Generated at Thu Feb 08 03:02:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.