Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug SAM applications breaks with Docker 2.2.0.0 on VS Code (Windows 10) #5573

Closed
manucohenyashar opened this issue Jan 23, 2020 · 5 comments

Comments

@manucohenyashar
Copy link

After upgrading to version 2.2.0.0 debugging SAM applications stopped working in ALL runtimes (Python, node, etc). Running the application works but attaching the debugger breaks with the error: "docker.errors.APIError: 500 Server Error: Internal Server Error ("error while creating mount source path '/host_mnt/c/Users/{user name}/AppData/Local/Temp/aws-toolkit-vscode/vsctkDZvlgv/output/awsToolkitSamLocalResource': mkdir /host_mnt/c/Users/{user name}: file exists")"

I disabled the local firewall to make sure no network errors cause the issue. Also, the fact that running the application (sam local invoke) works tells me that mounting works.

  • [*] I have tried with the latest version of my channel (Stable or Edge)
  • [ *] I have uploaded Diagnostics
  • Diagnostics ID: A70E650C-EEE0-423B-A795-55F2DD760CFD/20200123155536

Expected behavior

The debugger should attach (using the default port 5858)

Actual behavior

Attach debugger fails with the error:

docker.errors.APIError: 500 Server Error: Internal Server Error ("error while creating mount source path '/host_mnt/c/Users/{my user name}/AppData/Local/Temp/aws-toolkit-vscode/vsctkDZvlgv/output/awsToolkitSamLocalResource': mkdir /host_mnt/c/Users/{my user name}: file exists")

Information

  • Windows Version: Windows 10.0.18362
  • Docker Desktop Version: 2.2.0.0
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Steps to reproduce the behavior

  1. Create a new SAM application in VS Code or SAM init, The runtime is not important, the problems happen in ALL runtimes.
  2. Click "Debug Locally" (Code lens in VS Code)
@stephen-turner
Copy link
Contributor

Dupe of #5516.

@manucohenyashar
Copy link
Author

Issue 5516 does not provide a workaround or a solution when using tools that internally use upper case when mounting, so I think this issue should be reopened.

@stephen-turner
Copy link
Contributor

We will have a fix for #5516, we're not expecting people to rely on the workaround.

@manucohenyashar
Copy link
Author

Just got the build (ver 2.2.0.1) which fixed the issue.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants