[SERVER-26997] Windows: Mongod tries to create a minidump file in it's program directory Created: 11/Nov/16  Updated: 08/Aug/23  Resolved: 08/Aug/23

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.2.10
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jan S. Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png    
Assigned Teams:
Server Development Platform
Operating System: ALL
Steps To Reproduce:

This happens every time mongo crashes, e.g. because of an unhandled exception.

Participants:

 Description   

When I start mongod.exe it crashes and tries to create a minidump file in it's installation directory.
Obviously on Windows regular user/service accounts don't have write permission to C:\Program Files\.

2016-11-11T15:04:38.107+0100 I CONTROL  [initandlisten] MongoDB starting : pid=4316 port=27017 dbpath=E:\AppicaptorData\data 64-bit host=ac-win3
2016-11-11T15:04:38.107+0100 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2016-11-11T15:04:38.107+0100 I CONTROL  [initandlisten] db version v3.2.10
2016-11-11T15:04:38.107+0100 I CONTROL  [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317
...
2016-11-11T15:04:41.907+0100 I CONTROL  [initandlisten] failed to open minidump file C:\Program Files\MongoDB\Server\3.2016-11-11T14-04-41.mdmp : errno:5 Access denied



 Comments   
Comment by Alex Neben [ 08/Aug/23 ]

Closing these issues and closing the containing epic. Please reopen if these are still a problem.

Comment by Akshay P Bhosale [ 13/Aug/21 ]

 

Hi I am facing the same issue,any help will be appreciated

Comment by Jeril N/A [ 22/Apr/21 ]

Adding my vote for this ticket. I have also encountered this in mongo version 4.4.5. This started after my PC crashed. Tried reinstalling but still the same issues. Is there any workaround to fix this. Thank you.

Comment by Nick Judson [ 07/Dec/17 ]

Adding my vote for this ticket. I have also encountered this.

Comment by Mark Benvenuto [ 15/Nov/16 ]

Currently, we chose the location of the mongod.exe executable for the dump location. We should add a config switch to choose the dump directory, and maybe change the default directory to be the Windows temporary directory. Our tests rely on the dump file being in the same directory as the binary directory so we will need to take this into account when we make a change.

See
https://github.com/mongodb/mongo/blob/549c3f4315fd95431a662e7a8eff880f00b1458d/src/mongo/util/exception_filter_win32.cpp#L57

Comment by Ramon Fernandez Marina [ 13/Nov/16 ]

Thanks for reporting this, we're investigating.

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