Bug 842281
Summary: | Failed to install sqlite3 module for nodejs-0.6 app using package.json and deplist.txt | ||||||
---|---|---|---|---|---|---|---|
Product: | OKD | Reporter: | jizhao | ||||
Component: | Containers | Assignee: | Mrunal Patel <mpatel> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2.x | CC: | mpatel, szhou | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-08-07 20:42:52 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: | |||||||
Attachments: |
|
Description
jizhao
2012-07-23 10:55:12 UTC
Hi, Logging into the app and trying npm install sqlite3 fails with the same error for me and that makes me suspect that it is an issue with the sqlite3 package itself. Could you tell me which directory did you execute it from? - Mrunal (In reply to comment #1) > Hi, > Logging into the app and trying npm install sqlite3 fails with the same > error for me and that makes me suspect that it is an issue with the sqlite3 > package itself. Could you tell me which directory did you execute it from? > > - Mrunal Hi, By logging into the server, I mean log in the server as root in devenv environment. Steps: 1. Log into the server as root. 2. npm install sqlite3 The latest sqlite3 version is 2.1.5. It can't be installed successfully if you add it to package.json, but can be installed by root user on the server. Besides, sqlite3 2.1.0 can be successfully installed using package.json. discussing with Ram, expect to fix today Ram and I spent a lot of time looking into this today. This will be fixed as part of move to nodejs-0.8. Till then, there are two options: 1. Use a version that works (2.1.0 for sqlite3) 2. Or use this workaround - - First add node-gyp to package.json - git push - Next, ssh into the app and run $OPENSHIFT_REPO_DIR/node_modules/.bin/node-gyp rebuild (You will see some exceptions that can be ignored) - Now, you can add sqlite3 to package.json and git push and it should get installed Thanks, Mrunal |