devpod: SSH timeout when modifying files in remote repository
What happened?
The workspace showed up and I can use command through Terminal of VScode. But when I start to edit a file, the ssh connection stop and I can reload the session. I have to stop the workspace and start again.
What did you expect to happen instead?
I can edit my files then git push.
How can we reproduce the bug? (as minimally and precisely as possible)
- Use AWS provider
- Use a security that allow inbound rules only for SSH (22)
- Use VSCode IDE
Mu devcontainer came from the demo python project.
My devcontainer.json
:
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
"extensions": [
"streetsidesoftware.code-spell-checker"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [9000],
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"portsAttributes": {
"9000": {
"label": "Hello Remote World",
"onAutoForward": "notify"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip3 install -r requirements.txt"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
Local Environment:
- DevPod Version: 0.3.3
- Operating System: mac m2
- ARCH of the OS: ARM
DevPod Provider:
- Cloud Provider: aws
Anything else we need to know?
the disconnect only occurs when I open/edit a file.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (6 by maintainers)
Hah! Nice find! I’ve just released version v0.0.7 of the AWS provider that removes the suggestion for micro-sized machines, as they’re not good enough for devpod and can lead to these problems
https://github.com/loft-sh/devpod-provider-aws/releases/tag/v0.0.7
Thanks a lot for the investigation and the patience 😃