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

Container fails to start: Node.js[1]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed. #357

Closed
yllekz opened this issue Nov 29, 2021 · 16 comments · Fixed by #362

Comments

@yllekz
Copy link

yllekz commented Nov 29, 2021

  • Version (cloudcmd -v): docker-latest (v15.9.9)
  • Node Version node -v: The one that ships with the docker container
  • OS (uname -a on Linux): Linux 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
  • Browser name/version: Firefox 94.0.2
  • Used Command Line Parameters: none, used yml config file
  • Changed Config: n/a?

Container does not start, it just spits this out in the logs repeatedly:

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

This is my docker-compose file - deployed via Portainer stack:

---
version: "2.1"
services:
  cloudcmd:
    image: coderaiser/cloudcmd:latest
    ports:
      - 7000:8000
    volumes:
      - ~:/root
      - /:/mnt/fs
    restart: unless-stopped
@coderaiser
Copy link
Owner

@timoknapp do you have any ideas?

@timoknapp
Copy link
Contributor

Hi @yllekz,

on what OS architecture are you running this docker image? Is it running on arm e.g. Raspberry PI or sth. different?
Also do you have more logs on this, its really hard to understand the real issue based on this single log statement.

Regards

@yllekz
Copy link
Author

yllekz commented Nov 30, 2021

I'm running the 32-bit Raspberry Pi OS which reports as armhf when I run dpkg --print-architecture

Unfortunately I'm not sure where else to look in terms of logs. The line Node.js[1]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed. is all I get from the container when trying to load it. If there's any other place to check, let me know and I'll drill into it.

@coderaiser
Copy link
Owner

@timoknapp could you please help, docker containers not created because of en error https://github.com/coderaiser/cloudcmd/runs/4521000330?check_suite_focus=true#step:11:278

@timoknapp
Copy link
Contributor

@timoknapp could you please help, docker containers not created because of en error https://github.com/coderaiser/cloudcmd/runs/4521000330?check_suite_focus=true#step:11:278

Hi @coderaiser ,

I could not make it to start with the investigation yet. Its still on my bucket list though. 🙏

@mchromy
Copy link

mchromy commented Dec 31, 2021

Hey. Same problem at raspberry 4, adding stack in portainer
version: '2' services: web: ports: - 7000:8000 volumes: - ~:/root - /:/mnt/fs image: coderaiser/cloudcmd
Added ok, but cloudcmd stopped with error
Node.js[1]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion (0) == (uv_gettimeofday(&tv))' failed.

@timoknapp
Copy link
Contributor

Hey @coderaiser, is the issue resolved now? I just had a look into the Pipeline and it seems that the build job "Build and push alpine-image" runs correctly now.
https://github.com/coderaiser/cloudcmd/runs/4616749170?check_suite_focus=true

Maybe this also resolves the issues for the rest of you. Can you please have a look again: @yllekz @mchromy ?

@yllekz
Copy link
Author

yllekz commented Jan 4, 2022

Not sure if I have to wait for Docker Hub to update, but when I went to pull a new image it did not retrieve a new one, it still indicated the image from 2021-12-23 was the newest. I'll try again in a few hours.

@timoknapp
Copy link
Contributor

Not sure if I have to wait for Docker Hub to update, but when I went to pull a new image it did not retrieve a new one, it still indicated the image from 2021-12-23 was the newest. I'll try again in a few hours.

Hmm no it seems that the latest release is actually from 2021-12-23

image

But this then means, that the issue @coderaiser noticed does not relate to your initial problem.

@coderaiser
Copy link
Owner

@timoknapp yes the issue with building images is resolved, there was problem with new name of python package in alpine.

About raspberry can you reproduce this issue with latest image?

@timoknapp
Copy link
Contributor

@coderaiser yes I could reproduce the issue and I also found a way of resolving it. It seems to be related to the Node base image. I updated the base images and created a new PR for it (#362)

@coderaiser
Copy link
Owner

coderaiser commented Jan 5, 2022

@timoknapp thanks a lot for a fix :) 🎉 !
I just restarted actions, could you please try v15.9.13 when it published, @yllekz, @mchromy is it works for you?

@timoknapp
Copy link
Contributor

@yllekz Could you perform a retest yet? I personally did it and it works again. So please get back to us such that the issue can be resolved :)

@yllekz
Copy link
Author

yllekz commented Jan 10, 2022

Docker Hub still won't pull the latest image, it's still saying the one from late December is the latest?

Update: It's working now! Took a while for Docker Hub to react but it finally pulled the new image and now it's all set.

@timoknapp
Copy link
Contributor

Docker Hub still won't pull the latest image, it's still saying the one from late December is the latest?

Update: It's working now! Took a while for Docker Hub to react but it finally pulled the new image and now it's all set.

@yllekz great! Thanks for the feedback. Lets close this issue @coderaiser :)

@coderaiser
Copy link
Owner

That's amazing! @timoknapp thanks a lot for you help 🎉 !

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

Successfully merging a pull request may close this issue.

4 participants