-
Notifications
You must be signed in to change notification settings - Fork 287
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
devcontainer.json not found on disallowed WSL UNC paths #9302
Comments
I'm also experiencing this issue at the moment. Digging into the container log files, I see this:
It looks like Dev Containers extension attempts to launch with a My
There's nothing in here that has anything to do with the I'm wondering if Dev Containers could be mistaking this as an error from the |
I just ran into this issue myself. Try adding an For some reason, that works. |
Strange - I don't have any references to extensions.VerifySignature in my logs. The tail end of mine (after the userEnvProbe bits) just has
No obvious sign of problems in there at all.
Doesn't seem to help for me. |
Ah - digging about in other logfiles, I found this in exhost.log:
Adding |
Ran into this today as well on M2 Macbook Pro running ubuntu |
Hitting this today also on an M2 Macbook running Sonoma 14.2. Also running extension version |
I have this problem as well; downgrading VS Code to 1.84.2 while keeping the latest extension version fixed the problem for me. |
Can confirm, added |
I also recently ran into this issue after updating VS code while using dev containers, but the initializeCommand did not correct the issue for me without fully rebuilding my dev container with a cleared cache. |
Have the same problem! Adding |
Moving the discussion for those where adding an Keeping the discussion on @bpasero @deepak1556 Did anything change in the UNC path check with the latest release? (Comment mentioning |
Nothing changed from what I can tell. If you are accessing UNC paths in VS Code, you have to allow them via the More info in the security advisory at GHSA-mmfh-4pv3-39hr |
Can reproduce now. Something in the extension appears to have changed, investigating. |
@chrmarti one thing that might be related, Node.js worker threads didn't respect the UNC path checks and they were addressed in |
A bug fix in the extension now calls I can improve the response from the extension for this case, but to get at all devcontainer.json files, we will either need the user to allow these UNC hosts or use Remote-WSL to first connect to WSL and then open the folder from there. One can also open the UNC path in VS Code locally first and that would ask you if you want to add WSL to the allowed UNC hosts. Maybe the extension could do something similar. |
For me the reason was some VPN connection blocking Dockerhub, so this command that's run when reopening in a dev container timed out:
Exiting out of the VPN, and verifying that connecting to Dockerhub works, fixed the issue for me. |
Same here, usually starting vscode via
Using "Remote Development" extension pack v0.25.0 on vscode 1.85.1. Setting Will update if I can narrow down a bit more. |
Important fact: After logging into our container registry (where the docker image pointed to in devcontainer.json is hosted), everything worked fine. Important: There was no need to pull anything, the image was already present locally. I can't find any log at first sight that would hint at what's happening and why being able to connect to the container registry would be required despite the image's already being present. Edit 1: Colleagues running on native Linux also faced the error message in the title and could also solve by logging into the container registry. I'm not sure this helps here, maybe it's 2 different issues. |
...and yet the content took effect... :)
Yeah, it's not particularly crazy to have it ask to have the UNC path approved; my problem was having to dig about in non-obvious logfiles to find what the problem was! If it could pop up the kind of approval dialog you get when you just open the UNC path directly, that'd be fine. If that's not possible, if it could at least indicate why it can't open the file, that'd help!
Might be worth noting that this is pretty much exactly what I ended up doing, but while the UNC path can be opened once permission is granted, it doesn't seem to allow the extension to have access until VSCode is restarted. |
On my end, I had this message because I was missing a .env file, after cloning one of my template repository. Adding the expected .env file in my .devcontainer/ folder fixed the problem. |
hi, i have the same problem with linux machine. my is there a setting in vscode for linux which forbids symlinks? it looks like vscode sees the file but cannot use it. |
This did resolve the issue (added the Setup was
|
Same issue here, but the "initializeCommand" to devcontainer.json, such as "initializeCommand": "ls" is not working for me |
Fixing the UNC path issue here by detecting the case and looking up the config files through WSL. Please open separate issues for other problems. Thanks! |
Fix is available in Dev Containers extension 0.330.0-pre-release. Verification (requires WSL on Windows):
|
Adding
This fix is still not working for me and my environment is:
The Dev Containers logs:
|
@irsyadpage Could you open a new issue with the complete log? Yours might be a different bug. Thanks. |
@chrmarti I'm getting the following on my Windows device on the second-last step. |
@rzhao271 Could you try with the OS folder picker? (I.e., turn off the simple file dialog in user setting.) |
Type: Bug
Attempting to do "Open Folder in Container" on Dev Containers 0.327.0 on a folder with an existing dev container configuration file appears to get confused:
Dev Container configuration '.devcontainer/devcontainer.json' file already exists.
The dialog offers options "cancel" (which does what it says) or "continue" (which ignores the supplied configuration and tries to ask me to select a configuration template).
In case it matters, the folder I'm opening is in a WSL filesystem (opening via a path like
\\wsl$\Ubuntu-20.04\home\<me>\...\<folder>
).On extension version 0.321.0, this opened fine. Reopening the folder (in container) via the recents list works fine with either version.
Expected behaviour would be to use the supplied configuration rather than complaining about its existence and ignoring it. Could you investigate please?
Extension version: 0.327.0
VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T20:48:09.019Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: