Bug 1144135

Summary: mongo command not found / unable to connecto to mongo shell
Product: OpenShift Online Reporter: info
Component: ImageAssignee: Michal Fojtik <mfojtik>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.xCC: jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-19 09:05:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***