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

How install mongo shell? #9

Closed
Pavel-Evdokimov opened this issue Jul 29, 2015 · 3 comments
Closed

How install mongo shell? #9

Pavel-Evdokimov opened this issue Jul 29, 2015 · 3 comments

Comments

@Pavel-Evdokimov
Copy link

Hello! I need use mongo shell in my app. How can I install it? Thanks!

@azariah001
Copy link

Would also like to know. I need to be able to secure the server and add a user which I cannot do through the config files because they're at the filesystem root of Openshift which is secured for reasons. 😞

@icflorescu
Copy link
Owner

This cartridge doesn't install mongo shell in order to save space. See notes on the README and the discussion on issue #1.

You can use rhc port-forward and mongo shell to securely connect from your local development machine; see OpenShift docs.

Or, if you really need mongo on the server cartridge, you could fork this repository and modify the install script to keep it (you might need to also keep some dependencies, I'm not sure), but you'll lose a lot of space...

@myknbani
Copy link

I dunno what I'm doing wrong, but the port-forward shell just closes with the following error:

~/.gem/ruby/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/ruby_compat.rb:30:in `select': closed stream (IOError)

And getting this error using mongo --port 49226

[thread1] Error: network error while attempting to run command 'isMaster' on host '127.0.0.1:49226'  :

It shows the following on the port-forward shell:

mongodb 127.0.0.1:49226 => [my domain].rhcloud.com:49226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants