[SERVER-2446] mongodump does not indicate it cannot write to a dump file on Windows Created: 31/Jan/11  Updated: 29/Feb/12  Resolved: 31/Oct/11

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

Type: Bug Priority: Major - P3
Reporter: Justin Dearing Assignee: Spencer Brody (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 32 bit


Operating System: ALL
Participants:

 Description   

If I open a command prompt as an unprivileged user and cd to c:\windows bsondump will not output an error that it cannot write anything. It will output as if nothing has gone wrong:

C:\Users\DearingJ>cd \Windows

C:\Windows>mongodump
connected to: 127.0.0.1
all dbs
DATABASE: driveronlinetests to dump/driveronlinetests
driveronlinetests.test to dump/driveronlinetests/test.bson
1 objects
driveronlinetests.system.indexes to dump/driveronlinetests/system.indexes.bson
1 objects
DATABASE: clientRSVP to dump/clientRSVP
clientRSVP.system.users to dump/clientRSVP/system.users.bson
3 objects
clientRSVP.system.indexes to dump/clientRSVP/system.indexes.bson
14 objects
clientRSVP.locations to dump/clientRSVP/locations.bson
1 objects
clientRSVP.events to dump/clientRSVP/events.bson
2 objects
clientRSVP.Locations to dump/clientRSVP/Locations.bson
0 objects
clientRSVP.deleteMe to dump/clientRSVP/deleteMe.bson
1 objects
clientRSVP.Events to dump/clientRSVP/Events.bson
0 objects
clientRSVP.attendees to dump/clientRSVP/attendees.bson
380 objects
clientRSVP.administrators to dump/clientRSVP/administrators.bson
1 objects
clientRSVP.sessions to dump/clientRSVP/sessions.bson
10 objects
DATABASE: test to dump/test
test.magicdiscriminator to dump/test/magicdiscriminator.bson
1 objects
test.system.indexes to dump/test/system.indexes.bson
1 objects
DATABASE: admin to dump/admin

C:\Windows>dir dump
Volume in drive C has no label.
Volume Serial Number is 4A83-4EA3

Directory of C:\Windows

File Not Found

C:\Windows>



 Comments   
Comment by Spencer Brody (Inactive) [ 11/Oct/11 ]

Just tested this in 2.0 and I believe the problem has been fixed. I see: error: boost::filesystem::create_directory: Access is denied: "dump"
Can you try again with 2.0 and confirm whether this is still a problem for you?

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