Couchbase Node.js Client App on OpenShift?


#1

I am trying to run a Node.js Couchbase app using the latest 2.0.1 sdk, but it cannot find the native couchbase driver. Has anyone been able to run an application on OpenShift using the Node.js SDK?

Here is the OpenShift console output that I’m seeing. Any thoughts appreciated, thanks!

==============

DEBUG: Starting child process with ‘node server.js’
/var/lib/openshift/5441857c5004462ff50000fb/app-root/runtime/repo/node_modules/couchbase/lib/binding.js:152
throw new Error(‘Failed to locate couchnode native binding’ +
^
Error: Failed to locate couchnode native binding (maybe check builderror.log!)
at Object. (/var/lib/openshift/5441857c5004462ff50000fb/app-root/runtime/repo/node_modules/couchbase/lib/binding.js:152:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/var/lib/openshift/5441857c5004462ff50000fb/app-root/runtime/repo/node_modules/couchbase/lib/couchbase.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
DEBUG: Program node server.js exited with code 8


#2

Hi @barl3yb3ar, I’m not an expert on NodeJS and I think @brett19 will know better, but did you check that the libcouchbase package is properly installed on the box?


#3

Hi @barl3yb3ar,
You should check the builderror.log file in the couchnode folder to identify the reason for the failure. This usually occurs if you failed to have your operating system’s build tools available when the library was installed.
Cheers, Brett