[SERVER-3826] Upgrade to mongodb 2.0 breaks the shell/console Created: 13/Sep/11  Updated: 13/Apr/15  Resolved: 13/Sep/11

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

Type: Bug Priority: Major - P3
Reporter: Alex Mcauley Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: SERVER_V2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 6, Intel Dual quadcore 64bit


Issue Links:
Related
Operating System: Linux
Participants:

 Description   

Example below... To re-create open a mongo shell and start to type a database name i.e "use mydatabase" and press backspace or delete to remove a character and it goes crazy! - it's not just when you type "use [database]" it happens on all delete/backspace entries while in the shell.

I have tested this on 3 different servers (all with the same operating system but with varying CPU's / RAM) and it's the same on all.

This didn't happen prior to the update

Update was done with Apt

MongoDB shell version: 2.0.0
connecting to: test
> use mydatab> use mydata > use mydat



 Comments   
Comment by Swen Thümmler [ 16/Sep/11 ]

What is really annoying: history-search-backward is missing (which I'm using permanently). And CTRL-Y does not work. Any chance to switch back to readline?

Comment by Mathias Stearn [ 13/Sep/11 ]

I'll keep an eye out for anyone useing secureCRT. If it has a unique $TERM setting when in the problematic mode, please open a new ticket and we can issue a warning.

Comment by Alex Mcauley [ 13/Sep/11 ]

I just switched my secureCRT to use a linux compat mode rather than the VT100 default it comes with.

Thanks for the explination - hope it helps someone in the future!

Comment by Mathias Stearn [ 13/Sep/11 ]

We switched from readline to linenoise in 2.0. Linenoise expects a VT100 compatible terminal which 99.9% of modern terminals support. If you need a workaround, the 1.8 shell should still work with a 2.0 mongod.

Comment by Alex Mcauley [ 13/Sep/11 ]

Changing the secureCRT emulation from the default of VT100 fixes the issue - as above this is very strange as eveery other app on the servers work fine with secure CRT adn previous versions of mongo did too

Comment by Alex Mcauley [ 13/Sep/11 ]

It's not broke with Putty but is with "secureCRT" which is very strange seeing as 1.8x works fine.

I will continue to investigate.

Comment by Matic [ 13/Sep/11 ]

I'm also running Debian 6 64-bit, have upgraded from 1.8.3 with APT and do not have this problem. I'm using PuTTY to connect to the server.

Comment by Alex Mcauley [ 13/Sep/11 ]

Tab is also broke in the shell.

Cursors are also broke (can't press up cursor for last command)

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