docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

Node.js: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed.

Open gwh-cpnet opened this issue 2 years ago • 5 comments

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

gwh-cpnet avatar Jul 06 '22 03:07 gwh-cpnet

similar error reports at https://stackoverflow.com/questions/69775057/docker-image-fails-to-run-on-raspberry-pi-with-strange-node-error/72877702#72877702

aguegu avatar Jul 06 '22 04:07 aguegu

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.

yosifkit avatar Jul 11 '22 22:07 yosifkit

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.

jabaa avatar Aug 17 '22 18:08 jabaa

Hello, any news here?

facundofarias avatar Jun 15 '23 06:06 facundofarias

fix for raspberry pi: https://docs.linuxserver.io/FAQ/#resolution_2

abhijithvijayan avatar Feb 28 '24 10:02 abhijithvijayan