-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Deno hangs in Ubuntu #2124
Comments
@pietvanzoen Saw something similar to this in the Gitter chatroom days ago. Try search |
Same here stuck when tried example: |
@afinch7 thanks for the ping, happy to help! There are 2 scenarios where this can happen (in my experience):
Low entropy prevents things like TLS handshakes which deno relies on to fetch resources. You can make entropy higher by interacting with the system normally for a while (but it might be a long process) or by adding entropy to the system via Hope this helps! |
@jeromegn This sounds like a bug, but still single CPU machine should be able to run more than 1 thread? |
Thanks for the insight @jeromegn! I’m running it on the cheapest DO droplet VM with 1 vcpu so I’m guessing that’s it. Bummer but makes sense. Thanks for the responses everyone. |
I don't understand either. Deno does use a separate thread to compile typescript but surely having 1 CPU wouldn't prevent that from happening... |
I would say it's an issue in my changes to the compile process, but I doesn't look like we even get to compile. Hence the lack of Lines 166 to 223 in 97f0fe7
|
I can confirm this resolved my issue was well. Was trying this at work on a Hyper-V CentOS VM, ran into an issue that it doesn't support the old version of glibc on CentOS and tried on an Ubuntu VM only to have it hang. I used the default install method via bash I tried something as simple as I read this post, shutdown the VM and raised the CPU count to 2 and it worked immediately. Note the basic CLI / REPL worked fine with a single CPU. I know this isn't Node but Node works fine with a single CPU in this same environment, just for comparison. Saw your talk on YT @ry and decided to check this out. Hoping you can get this one resolved! I'd offer to contribute but I'm just exploring Rust and definitely wouldn't be of any help ;) |
There's a chance tokio's threadpool spawns a single worker since it only detects 1 logical core. Then you run |
@jeromegn Ah! That makes sense - thank you. I will look into it. |
This issue seems to persist in v0.4.0, replicated on a simple EC2 t2.micro instance. [ec2-user@ip-172-31-47-111 ~]$ curl -fsSL https://deno.land/x/install/install.sh | sh
######################################################################## 100.0%
Deno was installed successfully to /home/ec2-user/.deno/bin/deno
Manually add the directory to your $HOME/.bash_profile (or similar)
export PATH="/home/ec2-user/.deno/bin:$PATH"
Run '/home/ec2-user/.deno/bin/deno --help' to get started
[ec2-user@ip-172-31-47-111 ~]$ vi .bash_profile
[ec2-user@ip-172-31-47-111 ~]$ source .bash_profile
[ec2-user@ip-172-31-47-111 ~]$ deno version
deno: 0.4.0
v8: 7.6.53
typescript: 3.4.1
[ec2-user@ip-172-31-47-111 ~]$ deno run https://deno.land/welcome.ts
Downloading https://deno.land/welcome.ts Then the program hangs indefinitely. With |
AFAICT |
As a side note, when I changed the AWS EC2 instance type from t2.micro (1vCPU) to t3.nano (2 vCPU), |
So I've looked into this issue by manually tweaking tokio's runtime with
I followed code path and it seems problem is not with blocking calls. Additionally tokio has default limit of 100 concurrent blocking calls. Strangely it looks like file is downloaded twice... @ry is this intended behavior? |
I'm creating deno docker image for Azure 'Web App for Containers'. Before deno 0.6.0, deno couldn't work on single core tier. Many thanks!! |
I've been trying to run Deno on an Ubuntu server but I'm finding that it hangs on reading the file it's running. I initially was trying to run this on the
maxmcd/deno
docker image. I then tried installing/running Deno on the machine itself and ran into the same issue.I'm a little out of my depth to debug this so any guidance would be appreciated.
Ubuntu version 18.04.2 LTS (Bionic Beaver)
Then it hangs indefinitely.
Let me know what other info I can provide.
The text was updated successfully, but these errors were encountered: