codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Unable to start the microVM

Open Eprince-hub opened this issue 2 years ago • 98 comments
trafficstars

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

There is a Timed out error while trying to import a new project to codesandbox, I have tried doing it from the codesandbox dashboard by importing the repository I want and also have tried with githubox and all threw the same error Unable to start the microVM. Below is the detailed error message from Codesandbox

Error: Error: Timed out after 5000ms
Version: 0c12b80
Environment: production
Event: Initial connect to Pitcher
State: ERROR
Branch: ksxmst

I also have the screenshot here👇

Screenshot 2023-09-11 at 20 09 01

How has this issue affected you? What are you trying to accomplish?

There is a similar issue here https://github.com/codesandbox/codesandbox-client/issues/7663 but the error messages differs

To Reproduce

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser
Operating System

Eprince-hub avatar Sep 11 '23 18:09 Eprince-hub

Thanks for reporting this issue! This is an interesting one, I found the issue and it should. be resolved now. I will take a look in the meantime what caused this.

CompuIves avatar Sep 11 '23 18:09 CompuIves

Same issue

Ajayghoshm avatar Sep 17 '23 18:09 Ajayghoshm

@Ajayghoshm could you verify again? I believe there was a bug in one of our proxies, which caused some connections to not resolve. The fix for this was deployed today, so if you had an issue before where the screen said "Connecting to MicroVM..." for a long time, that issue should be solved now.

CompuIves avatar Sep 19 '23 22:09 CompuIves

This is happening here also: https://codesandbox.io/p/sandbox/github/tanstack/virtual/tree/beta/examples/react/dynamic?embed=1

RBSUS avatar Sep 22 '23 12:09 RBSUS

I having a similar here is mine.

Error: (500) - URL: https://codesandbox.io/api/beta/sandboxes/branches/7vhf7z/instance - DATA: {"error":"UNKNOWN_ERROR - the connection was lost","code":"UNKNOWN_ERROR","message":"the connection was lost"} - ERROR: Error: (500) UNKNOWN_ERROR - the connection was lost
Version: 0.0.47
Environment: production
Event: Initial connect to Pitcher
State: ERROR
Branch: 7vhf7z

I admit thou I am doing a lot of sketchy thing such as bind mount /project/zshrc folder over /root and play around a lot in a a custom Dockerfile build in dev containerer. I suspect I missing a debain package but this is hard to fix now.

What I want to do was have my .zshrc cross docker containers.

frog-o avatar Oct 22 '23 13:10 frog-o

Interesting, @frog-o could you share the link to the VM? I'll check if the VM had trouble to start.

CompuIves avatar Oct 23 '23 10:10 CompuIves

Sorry about that sure I think it here. https://codesandbox.io/p/github/frog-o/codesandbox-client/draft/silly-robinson?workspaceId=444aebca-547b-40d4-894a-b8ed880d48e8

I am failing miserably at trying to make a docker image. This is a good example of that. What I wanted to do was put My Home folder in the /project/(my-project)/Home/(My GitHub user). Codesandbox doesn't talk much about this directory though or what needed to be included in the docker image for there terminal to run. FNM needs to configure things with eval (FNM env) and there's no place to put it in right now before I flood you guys with issues on things I want to work on like this or even document them i need to figure out how to use them.

frog-o avatar Oct 23 '23 11:10 frog-o

@CompuIves ,I done it again won't start.

I am pretty sure it has to do

  • with the mount not being right.
  • the process gitting stuck on startup( I was load bash in setup task to trouble shoot)

I think you need to reload the page. Everything was work good yesterday until today when I went to resume my work today. I do a lot of weird thing thou. I was putting 'bash and zsh' in the startup task so I could bug hunt. I also was playing are in the developercontainers.json with the *CreateCommand( in other words postCreateCommand ,preCreateCommand.etc). I am trying to build the docker-debian-base image and get it to run.

Yesterday it was giving error about pitcher one of them being a missing directory so I made one of the the directory it was complaining about not existing in the precreateComand(i Think).

  • One thing I know is a problem is that the terminal does not like not have root. It is one Of the thing I had to change in my devcontainer.json file to get my terminal to open it would crash and reload with me not being able to see the errors.
  • most Thing start automaticly and they should not at least with out some sort of delay so you can read errors and they should only try a compile of times.

