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

can't install prebuilt binary, server response is 403 Forbidden #95

Open
azmy60 opened this issue Jun 3, 2024 · 8 comments
Open

can't install prebuilt binary, server response is 403 Forbidden #95

azmy60 opened this issue Jun 3, 2024 · 8 comments

Comments

@azmy60
Copy link
Contributor

azmy60 commented Jun 3, 2024

Hey!

Using this repo, I got 403 forbidden error after running yarn install:

image

I'm not sure if anyone else also experienced this, or my IP region is not allowed for some reason?

@carlopi
Copy link
Collaborator

carlopi commented Jun 3, 2024

How did you got that? v0.0.2 looks wrong, need to double check.

@carlopi
Copy link
Collaborator

carlopi commented Jun 3, 2024

Links should be in the form:
duckdb-v0.10.2-dev5.0-node-v108-linux-x64.tar.gz

Can you share some more context?

@azmy60
Copy link
Contributor Author

azmy60 commented Jun 3, 2024

I cloned this repo, and I just simply run yarn. Also tried npm install after I realized it uses package-lock.json, but still got the same result.

image

NPM: 9.5.1
Node: 18.16.0

@azmy60
Copy link
Contributor Author

azmy60 commented Jun 3, 2024

So the version in package.json is 0.0.2-dev5.0. Changing it to 0.10.2-dev5.0 fixes it for me.

"version": "0.0.2-dev5.0",

I feel like this could be the reason why when I installed duckdb last time it took 20 minutes or so? #70

@ryan-williams
Copy link

ryan-williams commented Jun 4, 2024

This Gitlab action just got a 403 from duckdb-node.s3.amazonaws.com/duckdb-v0.10.0-node-v127-linux-x64.tar.gz, output this line:

Pre-built binaries not installable for duckdb@0.10.0 and node@22.2.0 (node-v127 ABI, glibc) (falling back to source compile with node-gyp) 

and has been slowly compiling for 18 mins. This job usually finishes in under a minute.

Update: previous successful run fetched from duckdb-node.s3.amazonaws.com/duckdb-v0.10.0-node-v120-linux-x64.tar.gz, which also 200's for me now.

Seems like maybe my Gitlab runner is using a newer Node today, and there's not a v0.10.0 for that version? Not sure how to interpret node-v120 vs. node-v127, but the error message above implies the latter corresponds to node@22.2.0?

@azmy60
Copy link
Contributor Author

azmy60 commented Jun 4, 2024

So it looks like node-pre-gyp looks for version in package.json and we need a way to match that and the actual pre-built binaries version. If that's the issue, I have two solutions I can think of:

  1. Just update the version in package.json to match with the binaries version.
  2. Or specify the version when building the binaries following the package.json version, like how grpc works on their build script.

@azmy60
Copy link
Contributor Author

azmy60 commented Jun 10, 2024

Ok. It works fine if I install duckdb from npm, but the weird thing is the version in npm is different from this repo.

package.json in npmjs.com

package.json in npmjs.com

package.json in duckdb-node repo

package.json in duckdb-node repo

@Pertempto
Copy link

the weird thing is the version in npm is different from this repo.

Yeah, this is really strange to me.

We're blocked from using duckdb because we can't install it on our linux servers without getting an error

npm error command sh -c node-pre-gyp install --fallback-to-build

from what we can tell this is directly connected to this issue

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

No branches or pull requests

4 participants