Skip to content
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

Installation Problem oracledb@dev on Win 10 x64 #803

Closed
awn70 opened this issue Dec 2, 2017 · 12 comments
Closed

Installation Problem oracledb@dev on Win 10 x64 #803

awn70 opened this issue Dec 2, 2017 · 12 comments
Labels

Comments

@awn70
Copy link

awn70 commented Dec 2, 2017

Hi,
I want to use the pre-built binaries but the installation throws this error:
NJS-054 Binary build/Release/oracledb.node was not installed from oracledb-v2.0.14-node-v57-win32-x64.gz

The output of "npm install --verbose oracledb@dev" is here https://gist.github.com/awn70/de756737e8c6a6c58454de6a785fe951

OS: Windows_NT 10.0.16299 x64 (1709)
node: v8.9.1
npm: v5.5.1

Can anybody tell me what the problem is?
Thanks
Andreas

@bchr02
Copy link

bchr02 commented Dec 2, 2017 via email

@dmcghan
Copy link

dmcghan commented Dec 2, 2017

@awn70 Looks like you're on Windows 32 bit, I think there are only binaries for 64 bit. However, I'd have expected a different error.

You're getting a "oracledb ERR! socket hang up" error so it's likely network related. Are you doing this from home or work? Are there any HTTP proxies involved?

Please do the Windows equivalent of the following so we can get more insight:
export NODE_ORACLEDB_TRACE_INSTALL=TRUE

Then rerun the install and you should see some more verbose output. Please let us see that but ensure that nothing private is in the output first.

@awn70
Copy link
Author

awn70 commented Dec 3, 2017

I have added the log for NODE_ORACLEDB_TRACE_INSTALL="TRUE" to the gist above.
AFAIK there is no 32 bit nodejs on my system.

@cjbj
Copy link
Member

cjbj commented Dec 3, 2017

Did you check the 'socket hangup' error? Anything ring a bell?

Some google hits:
nodejs/node#9845
request/request#2047

Since you can reproduce it, and we can't, maybe you can help find a solution?

@cjbj
Copy link
Member

cjbj commented Dec 3, 2017

More links:
http://mcranston18.github.io/gulp-sever/
https://stackoverflow.com/questions/16995184/nodejs-what-does-socket-hang-up-actually-mean

I'll give some more concrete debugging suggestions when I'm at work tomorrow.

@cjbj
Copy link
Member

cjbj commented Dec 3, 2017

Actually I think I can repro. I'll look again at it first thing tomorrow.

@awn70
Copy link
Author

awn70 commented Dec 4, 2017

I'm behind a proxy and in my npm configuration the parameters proxy and https-proxy are set. I have changed the registry to http://registry.npmjs.org/ but nothing helps. Installing other npm packages works without any problems.

@cjbj
Copy link
Member

cjbj commented Dec 4, 2017

For the moment, I suggest compiling from source code following https://github.com/oracle/node-oracledb/blob/dev-2.0/INSTALL.md or using the manual install method (section 3.12.2 in INSTALL).

The proxy handling code in oracledbinstall.js needs some tweaking; it was all working but perhaps some wider ssl change has broken it. I've been banging my head against it all day.

@awn70
Copy link
Author

awn70 commented Dec 4, 2017

Compiling from source is not possible, I have visual studio 2017. AFAIK it's only working with vs2015.
Manual installation works!
If you need somebody for proxy installation tests, then let me know.
Thanks!

@cjbj
Copy link
Member

cjbj commented Dec 5, 2017

@awn70 I've made a tweak to the proxy code. (The situation was all very Twilight Zone). Can you download https://github.com/oracle/node-oracledb/releases/download/v2.0.14/oracledb-2.0.14.tgz and then install it with npm install oracledb-2.0.14.tgz? This will download the binary.

@awn70
Copy link
Author

awn70 commented Dec 5, 2017

Looks good, oracledb/build/Release contains a oracledb.node binary. You can see the output in the gist above (console2.log).

@cjbj
Copy link
Member

cjbj commented Dec 5, 2017

@awn70 thanks for confirming it works - and for being first to be struck by this latent bug.

We're close to releasing 2.0.15 which will have this fix for proxy support. npm won't allow republishing, AFAICT so I won't push the patched 2.0.14 there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants