codesandbox / codesandbox/codesandbox-client
VMs not starting, cannot create new ones.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
My VM is restarting and failing. I haven't asked for it. It just started automatically.
"Resuming Micro VM. Still booting"
"MicroVM snapshots are created to boot up in less than 2 seconds"
But nothing happens and secondly, I am getting an error after some time:
Unable to start the microVM
Your changes were saved, but we could not start the microVM running your project. Please try restarting the microVM by clicking the "Restart microVM" button."
All Systems Operational
We didn't encounter any issues in our system, which indicates that the issue might be related to your account.
If the issue persists, please contact our support team at support@codesandbox.io for further assistance, making sure to copy the error details below, or check the status page.
Error: (502) - URL: https://codesandbox.io/api/beta/sandboxes/branches/<<branch_code>>/instance
- DATA:
Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'8c1ee4232b3db236',t:'MTcyNjEzMzYxNS4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>- ERROR: SyntaxError: Unexpected token '<', "
Environment: production
Event: Initial connect to Pitcher
State: ERROR
Branch: <<branch_code>>
How has this issue affected you? What are you trying to accomplish?
I cannot start any environment. I cannot create a new environment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported POST endpoint /api/beta/sandboxes/branches/<branch_code>/instance and the Initial connect to Pitcher event in production version 0.0.360. Check why a 502 HTML response is being parsed as JSON, then verify that existing and newly created environments start successfully.
Written by the indexing model from the issue text.
Assessment
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100