Skip to content

Error when building dev image using dev.DockerfileΒ #9691

@quicklyfast

Description

@quicklyfast

Problem

I'm setting up the cube development environment. Following the CONTRIBUTING.md instructions, I ran the command docker build -t cubejs/cube:dev -f dev.Dockerfile ../../ to build the development image, but it encountered the following error:


	[4/4] Building fresh packages...
	warning Error running install script for optional dependency: "/cubejs/node_modules/java: Command failed.
	Exit code: 1
	Command: node-gyp rebuild
	Arguments:
	Directory: /cubejs/node_modules/java
	Output:
	gyp info it worked if it ends with ok
	gyp info using [email protected]
	gyp info using [email protected] | linux | x64
	gyp info find Python using Python version 3.11.2 found at \"/usr/bin/python3\"
	gyp http GET https://nodejs.org/download/release/v22.16.0/node-v22.16.0-headers.tar.gz
	gyp WARN install got an error, rolling back install
	gyp ERR! configure error
	gyp ERR! stack TypeError: Invalid URL
	gyp ERR! stack at new URL (node:internal/url:818:25)
	gyp ERR! stack at getProxy (/cubejs/node_modules/@npmcli/agent/lib/proxy.js:81:10)
	gyp ERR! stack at getAgent (/cubejs/node_modules/@npmcli/agent/lib/index.js:19:23)
	gyp ERR! stack at remoteFetch (/cubejs/node_modules/make-fetch-happen/lib/remote.js:38:17)
	gyp ERR! stack at fetch (/cubejs/node_modules/make-fetch-happen/lib/fetch.js:99:13)
	gyp ERR! stack at makeFetchHappen (/cubejs/node_modules/make-fetch-happen/lib/index.js:10:10)
	gyp ERR! stack at download (/cubejs/node_modules/java/node_modules/node-gyp/lib/download.js:22:21)
	gyp ERR! stack at go (/cubejs/node_modules/java/node_modules/node-gyp/lib/install.js:220:31)
	gyp ERR! stack at async install (/cubejs/node_modules/java/node_modules/node-gyp/lib/install.js:63:18)
	gyp ERR! stack at async getNodeDir (/cubejs/node_modules/java/node_modules/node-gyp/lib/configure.js:53:7)
	gyp ERR! System Linux 5.15.153.1-microsoft-standard-WSL2
	gyp ERR! command \"/usr/local/bin/node\" \"/cubejs/node_modules/java/node_modules/.bin/node-gyp\" \"rebuild\"
	gyp ERR! cwd /cubejs/node_modules/java
	gyp ERR! node -v v22.16.0
	gyp ERR! node-gyp -v v10.0.1
	gyp ERR! not ok"
	info This module is OPTIONAL, you can safely ignore this error
	error /cubejs/node_modules/duckdb: Command failed.
	Exit code: 1
	Command: node-pre-gyp install --fallback-to-build
	Arguments:
	Directory: /cubejs/node_modules/duckdb
	Output:
	[info] it worked if it ends with ok
	[info] using [email protected]
	[info] using [email protected] | linux | x64
	[info] check checked for "/cubejs/node_modules/duckdb/lib/binding/duckdb.node" (not found)
	[log] GET https://npm.duckdb.org/duckdb/duckdb-v1.2.1-node-v127-linux-x64.tar.gz
	[warn] Pre-built binaries not installable for [email protected] and [email protected] (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
	[warn] Hit error Invalid URL
	gyp info it worked if it ends with ok
	gyp info using [email protected]
	gyp info using [email protected] | linux | x64
	gyp info ok
	gyp info it worked if it ends with ok
	gyp info using [email protected]
	gyp info using [email protected] | linux | x64
	(node:175) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
	(Use `node --trace-deprecation ...` to show where the warning was created)
	gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
	gyp http GET https://nodejs.org/download/release/v22.16.0/node-v22.16.0-headers.tar.gz
	gyp WARN install got an error, rolling back install
	gyp ERR! configure error
	gyp ERR! stack TypeError: Invalid URL
	gyp ERR! stack     at new URL (node:internal/url:818:25)
	gyp ERR! stack     at getProxyUri (/cubejs/node_modules/node-gyp/node_modules/make-fetch-happen/lib/agent.js:147:53)
	gyp ERR! stack     at getAgent (/cubejs/node_modules/node-gyp/node_modules/make-fetch-happen/lib/agent.js:20:17)
	gyp ERR! stack     at remoteFetch (/cubejs/node_modules/node-gyp/node_modules/make-fetch-happen/lib/remote.js:31:17)
	gyp ERR! stack     at fetch (/cubejs/node_modules/node-gyp/node_modules/make-fetch-happen/lib/fetch.js:83:13)
	gyp ERR! stack     at makeFetchHappen (/cubejs/node_modules/node-gyp/node_modules/make-fetch-happen/lib/index.js:10:10)
	gyp ERR! stack     at download (/cubejs/node_modules/node-gyp/lib/install.js:354:21)
	gyp ERR! stack     at go (/cubejs/node_modules/node-gyp/lib/install.js:150:27)
	gyp ERR! stack     at async install (/cubejs/node_modules/node-gyp/lib/install.js:62:18)
	gyp ERR! System Linux 5.15.153.1-microsoft-standard-WSL2
	gyp ERR! command "/usr/local/bin/node" "/cubejs/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/cubejs/node_modules/duckdb/lib/binding/duckdb.node" "--module_name=duckdb" "--module_path=/cubejs/node_modules/duckdb/lib/binding" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
	gyp ERR! cwd /cubejs/node_modules/duckdb
	gyp ERR! node -v v22.16.0
	gyp ERR! node-gyp -v v8.4.1
	gyp ERR! not ok
	[error] build error
	[error] stack Error: Failed to execute '/usr/local/bin/node /cubejs/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/cubejs/node_modules/duckdb/lib/binding/duckdb.node --module_name=duckdb --module_path=/cubejs/node_modules/duckdb/lib/binding --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
	at ChildProcess.<anonymous> (/cubejs/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
	at ChildProcess.emit (node:events:518:28)
	at maybeClose (node:internal/child_process:1101:16)
	at ChildProcess._handle.onexit (node:internal/child_process:304:5)
	[error] System Linux 5.15.153.1-microsoft-standard-WSL2
	[error] command "/usr/local/bin/node" "/cubejs/node_modules/duckdb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
	[error] cwd /cubejs/node_modules/duckdb
	[error] node -v v22.16.0
	[error] node-pre-gyp -v v2.0.0
	[error] not ok
	Failed to execute '/usr/local/bin/node /cubejs/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/cubejs/node_modules/duckdb/lib/binding/duckdb.node --module_name=duckdb --module_path=/cubejs/node_modules/duckdb/lib/binding --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
	info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
	warning Error running install script for optional dependency: "/cubejs/node_modules/cpu-features: Command failed.
	Exit code: 1
	Command: node buildcheck.js > buildcheck.gypi && node-gyp rebuild
	Arguments:
	Directory: /cubejs/node_modules/cpu-features
	Output:
	gyp info it worked if it ends with ok
	gyp info using [email protected]
	gyp info using [email protected] | linux | x64
	gyp info find Python using Python version 3.11.2 found at \"/usr/bin/python3\"
	
	gyp http GET https://nodejs.org/download/release/v22.16.0/node-v22.16.0-headers.tar.gz
	gyp WARN install got an error, rolling back install
	gyp ERR! configure error
	gyp ERR! stack TypeError: Invalid URL
	gyp ERR! stack at new URL (node:internal/url:818:25)
	gyp ERR! stack at getProxy (/cubejs/node_modules/@npmcli/agent/lib/proxy.js:81:10)
	gyp ERR! stack at getAgent (/cubejs/node_modules/@npmcli/agent/lib/index.js:19:23)
	gyp ERR! stack at remoteFetch (/cubejs/node_modules/make-fetch-happen/lib/remote.js:38:17)
	gyp ERR! stack at fetch (/cubejs/node_modules/make-fetch-happen/lib/fetch.js:99:13)
	gyp ERR! stack at makeFetchHappen (/cubejs/node_modules/make-fetch-happen/lib/index.js:10:10)
	gyp ERR! stack at download (/cubejs/node_modules/@npmcli/run-script/node_modules/node-gyp/lib/download.js:22:21)
	gyp ERR! stack at go (/cubejs/node_modules/@npmcli/run-script/node_modules/node-gyp/lib/install.js:220:31)
	gyp ERR! stack at async install (/cubejs/node_modules/@npmcli/run-script/node_modules/node-gyp/lib/install.js:63:18)
	gyp ERR! stack at async getNodeDir (/cubejs/node_modules/@npmcli/run-script/node_modules/node-gyp/lib/configure.js:79:7)
	gyp ERR! System Linux 5.15.153.1-microsoft-standard-WSL2
	gyp ERR! command \"/usr/local/bin/node\" \"/cubejs/node_modules/.bin/node-gyp\" \"rebuild\"
	gyp ERR! cwd /cubejs/node_modules/cpu-features
	gyp ERR! node -v v22.16.0
	gyp ERR! node-gyp -v v10.3.1
	gyp ERR! not ok"
	info This module is OPTIONAL, you can safely ignore this error

build.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue is a question. Please use Stack Overflow for questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions