[SERVER-4423] Using MongoDB in the Cygwin shell Created: 03/Dec/11 Updated: 06/Feb/23 Resolved: 06/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Tad Marshall | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | sdp-backlog-purge | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows running a Cygwin bash shell |
||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||||
| Participants: | |||||||||||||
| Case: | (copied to CRM) | ||||||||||||
| Description |
|
This bug is to collect information and produce decisions and possible action about running MongoDB command line components under the Cygwin bash shell. |
| Comments |
| Comment by Iryna Zhuravlova [ 16/Nov/22 ] | ||||||||||||||||
|
After a careful backlog refinement, the team decided to close this ticket because of its low priority and limited resource capacity. If you believe that this ticket requires additional attention from the team and should be re-opened, feel free to change the status to "Needs Scheduling" and ping me or alexander.neben@mongodb.com | ||||||||||||||||
| Comment by Sergio Castro [ 21/Oct/19 ] | ||||||||||||||||
|
Hi all. In case it helps, I have linked SFSC 00609587, in which there were issues observed when using the mongo shell via Git Bash. 1. When using the standard SRV record connection string, the password prompt does not appear, and therefore authentication fails. The command line outputs Cannot get console mode 6 instead.
2. When including the password in the connection string, the session appears to hang and eventually times out:
| ||||||||||||||||
| Comment by Tad Marshall [ 03/Jun/12 ] | ||||||||||||||||
|
The resolution in the ticket referenced above ( | ||||||||||||||||
| Comment by Tad Marshall [ 06/Dec/11 ] | ||||||||||||||||
|
Thanks, Chris. I've got the bug you posted about crashing the server on my list and it doesn't duplicate in the current code because the shell isn't sending anything on the mistyped command – the parser fails it. But I will try to duplicate it with the version you used and see if the server still falls down on the malformed request. | ||||||||||||||||
| Comment by Chris Westin [ 06/Dec/11 ] | ||||||||||||||||
|
I finally got a chance to look into this. Yes, I can confirm what you are seeing, Tad. My shortcut points to c:\cygwin\Cygwin.bat, and that just does a chdir to C:\cygwin\bin, and then issues "bash --login -i". It does not set a CYGWIN environmental variable. So, under those conditions, the shell does appear to work correctly, modulo the incident that triggered this, namely that using a ^C under certain circumstances appears to cause the shell to send a malformed message to the server. |