Bug 1144114
| Summary: | Mongodb Client Disappeared | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Panagiotis Xinos <panagiotis.xinos> |
| Component: | Image | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | agrimm, info, jokerman, jolamb, mfojtik, mmahut, mmccomas, techgeek503, wzheng |
| 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: | 2015-02-18 16:50:57 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
Panagiotis Xinos
2014-09-18 17:21:35 UTC
*** Bug 1144135 has been marked as a duplicate of this bug. *** Panagiotis Xinos is this new application (created within, let say 1 month, or old gear?) The correct *PATH* env vars should be: OPENSHIFT_MONGODB_LD_LIBRARY_PATH_ELEMENT=/opt/rh/v8314/root/usr/lib64:/opt/rh/mongodb24/root/usr/lib64 OPENSHIFT_MONGODB_PATH_ELEMENT=/opt/rh/mongodb24/root/usr/bin The the LD_LIBRARY_PATH includes these. Is you application scaled app? Thanks for reporting this problem, any details appreciated :-) Hi Michal, This a 2 month old gear. No it is not scaled yet as it is in testing for now. But it will be production in the next few weeks. I managed to have mongo client running by declaring the missing paths/envs myself. Of course by disconnecting, everything was gone. I know the correct environmental variables and how to set them up. Question: do you think I can set the missing environmental variables using rhc env command? Would it interfere with future upgrades? Thank you for your prompt response. Panagiotis Xinos yes, they will interfere with future upgrade (and fix for this issue). However, what you described might be a reasonable temporary workaround for the 'rhc ssh' command. You can also remove them when you will not need them (eg. running mongo) or when we push the update to OpenShift Online. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/ad1374e9bdb8bfc233fecd18def94fc7e690204b Bug 1144114 - Add compatible upgrade for mongodb to fix missing PATH Same issue here (mongo not found). In my case it's a gear that was created last year. - So definitely older than a couple of months. Workaround: export OPENSHIFT_MONGODB_PATH_ELEMENT=/opt/rh/mongodb24/root/usr/bin source mongodb/lib/mongodb_context export PATH=/opt/rh/mongodb24/root/usr/bin:$PATH LD_LIBRARY_PATH=/opt/rh/v8314/root/usr/lib64:/opt/rh/mongodb24/root/usr/lib64:$LD_LIBRARY_PATH mongo This was fixed manually in PROD and we have code already pushed for OSE. HI Is this issue fixed after port forwarding without any other changes. I am unable to connect to mongo with putty. I am connected to my app and I see MongoDB is already running on 'gear start'. I tried with and without port forwarding. Please help. Thanks. |