Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run meteor mongo in METEOR@2.14 #12941

Open
Shelagh-Lewins opened this issue Dec 31, 2023 · 1 comment
Open

Unable to run meteor mongo in METEOR@2.14 #12941

Shelagh-Lewins opened this issue Dec 31, 2023 · 1 comment
Labels
good first issue Good first issue or something that should is nice to do. Project:Docs Project:Mongo Driver
Milestone

Comments

@Shelagh-Lewins
Copy link

Shelagh-Lewins commented Dec 31, 2023

I have a METEOR@2.14 project running and would like to open the mongodb shell (to check the Mongodb version).

OS: Linux mint cinnamon

According to the docs for Meteor 2.14, I should open a second terminal window, navigate to my project and then run:

meteor mongo

What is

When I run this command, I see the following error:

Some error occured while trying to run mongosh.
Check bellow for some more info:

     Since version v5.0.5 the mongo shell has been superseded by the mongosh
     below there is the url to use with mongosh
     $ mongosh mongodb://127.0.0.1:3001/meteor
     
The 'mongosh' command line tool was not found in your PATH.

According to the Meteor 2.11 migration guide, I should be able to use mongosh instead, but when I run:

mongosh

I see an error:

bash: mongosh: command not found

What should be

The docs should explain how to run the mongo shell.

  • the Meteor 2.14 user guide should not say to use meteor mongo
  • the migration guide should explain what to do

Update: after some investigation, I found that mongo shell needs to be installed separately, which is unexpected for a long-term Meteor user because I'm so used to everything in Meteor "just working" and the install / upgrade processes being so smooth.

After installing mongo shell, this works:

mongosh mongodb://127.0.0.1:3001/meteor

It would be super helpful if the migration guide pointed out that you need to install mongo shell, because this wasn't obvious to me.

https://www.mongodb.com/docs/mongodb-shell/install/

@StorytellerCZ
Copy link
Collaborator

@Grubba27

@StorytellerCZ StorytellerCZ added Project:Docs good first issue Good first issue or something that should is nice to do. labels Jan 9, 2024
@StorytellerCZ StorytellerCZ added this to the Release 2.15 milestone Jan 9, 2024
@denihs denihs modified the milestones: Release 2.15, Release 2.16 Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good first issue or something that should is nice to do. Project:Docs Project:Mongo Driver
Projects
None yet
Development

No branches or pull requests

3 participants