Bug 1144135 - mongo command not found / unable to connecto to mongo shell
Summary: mongo command not found / unable to connecto to mongo shell
Keywords:
Status: CLOSED DUPLICATE of bug 1144114
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-18 18:36 UTC by info
Modified: 2015-05-15 00:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-19 09:05:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description info 2014-09-18 18:36:56 UTC
Description of problem:
Since the day before yesterday I cannot log into the mongo database even though it is accessible through my jee app. When I ssh into my app (either directly by ssh or through rhc) and type mongo, I just get a "command not found".


Version-Release number of selected component (if applicable):
  mongodb-2.4 (MongoDB 2.4)
  -------------------------
    Gears:          Located with jbossews-2.0, cron-1.4
    Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/


How reproducible:
franz@ubuntu:~$ rhc ssh -a test
Connecting to 5152d082500446b81a00054f.com ...

    *********************************************************************

    You are accessing a service that is for use only by authorized users.
    If you do not have authorization, discontinue use at once.
    Any use of the services is subject to the applicable terms of the
    agreement which can be found at:
    https://www.openshift.com/legal

    *********************************************************************

    Welcome to OpenShift shell

    This shell will assist you in managing OpenShift applications.

    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
    Shell access is quite powerful and it is possible for you to
    accidentally damage your application.  Proceed with care!
    If worse comes to worst, destroy your application with "rhc app delete"
    and recreate it
    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!

    Type "help" for more info.


[test-locked.rhcloud.com 5152d082500446b81a00054f]\> mongo
bash: mongo: Kommando nicht gefunden.


Actual results:
bash: mongo: Kommando nicht gefunden.
(meaning "command not found")

Expected results:
connecting into mongo shell


Additional info:
It seems mongoclient is not there- the db is running - even after a restart of the gear.
Also no mongoexport/mongoimport can be found

Comment 1 info 2014-09-18 18:46:27 UTC
Just checked - the mongo client works when using rhc portforwarding.
Nevertheless it is strange that when I directly ssh into the gear, the mongo command is auto-completed but not found.

Comment 2 Michal Fojtik 2014-09-19 09:05:00 UTC

*** This bug has been marked as a duplicate of bug 1144114 ***


Note You need to log in before you can comment on or make changes to this bug.