Description
Installation fails when I'm trying to build on a build machine with restricted network access.
I don't know if this is the problem, but the connect ETIMEDOUT 104.20.22.46:443
in the log looks suspicious.
When I build on OSX or in a docker container on my local machine it works fine. I have tested with both Ubuntu and CentOS.
Any help would be appreciated.
-
What is your version of Node.js? Run examples/version.js to find versions.
node -v v6.11.0 -
What version of node-oracledb are you using?
[email protected] -
What is the version of your Oracle client (e.g. Instant Client)? How was it installed? Where it is installed?
LD_LIBRARY_PATH: /jenkins/workspace/sams-sng-orchestration/tmp/instantclient_12_2_linux
OCI_INC_DIR: /jenkins/workspace/sams-sng-orchestration/tmp/instantclient_12_2_linux/sdk/include -
What is the version of Oracle Database?
None yet. -
What is your OS and version?
- cat /proc/version
21:36:09 Linux version 3.10.0-514.10.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) Make node-oracledb installable via standard 'npm' install #1 SMP Fri Mar 3 00:04:05 UTC 2017
- What compiler version did you use? For example, with GCC, run
gcc --version
- gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
-
What environment variables did you set? How exactly did you set them?
export OCI_LIB_DIR=$tmp_dir/instantclient_12_2_linux
export LD_LIBRARY_PATH=$tmp_dir/instantclient_12_2_linux
export OCI_INC_DIR=$OCI_LIB_DIR/sdk/include -
What exact command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
Default build user with correct permissions. -
What error(s) you are seeing?
> [email protected] install /jenkins/workspace/sams-sng-orchestration/node_modules/oracledb
21:36:13 > node-gyp rebuild
21:36:13
21:38:21 gyp WARN install got an error, rolling back install
21:38:21 gyp ERR! configure error
21:38:21 gyp ERR! stack Error: connect ETIMEDOUT 104.20.22.46:443
21:38:21 gyp ERR! stack at Object.exports._errnoException (util.js:1018:11)
21:38:21 gyp ERR! stack at exports._exceptionWithHostPort (util.js:1041:20)
21:38:21 gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
21:38:21 gyp ERR! System Linux 3.10.0-514.10.2.el7.x86_64
21:38:21 gyp ERR! command "/jenkins/localtools/sams-sng-orchestration-60/nodejs/bin/node" "/jenkins/localtools/sams-sng-orchestration-60/npm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
21:38:21 gyp ERR! cwd /jenkins/workspace/sams-sng-orchestration/node_modules/oracledb
21:38:21 gyp ERR! node -v v6.11.0
21:38:21 gyp ERR! node-gyp -v v3.6.2
21:38:21 gyp ERR! not ok
21:38:22 npm ERR! code ELIFECYCLE
21:38:22 npm ERR! errno 1
21:38:22 npm ERR! [email protected] install: `node-gyp rebuild`
21:38:22 npm ERR! Exit status 1
21:38:22 npm ERR!
21:38:22 npm ERR! Failed at the [email protected] install script.
Here's a gist with the npm-debug.log, https://gist.github.com/andersjanmyr/77a8f8e8e83de07da9f5d11bc7e8120a