Bug 1106559
Summary: | node: error while loading shared libraries: libv8.so.v8314-3.14.5 | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
Component: | ImageStreams | Assignee: | Jason DeTiberus <jdetiber> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.1.0 | CC: | adellape, erich, gpei, jialiu, jkeck, jokerman, libra-onpremise-devel, mfojtik, mmccomas, rhildred, xiama, xtian, yadu |
Target Milestone: | --- | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-nodejs-1.24.3.7-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
When the node command was run in Node.js cartridges, users experienced "error while loading shared libraries" messages. This was because the LD_LIBRARY_PATH was missing the V8 path, which was necessary as V8 has become part of Red Hat Software Collections. This bug fix updates the path and, as a result, the errors no longer occur.
|
Story Points: | --- |
Clone Of: | 1104922 | Environment: | |
Last Closed: | 2014-08-04 13:27:24 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: | |||
Bug Depends On: | 1104922 | ||
Bug Blocks: |
Description
Brenton Leanhardt
2014-06-09 15:11:16 UTC
June 23 In starting to use OpenShift via SSH, I find node errors out, such as with a simple version request: > echo $LD_LIBRARY_PATH /opt/rh/nodejs010/root/usr/lib64 > node -v node: error while loading shared libraries: libv8.so.v8314-3.14.5: cannot open shared object file: No such file or directory Check on puddle [2.1.4/2014-07.15.1] 1.Create a nodejs app #rhc app create nodejs nodejs 2.log in the app, check the env >env|grep LIB OPENSHIFT_NODEJS_LD_LIBRARY_PATH_ELEMENT=/opt/rh/v8314/root/usr/lib64 LD_LIBRARY_PATH=/opt/rh/v8314/root/usr/lib64 3.run the command 'which node' > which node which: no node in (/var/lib/openshift/53c5dff808c291a77000005e//.node_modules/.bin::/bin:/usr/bin:/usr/sbin) The LIB path doesn't contain the nodejs path. Seem like OSE does not include node bin path in ENV. [nodejsapp-jialiu.ose-21.com.cn 53c60eb3be739b17ff000001]\> scl enable nodejs010 'echo $LD_LIBRARY_PATH' /opt/rh/v8314/root/usr/lib64:/opt/rh/nodejs010/root/usr/lib64:/opt/rh/v8314/root/usr/lib64 [nodejsapp-jialiu.ose-21.com.cn 53c60eb3be739b17ff000001]\> echo $LD_LIBRARY_PATH /opt/rh/v8314/root/usr/lib64 [nodejsapp-jialiu.ose-21.com.cn 53c60eb3be739b17ff000001]\> scl enable nodejs010 'echo $PATH' /opt/rh/v8314/root/usr/bin:/opt/rh/nodejs010/root/usr/bin:/var/lib/openshift/53c60eb3be739b17ff000001//.node_modules/.bin::/bin:/usr/bin:/usr/sbin [nodejsapp-jialiu.ose-21.com.cn 53c60eb3be739b17ff000001]\> echo $PATH /var/lib/openshift/53c60eb3be739b17ff000001//.node_modules/.bin::/bin:/usr/bin:/usr/sbin [nodejsapp-jialiu.ose-21.com.cn 53c60eb3be739b17ff000001]\> scl enable nodejs010 v8314 'which node' /opt/rh/nodejs010/root/usr/bin/node The path for node bin should included in $PATH. I missed some later cherry-picks for the upstream bug. I've verified this in a devenv and $PATH and $LD_LIBRARY_PATH are now properly set. https://github.com/openshift/enterprise-server/pull/338 Verify this bug with openshift-origin-cartridge-nodejs-1.24.3.7-1.el6op.noarch Create a nodejs application, ssh into this app: [apptest-11.ose21z-auto.com.cn 53d082a708c2917794000001]\> node > (^C again to quit) > [apptest-11.ose21z-auto.com.cn 53d082a708c2917794000001]\> node -v v0.10.25 [apptest-11.ose21z-auto.com.cn 53d082a708c2917794000001]\> env|grep PATH MANPATH=/opt/rh/nodejs010/root/usr/share/man:/opt/rh/v8314/root/usr/share/man:: OPENSHIFT_NODEJS_PATH_ELEMENT=/var/lib/openshift/53d082a708c2917794000001//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin OPENSHIFT_NODEJS_LD_LIBRARY_PATH_ELEMENT=/opt/rh/nodejs010/root/usr/lib64:/opt/rh/v8314/root/usr/lib64 LD_LIBRARY_PATH=/opt/rh/nodejs010/root/usr/lib64:/opt/rh/v8314/root/usr/lib64 PATH=/var/lib/openshift/53d082a708c2917794000001//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/bin:/usr/bin:/usr/sbin Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0999.html |