This is really annoying bug. I was getting close to have thing setup for usability like I wanted now I got to start again a square one.

Another weird thing about yesterday was when I tried to clone with git it gave my a broken link but curl worked fine . I did not enable the ssh in the image though they said ssh is disable by default( I assumed they where talking about the server ) I figure my terminal work fine after getting it to goto root so I was not going to worry about it.

frog-o avatar Oct 24 '23 08:10 frog-o

I can check later today why that is happening. Really weird case though, even with bad configuration it should be possible to start at least.

CompuIves avatar Oct 24 '23 08:10 CompuIves

@CompuIves I done thing I should have not done and just to let you know I deleted my repository on codesandbox for this I want to start from scratch. I got to see about reducing disk usage and cleaning cache the right way I have a lot of problem with it running out of disk space. I look at the /root folder was 5 G . This is odd I thought and look what was doing it. It was the cache caches are not really need I thought in most case I could just delete that. Well this is not one of those cases podman crash. Yarn taking up a lot of space to. I guess I can't work on codesandbox-client in code sandbox just because it to big for a free account.

frog-o avatar Oct 24 '23 13:10 frog-o

@Compulsves It look like you been busy; Things seem to be a lot more stable. If nothing else I want to Thank-you for your help. I was ablly to get docker-debian-base working and I see you (or some one) done a lot of work moving folder around in the /project/dir the way I like it. They also reconfigure git config user.name to show the right info. This has not gone un-notices. It was all thing preventing me from doing what I wanted before.

frog-o avatar Oct 25 '23 08:10 frog-o

I am getting this issue as well. I originally had a sandbox project. I was able to code and see the output. I then wanted to convert my sandbox into a repository into my github but would not work and converted my sandbox into devbox based on https://github.com/codesandbox/codesandbox-client/issues/7488

but the problem is that i keep on getting unable to start the microvm.

none of my files/code can be viewed since it just errors out. And there does not appear to be a way to convert back to sandbox after clicking on convert to devbox or download the project locally.

it would be nice to at least see my files even if the preview does not work so i can copy the code into another box.

ysk3a avatar Jan 10 '24 20:01 ysk3a

In case it serves to someone, I was able to open devboxes by forking them.

oxk4r01 avatar Jan 11 '24 11:01 oxk4r01

@ysk3a - Sorry for any trouble. Any loading issues should now have been resolved.

If you are still encountering the problem, please contact us via [email protected] with URLs for the effected environments and we'll take a closer look.

JamesACS avatar Jan 11 '24 15:01 JamesACS

This is still happening on March 22, 2024.

siliconfire avatar Mar 22 '24 17:03 siliconfire

This is still happening on March 22, 2024.

It is happening to me too

seyedeliasfakoorian avatar Mar 23 '24 00:03 seyedeliasfakoorian

Can you verify that you can access "new.csb.app"? We've seen that some ISPs and corporate proxies block our csb.app domain, which is sometimes the source of this issue.

On Sat, Mar 23 2024 at 1:12 AM, Elias Fakoorian < @.*** > wrote:

This is still happening on March 22, 2024.

It is happening to me too

— Reply to this email directly, view it on GitHub ( https://github.com/codesandbox/codesandbox-client/issues/8074#issuecomment-2016206925 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AAEPKCEO4SLUAKXSEKBPW53YZTCHFAVCNFSM6AAAAAA4TW65SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGIYDMOJSGU ). You are receiving this because you were mentioned. Message ID: <codesandbox/codesandbox-client/issues/8074/2016206925 @ github. com>

CompuIves avatar Mar 23 '24 11:03 CompuIves

Opening issue for visibility. When this happens, could you also share the link or id? That will make it easier to figure out if this is an issue on our side.

CompuIves avatar Mar 23 '24 11:03 CompuIves

I'm not blocked. I see this: Hello CodeSandboxStart editing to see some magic happen!

On Sat, Mar 23, 2024 at 7:25 AM Ives van Hoorne @.***> wrote:

Can you verify that you can access "new.csb.app"? We've seen that some ISPs and corporate proxies block our csb.app domain, which is sometimes the source of this issue.

On Sat, Mar 23 2024 at 1:12 AM, Elias Fakoorian < @.*** > wrote:

This is still happening on March 22, 2024.

It is happening to me too

— Reply to this email directly, view it on GitHub (

https://github.com/codesandbox/codesandbox-client/issues/8074#issuecomment-2016206925

) , or unsubscribe (

https://github.com/notifications/unsubscribe-auth/AAEPKCEO4SLUAKXSEKBPW53YZTCHFAVCNFSM6AAAAAA4TW65SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGIYDMOJSGU

). You are receiving this because you were mentioned. Message ID: <codesandbox/codesandbox-client/issues/8074/2016206925 @ github. com>

— Reply to this email directly, view it on GitHub https://github.com/codesandbox/codesandbox-client/issues/8074#issuecomment-2016459262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXITGUSSJ47HDDYJIMSTFDYZVRDDAVCNFSM6AAAAAA4TW65SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGQ2TSMRWGI . You are receiving this because you commented.Message ID: @.***>

silvanet avatar Mar 23 '24 12:03 silvanet

The last comment I wrote is still repeating

seyedeliasfakoorian avatar Mar 23 '24 15:03 seyedeliasfakoorian

It happens with devboxes and github-imported repos

seyedeliasfakoorian avatar Mar 23 '24 20:03 seyedeliasfakoorian

Could you share what the network tab in your devtools is showing when you filter in the network requests for ctrl? If you're getting it for all GH repos and devboxes I have a suspicion that there's a network wide block.

CompuIves avatar Mar 25 '24 10:03 CompuIves

Hi, @CompuIves I am getting a similar issue. The Micro VM isn't starting. It says: Error: Version: 0.0.268 Environment: production Event: Initial connect to Pitcher State: ERROR Branch: 9qhlzz Here is the link to the project https://codesandbox.io/p/github/waybig125/sciencemaverick/main?workspaceId=ed3f647b-ba5f-4dd9-ae09-78c7ed634af3

The screenshot of the issue is attached. Please help me fix it. Thanks ):

1711729293879

waybig125 avatar Mar 29 '24 18:03 waybig125

Thanks for the report @waybig125. I'm seeing that the authorize calls come in, but the websocket request doesn't come through. I'm checking why that is. To verify, could you share what you're seeing in your network tab for requests that contain ctrl in the URL?

CompuIves avatar Mar 29 '24 18:03 CompuIves

Thanks for the report @waybig125. I'm seeing that the authorize calls come in, but the websocket request doesn't come through. I'm checking why that is. To verify, could you share what you're seeing in your network tab for requests that contain ctrl in the URL?

I am getting this error: index.js:208 WebSocket connection to 'wss://9qhlzz.ctrl.codesandbox.io/?token=1vjx92inzgep8l42' failed: (anonymous) @ index.js:208 Bs @ index.js:207 (anonymous) @ index.js:557

waybig125 avatar Mar 29 '24 18:03 waybig125

Does it show that the request immediately fails? Could you send a screenshot of the network panel? I think I'm getting closer to understanding what's happening

CompuIves avatar Mar 29 '24 18:03 CompuIves

Here is the screenshot error csb

waybig125 avatar Mar 29 '24 19:03 waybig125

Does it show that the request immediately fails? Could you send a screenshot of the network panel? I think I'm getting closer to understanding what's happening

But the most weird thing is that it is working fine on my mobile.

waybig125 avatar Mar 29 '24 19:03 waybig125

Hmm, in a terminal (if you're on Linux or Mac), could you run "curl -I https://9qhlzz.ctrl.codesandbox.io"? Curious what it returns

CompuIves avatar Mar 29 '24 19:03 CompuIves

Or could you even open that url in the browser and show what your browser shows?

https://9qhlzz.ctrl.codesandbox.io

CompuIves avatar Mar 29 '24 19:03 CompuIves