docker-node
docker-node copied to clipboard
Node.js: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed.
Environment
- Platform: arm32v7 / raspberry pi
- Docker Version: 20.10.16,
- Node.js Version: 16.15.1
- Image Tag: node:16.15.1-buster-slim
Expected Behavior
npm install should work just fine
Current Behavior
$ docker run -it --rm node:16.15.1-bullseye-slim sh -c "npm i lodash" Node.js[8]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed. Aborted (core dumped)
Possible Solution
fallback to node:16.15.1-buster-slim
similar error reports at https://stackoverflow.com/questions/69775057/docker-image-fails-to-run-on-raspberry-pi-with-strange-node-error/72877702#72877702
Same causes as https://github.com/nodejs/docker-node/issues/1543 and https://github.com/nodejs/docker-node/issues/1589: newer system calls require an updated libseccomp
or they get blocked. TL;DR: update libseccomp
and possibly docker
.
Installing libseccomp2_2.5.4-1+b1_armhf.deb from http://ftp.debian.org/debian/pool/main/libs/libseccomp/ on a RasperryPi4 solved the problem.
Hello, any news here?
fix for raspberry pi: https://docs.linuxserver.io/FAQ/#resolution_2