Open Eprince-hub opened 1 year ago
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.
Same issue
@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.
This is happening here also: https://codesandbox.io/p/sandbox/github/tanstack/virtual/tree/beta/examples/react/dynamic?embed=1
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.
Interesting, @frog-o could you share the link to the VM? I'll check if the VM had trouble to start.
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.
@CompuIves ,I done it again won't start.
I am pretty sure it has to do
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).
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.
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 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.
@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.
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.
In case it serves to someone, I was able to open devboxes by forking them.
@ysk3a - Sorry for any trouble. Any loading issues should now have been resolved.
If you are still encountering the problem, please contact us via support@codesandbox.io with URLs for the effected environments and we'll take a closer look.
This is still happening on March 22, 2024.
This is still happening on March 22, 2024.
It is happening to me too
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>
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.
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: @.***>
The last comment I wrote is still repeating
It happens with devboxes and github-imported repos
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.
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 ):
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?
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
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
Here is the screenshot
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.
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
Or could you even open that url in the browser and show what your browser shows?
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
here is what i get: curl: (60) SSL certificate problem: Invalid certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
And on visiting the url in the browser, it says: Upgrade Required
Hmm, if it says Upgrade Required it means that you can connect to the endpoint. I'm going to check if we're rejecting any requests. It's weird that it works on your mobile, though. I'm wondering if maybe the DNS changes haven't propagated yet.
Hmm, if it says Upgrade Required it means that you can connect to the endpoint. I'm going to check if we're rejecting any requests. It's weird that it works on your mobile, though. I'm wondering if maybe the DNS changes haven't propagated yet.
I also tried another dns, but still didn't work.
This is what I get from running curl
:
curl -I https://9qhlzz.ctrl.codesandbox.io
HTTP/2 426
date: Fri, 29 Mar 2024 19:18:54 GMT
content-type: text/plain
content-length: 16
cf-ray: 86c2355bb84ba004-AMS
cf-cache-status: DYNAMIC
strict-transport-security: max-age=31536000; includeSubDomains
set-cookie: _cfuvid=6VGgKf_lgKBexaCLFf.ySdw3XO2wu8ztlG8CAKEO5I8-1711739934206-0.0.1.1-604800000; path=/; domain=.codesandbox.io; HttpOnly; Secure; SameSite=None
server: cloudflare
alt-svc: h3=":443"; ma=86400
Makes me think there's maybe something going wrong there.
This is what I get from running
curl
:curl -I https://9qhlzz.ctrl.codesandbox.io HTTP/2 426 date: Fri, 29 Mar 2024 19:18:54 GMT content-type: text/plain content-length: 16 cf-ray: 86c2355bb84ba004-AMS cf-cache-status: DYNAMIC strict-transport-security: max-age=31536000; includeSubDomains set-cookie: _cfuvid=6VGgKf_lgKBexaCLFf.ySdw3XO2wu8ztlG8CAKEO5I8-1711739934206-0.0.1.1-604800000; path=/; domain=.codesandbox.io; HttpOnly; Secure; SameSite=None server: cloudflare alt-svc: h3=":443"; ma=86400
Makes me think there's maybe something going wrong there.
Weird! It is rejecting my request with secure connection and with insecure connection, it gets me this error: curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
What if you run the same curl command, but with -vvv
? That will give more details on the handshake:
curl -vvv -I https://9qhlzz.ctrl.codesandbox.io
What if you run the same curl command, but with
-vvv
? That will give more details on the handshake:curl -vvv -I https://9qhlzz.ctrl.codesandbox.io
This is what I got this time:
curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
What environment (Windows/Linux/Mac) are you running the curl
command in?
What environment (Windows/Linux/Mac) are you running the
curl
command in?
Mac OS X 10.11.6
Interesting. It seems like our root certificate is not accepted. Could you run openssl s_client -connect 9qhlzz.ctrl.codesandbox.io:443 -servername 9qhlzz.ctrl.codesandbox.io
and report back what's in the section Certificate chain
?
openssl s_client -connect 9qhlzz.ctrl.codesandbox.io:443 -servername 9qhlzz.ctrl.codesandbox.io
It gave me this errror: CONNECTED(00000003) 1480:error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59.60.2/src/ssl/s23_clnt.c:593:
Even more interesting, looks like the TLS version of your client is too low and gets rejected. I'm going to take a look at the Cloudflare settings.
Even more interesting, looks like the TLS version of your client is too low and gets rejected. I'm going to take a look at the Cloudflare settings.
Okay!
Could you try to run the same openssl/curl command again now?
openssl s_client -connect 9qhlzz.ctrl.codesandbox.io:443 -servername 9qhlzz.ctrl.codesandbox.io
GOt the exact same error!
Okay, and try once more :)
this time I got this result:
New, TLSv1/SSLv3, Cipher is AES128-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : AES128-SHA
Session-ID: DE04028A09E6A274B7EAE857EF75EB026765F5FC9C3D0B6957298789F099434C
Session-ID-ctx:
Master-Key: FD9539EC0D983C3038CA59D02162E4CF55D929E784F26F83F6047D8F90C2B498B22488F6003E4AAEB0574ACC46B08448
Key-Arg : None
TLS session ticket lifetime hint: 64800 (seconds)
TLS session ticket:
0000 - 06 70 49 43 77 ca 3c 69-ed d5 bd 5f a3 ed 10 4d .pICw.<i..._...M
0010 - f2 fd b5 95 f0 d7 81 62-a2 ef b3 2f fe fa c6 91 .......b.../....
0020 - 4f 1c 08 e3 f1 a7 e3 82-c1 07 c5 d0 b3 00 f8 e3 O...............
0030 - 12 cd 73 b0 d8 c9 ca 47-6e a5 d6 37 93 4f a9 ad ..s....Gn..7.O..
0040 - 96 e5 63 02 e9 54 78 f9-c4 50 10 3c b5 49 66 29 ..c..Tx..P.<.If)
0050 - f4 a0 6a 88 7e 11 ee c2-eb 45 b4 97 be 55 09 94 ..j.~....E...U..
0060 - 15 69 60 d3 a6 8d 52 38-f9 f2 b0 54 da 64 76 b0 .i...R8...T.dv. 0070 - 58 f8 9f 44 64 50 5b b1-89 89 f2 71 1c 98 78 ad X..DdP[....q..x. 0080 - 4c e4 21 3a 60 8b 21 b3-4e 6a 9f 55 2b 71 60 09 L.!:
.!.Nj.U+q`.
0090 - 37 3d 46 e7 8b 96 6b 99-4e 1b 09 ef 98 6e bc e6 7=F...k.N....n..
00a0 - 8e 70 48 66 c0 32 3c 08-d0 4e bf c1 8d 9e 23 2d .pHf.2<..N....#-
Start Time: 1711741652
Timeout : 300 (sec)
Verify return code: 20 (unable to get local issuer certificate)
closed
Okay, and try once more :)
Now, the microvm is also working fine... Thanks!
Oh huh... Now it's working fine? Maybe it was a TLS version problem then. That's what I changed. Well, glad that it's working for you now!
🐛 bug report
Preflight Checklist
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 CodesandboxI also have the screenshot here👇
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