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

Clone Repository in Container Volume does nothing #10092

Closed
akinevz0 opened this issue Jul 24, 2024 · 8 comments
Closed

Clone Repository in Container Volume does nothing #10092

akinevz0 opened this issue Jul 24, 2024 · 8 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@akinevz0
Copy link

Type: Bug

Create a project in C:\users~\Documents
Ctrl-Shift-P -> Rebuild and Reopen in Container
Initialise a git repository
Push repository to github
Close and delete container
Press Clone Repository in Container Volume
Select repository in the dropdown
Select main
Produces no output in Output>Git, Output>Github, and Output>Github Pull Request

Extension version: 0.378.0
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabled
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.83GB (10.57GB free)
Process Argv --crash-reporter-id c28fced8-442a-4199-8fcb-e430a3a1ba78
Screen Reader no
VM 0%
Item Value
Remote Dev Container: Anaconda (Python 3)
OS Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 x 0)
Memory (System) 15.54GB (13.74GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
refactorc:31101458
ccplt:31098110
hdi1a554:31097393

@akinevz0
Copy link
Author

Opening a Remote Repository does work

@akinevz0
Copy link
Author

akinevz0 commented Jul 24, 2024

Selecting Continue Working in New Local Clone does work, opens prompt for local container, and opens the window.

@akinevz0
Copy link
Author

akinevz0 commented Jul 24, 2024

Clicking Reopen in Container gives "An error occurred setting up the container".

image

Terminal output is as follows:

image

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Jul 24, 2024
@chrmarti
Copy link
Contributor

Please append the Dev Containers log from when this happens. (F1 > Dev Containers: Show Container Log)

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jul 25, 2024
@akinevz0
Copy link
Author

[653 ms] Initializing configuration support...
[653 ms] Internal initialization of dev container support package...
[10605 ms] Start: Run in Host: docker version --format {{json .}}
[10622 ms] 
The command 'docker' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/

[10624 ms] Exit code 1
[10632 ms] Start: Run: C:\Program Files\Docker\Docker\Docker Desktop.exe 
[15680 ms] Start: Run in Host: docker version --format {{json .}}
[16102 ms] {"Client":{"Version":"27.0.3","ApiVersion":"1.46","DefaultAPIVersion":"1.46","GitCommit":"7d4bcd8","GoVersion":"go1.21.11","Os":"linux","Arch":"amd64","BuildTime":"Sat Jun 29 00:01:25 2024","Context":"default"},"Server":{"Platform":{"Name":"Docker Desktop"},"Components":[{"Name":"Engine","Version":"27.0.3","Details":{"ApiVersion":"1.46","Arch":"amd64","BuildTime":"Sat Jun 29 00:02:50 2024","Experimental":"false","GitCommit":"662f78c","GoVersion":"go1.21.11","KernelVersion":"5.15.153.1-microsoft-standard-WSL2","MinAPIVersion":"1.24","Os":"linux"}},{"Name":"containerd","Version":"1.7.18","Details":{"GitCommit":"ae71819c4f5e67bb4d5ae76a6b735f29cc25774e"}},{"Name":"runc","Version":"1.7.18","Details":{"GitCommit":"v1.1.13-0-g58aa920"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"27.0.3","ApiVersion":"1.46","MinAPIVersion":"1.24","GitCommit":"662f78c","GoVersion":"go1.21.11","Os":"linux","Arch":"amd64","KernelVersion":"5.15.153.1-microsoft-standard-WSL2","BuildTime":"2024-06-29T00:02:50.000000000+00:00"}}
[20873 ms] Start: Run in Host: git ls-remote https://github.com/akinevz0/inGen.git

it appears that my default distro is being attempted to be used. I will install docker in it and report results

@akinevz0
Copy link
Author

akinevz0 commented Jul 26, 2024

I have toggled the WSL2 Integration in Docker Desktop, it has prompted me to enable a system service, then I have changed the default distro to docker-desktop. I have changed default distro to docker-desktop

I have now lost the Clone Container option in the dropdown.

[1381 ms] Dev Containers 0.379.0 in VS Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729).
[1381 ms] Start: Run: wsl -l -v
[12525 ms] Start: Run: wsl -d docker-desktop -e wslpath -u c:\Users\akine\Documents\Projects\inGen
[12614 ms] Start: Run: wsl -d docker-desktop -e /bin/sh -c cd '/mnt/host/c/Users/akine/Documents/Projects/inGen' && /bin/sh
[12618 ms] Start: Run in host: id -un
[12664 ms] root
[12664 ms] 
[12664 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)
[12667 ms] Start: Run in host: echo ~
[12667 ms] /root
[12668 ms] 
[12668 ms] Start: Run in host: test -f '/root/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/node'
[12671 ms] 
[12672 ms] 
[12672 ms] Exit code 1
[12672 ms] Start: Run in host: test -f '/root/.vscode/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/node'
[12673 ms] 
[12673 ms] 
[12673 ms] Exit code 1
[12674 ms] Start: Run in host: test -f '/root/.vscode-server/bin/f1e16e1e6214d7c44d078b1f0607b2388f29d729/node'
[12674 ms] 
[12675 ms] 
[12675 ms] Exit code 1
[12675 ms] Start: Run in host: test -f '/root/.vscode-remote-containers/bin/f1e16e1e6214d7c44d078b1f0607b2388f29d729/node'
[12677 ms] 
[12677 ms] 
[12677 ms] Start: Run in host: test -f '/root/.vscode-remote-containers/bin/f1e16e1e6214d7c44d078b1f0607b2388f29d729/node_modules/node-pty/package.json'
[12678 ms] 
[12678 ms] 
[12678 ms] Start: Run in host: test -f '/root/.vscode-remote-containers/dist/vscode-remote-containers-server-0.379.0.js'
[12679 ms] 
[12679 ms] 
[12680 ms] userEnvProbe: loginInteractiveShell (default)
[12680 ms] userEnvProbe: not found in cache
[12680 ms] userEnvProbe shell: /bin/sh
[12682 ms] Host server: /bin/sh: /root/.vscode-remote-containers/bin/f1e16e1e6214d7c44d078b1f0607b2388f29d729/node: not found
[12707 ms] Error reading shell environment.
[12708 ms] Error: stream ended with:0 but wanted:9
    at l (c:\Users\akine\.vscode\extensions\ms-vscode-remote.remote-containers-0.379.0\dist\extension\extension.js:27:22149)
    at c:\Users\akine\.vscode\extensions\ms-vscode-remote.remote-containers-0.379.0\dist\extension\extension.js:27:22330
    at s (c:\Users\akine\.vscode\extensions\ms-vscode-remote.remote-containers-0.379.0\dist\extension\extension.js:30:5371)
    at Socket.<anonymous> (c:\Users\akine\.vscode\extensions\ms-vscode-remote.remote-containers-0.379.0\dist\extension\extension.js:30:5541)
    at Socket.emit (node:events:526:35)
    at Socket.emit (node:domain:488:12)
    at endReadableNT (node:internal/streams/readable:1408:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[12710 ms] Host server terminated (code: 127, signal: null).

@akinevz0
Copy link
Author

I have fixed the issue, by uninstalling docker desktop, and ensuring that my debian install is using stable release. I have then reinstalled docker desktop through VSCode and was able to clone the repository

@akinevz0
Copy link
Author

I have further located the troublesome setting I had enabled previously that was causing this issue.

Dev>Containers: Execute in WSL was causing the issues

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants