Open medemi68 opened 5 months ago
What do your package.json
and package-lock.json
files look like? This is a known issue that I think should be fixed in the next release (sorry about that taking so long oops), just making sure nothing is out-of-the-ordinary there
I am also experiencing this. Here is my package.json:
{
"name": "test-peer",
"version": "1.0.0",
"description": "",
"main": "jest.config.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "ts-node src/index.ts",
"test": "jest"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
},
"dependencies": {
"@roamhq/wrtc": "^0.8.0",
"@types/node": "^22.5.1",
"@types/webrtc": "^0.0.43",
"socket.io-client": "^4.7.5",
"ts-results-es": "^4.2.0",
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
}
}
@kkingsbe it looks like you have the version that includes the docker search path fix I thought would work, darn...
I'm guessing you might be building this docker image on an ARM64 host? What happens if you add an explicit dependency on @roamhq/wrtc-linux-x64
. Not too experienced in figuring out why docker isn't picking up the right binary sorry
I ended up finding a workaround to just not use docker for now (was trying to debug an issue relating to ICE connection discovery and wanted to see if it was due to being on the same NAT, hence the need for Docker :). Ended up just finding another way to resolve it)
Hi, I suffered the same but the error is a bit misleading.
I made the error more realistic adding a console.log in @roamhq/wrtc/lib/binding.js
let succeeded = false;
for (const path of paths_to_try) {
try {
console.log(path)
module.exports = require(path);
console.log(module.exports, 'here')
succeeded = true;
break;
} catch (error) {
console.log(error)
}
}
after that I saw that I had an error with a library
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /workspace/node_modules/@roamhq/wrtc-linux-x64/wrtc.node)
Ah! Thanks for debugging that @DavidGOrtega.
As explained in https://github.com/WonderInventions/node-webrtc/issues/21#issuecomment-2334871875, I've been having trouble getting libwebrtc to use a lower GLIBC version, due to its use of a bundled compiler toolchain. For now I would recommend using a different Docker base image as the simplest path forward for anyone having trouble with this.
as a reference node:18-bookworm-slim
is apparently compatible. I need to do some tests but at least the code runs.
Effectively node:18-bookworm-slim
is working perfectly.
Hi Guys,
I am creating a docker image for a project that I am working on, and the docker file gets built correctly. However, when it goes to run, it spits out an error saying that it can't find the binary. Something is not working correctly
Dockerfile:
Output when run:
Any help would be much appreciated. I would also like to note that I have it working outside of Docker.