Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Pipeline test fails on ibm_db module (nodeJS, ibm_db)

310000S0SK gravatar image
Question by simonas88  (3) | Nov 20, 2015 at 03:22 AM devops-servicesnode.jspipelineibm_db

I have a project that is hosted on hub.jazz.net. The project is running on nodeJS/express platform and uses an IBM DB2 database. After setting up the pipeline, depolyment fails on the test stage (running test on a ubuntu workstation produces no errors). This is the error I get on jazz:

 /home/jenkins/workspace/fc58b251-8c7e-9b8e-62f7-e185761256f0/cad6a0e4-b405-486a-9e93-cdc998d8d569/node_modules/ibm_db/node_modules/bindings/bindings.js:79
         throw e
               ^
 Error: libxml2.so.2: cannot open shared object file: No such file or directory
     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 bindings (/home/jenkins/workspace/fc58b251-8c7e-9b8e-62f7-e185761256f0/cad6a0e4-b405-486a-9e93-cdc998d8d569/node_modules/ibm_db/node_modules/bindings/bindings.js:74:15)
     at Object.<anonymous> (/home/jenkins/workspace/fc58b251-8c7e-9b8e-62f7-e185761256f0/cad6a0e4-b405-486a-9e93-cdc998d8d569/node_modules/ibm_db/lib/odbc.js:27:31)

Package.json specifies ibm_db version 0.0.15, and the node engine version is 0.12.1. How do I fix this?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

2 answers

  • Sort: 
310000S0S4 gravatar image
Accepted answer

Answer by JonasMBaravykas (26) | Jan 06, 2016 at 09:27 AM

Good day,

The driver issue was solved simply by inserting "sudo apt-get install -y libxml2-dev" command into Stage Configuration Command Window.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310000S0SK gravatar image simonas88 (3)   Jan 25, 2016 at 02:55 AM 0
Share

You might also want to add sudo apt-get update if apt-get install fails to find the package.

270001TPCQ gravatar image

Answer by LinusHelmestam (272) | Dec 01, 2015 at 03:24 AM

Hi,

Have you sorted out this problem? If not, one thing to try would be to check which node_modules you use locally and double check that package.json matches it. Also, if your build need a different node version than what is used on the build machine you can during build time install your preferred node version. Just do that in the stage configuration page in the "Build Shell Command" section of the build job.

Good luck :-)

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

57 people are following this question.

Answers

Answers & comments

Related questions

problem using ibm_db on node.js 2 Answers

Running build script and I get 'Cannot find module 'internal/util/types'' error while running 'npm install' 0 Answers

DevOps pipeline with nodejs and grunt problem 1 Answer

Is Node.js runtime working? 2 Answers

Bluemix Node app not longer starts [RESOLVED] 6 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges