-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install oracledb fails on build machines with restricted network access. #730
Comments
Yes |
@cjbj Thanks for the reply, but why does it need to go outside the machine to build the driver? Does it download something? If it does, can I add it manually? |
@andersjanmyr for a start, node-oracledb has a dependency on NAN. Npm may do other book keeping, such as checking versions. You could strace or netstat or whatever to see what it is doing? |
set http_proxy=http://uname:password@proxy:proxyport should resolve the issue |
@telkomops Thanks for trying, but this doesn't work. There is no access allowed outside to untrusted servers. The only access allowed is our local npm repository. |
does that local npm registry machine has access to web? can it proxy those calls? |
I'm going to close this - you'll need to work out your own network limitations and download and compile somehow that suits your configuration. Note the recent update in #18: binaries will probably be on GitHub. |
Sure, I'm fine with that. I solved it by installing it on a similar machine and copying the files before npm installing. |
That seems logical. |
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?
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
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?
Here's a gist with the npm-debug.log, https://gist.github.com/andersjanmyr/77a8f8e8e83de07da9f5d11bc7e8120a
The text was updated successfully, but these errors were encountered: