GitHub Codespace entered recovery mode and persistent workspace files disappeared #210184
Replies: 2 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Don't delete the codespace, and don't create a new one. Your files are most likely still on the codespace's disk; the recovery container just isn't the same environment. Why it happened: Find your files from the recovery container: ls -la /workspaces
sudo find / -maxdepth 4 -type d -name ".git" 2>/dev/null | grep -v "^/proc"
df -h | grep -i workspacesEverything under Fix the config and rebuild:
Before rebuilding, back up anything uncommitted you can reach: cd /workspaces/<repo> && git stash -u && git stash show -p > /tmp/backup.patchFrom your machine, If |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
Hello GitHub Community,
I'm experiencing a serious GitHub Codespaces recovery issue and would appreciate guidance from anyone who has encountered something similar.
Codespace details
cesarsan/sistemas-devredesigned-couscous-7r9569vr9xcpj7wdevelopWhat happened
My Codespace failed to start its development container and automatically entered recovery mode.
The creation logs included:
unable to find user codespace: no matching entries in passwd fileFailed to create containerCreating recovery containerThe recovery environment starts, but the original working directories are missing.
Previously, the Codespace contained several repositories and substantial uncommitted work, including:
/workspaces/sistemas-dev/workspaces/awp/workspaces/complianceCurrently,
/workspaces/sistemas-devis empty, while/workspaces/awpand/workspaces/complianceare missing.The mounted
/workspacesfilesystem appears almost empty, despite the Codespace previously containing extensive development work.What I have checked
/workspaces.My main concern
Could recovery mode be mounting a newly initialized filesystem instead of the original persistent volume?
Is there a safe way to recover the original Codespace filesystem, including uncommitted files, without rebuilding or recreating the Codespace?
I have already opened GitHub Support ticket #4847245 and am preserving the existing Codespace without rebuilding or deleting it.
Any guidance on diagnosing this safely would be greatly appreciated.
Thank you.
All reactions