tmaestrini / easyGovernance

governance and validation for configuration baselines in M365 – made as easy as possible
MIT License
11 stars 4 forks source link

Can't open project in container #33

Open sympmarc opened 3 weeks ago

sympmarc commented 3 weeks ago

I'm probably doing something dumb, but I'm not afraid to admit it! When I try to open the project in a container, that process fails. Here's the full log, but the specific failure is in the last few lines, where it says that c:/code/Governance/easyGovernance doesn't exist. That's definitely where I have the repo in my laptop.

This hasn't ever worked for me, but I've just ignored it. Since the set of dependencies continues to expand, it seems worth getting it working.

[1398 ms] Dev Containers 0.369.0 in VS Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573).
[1397 ms] Start: Run: wsl -l -v
[2134 ms] Start: Run: wsl -d Ubuntu -e wslpath -u c:\code\Governance\easyGovernance
[2645 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/mnt/c/code/Governance/easyGovernance' && /bin/sh
[2671 ms] Start: Run in host: id -un
[3096 ms] devcontainers
[3097 ms] 
[3097 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'devcontainers' || grep -E '^devcontainers|^[^:]*:[^:]*:devcontainers:' /etc/passwd || true)
[3109 ms] Start: Run in host: echo ~
[3210 ms] /home/devcontainers
[3211 ms] 
[3212 ms] Start: Run in host: test -f '/home/devcontainers/.vscode-server/cli/servers/Stable-89de5a8d4d6205e5b11647eb6a74844ca23d2573/server/node'
[3221 ms] 
[3221 ms] 
[3221 ms] Exit code 1
[3222 ms] Start: Run in host: test -f '/home/devcontainers/.vscode/cli/servers/Stable-89de5a8d4d6205e5b11647eb6a74844ca23d2573/server/node'
[3240 ms] 
[3240 ms] 
[3241 ms] Exit code 1
[3242 ms] Start: Run in host: test -f '/home/devcontainers/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node'
[3255 ms] 
[3256 ms] 
[3256 ms] Exit code 1
[3257 ms] Start: Run in host: test -f '/home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node'
[3262 ms] 
[3262 ms] 
[3263 ms] Exit code 1
[3264 ms] Start: Run in host: uname -s
[3275 ms] Linux
[3276 ms] 
[3277 ms] Start: Run in host: uname -m
[3301 ms] x86_64
[3302 ms] 
[3302 ms] Start: Run in host: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[3337 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[3338 ms] 
[4957 ms] Start: Installing VS Code Server
[4957 ms] Start: Run in host: mkdir -p /home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573_1717685346823
[4971 ms] 
[4972 ms] 
[4972 ms] Start: Run in host: (dd iflag=fullblock bs=8192 count=11781; dd iflag=fullblock bs=5632 count=1) | tar --no-same-owner -x -C /home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573_1717685346823
[6032 ms] 11781+0 records in
11781+0 records out
96509952 bytes (97 MB, 92 MiB) copied, 1.05753 s, 91.3 MB/s
[6040 ms] 1+0 records in
1+0 records out
5632 bytes (5.6 kB, 5.5 KiB) copied, 0.00686074 s, 821 kB/s
[6040 ms] 
[6041 ms] 
[6041 ms] Start: Run in host: mv -n /home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573_1717685346823/* /home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573 && rmdir /home/devcontainers/.vscode-remote-containers/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573_1717685346823
[6054 ms] 
[6055 ms] 
[6055 ms] Start: Run in host: test -f '/home/devcontainers/.vscode-remote-containers/dist/vscode-remote-containers-server-0.369.0.js'
[6056 ms] 
[6056 ms] 
[6056 ms] Exit code 1
[6057 ms] Start: Run in host: mkdir -p '/home/devcontainers/.vscode-remote-containers/dist'
[6058 ms] 
[6058 ms] 
[6059 ms] Start: Run in host: cat <<'EOF-/home/devcontainers/.vscode-remote-containers/dist/vscode-remote-containers-server-0.369.0.js' >/home/devcontainers/.vscode-remote-containers/dist/vscode-remote-containers-server-0.369.0.js_1717685347924
[6062 ms] 
[6062 ms] 
[6064 ms] userEnvProbe: loginInteractiveShell (default)
[6065 ms] userEnvProbe: not found in cache
[6065 ms] userEnvProbe shell: /usr/bin/bash
[6260 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/Common Files/Acronis/SnapAPI/:/mnt/c/Program Files (x86)/Common Files/Acronis/VirtualFile/:/mnt/c/Program Files (x86)/Common Files/Acronis/VirtualFile64/:/mnt/c/Program Files (x86)/Common Files/Acronis/FileProtector/:/mnt/c/Program Files (x86)/Common Files/Acronis/FileProtector64/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Users/MarcAnderson/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/MarcAnderson/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/MarcAnderson/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Users/MarcAnderson/AppData/Local/Programs/Fiddler:/snap/bin'
Container: None
[6352 ms] Initializing configuration support...
[6353 ms] Internal initialization of dev container support package...
[10208 ms] Start: Run in Host: docker version --format {{json .}}
[10480 ms] {"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"25.0.3","ApiVersion":"1.44","DefaultAPIVersion":"1.44","GitCommit":"4debf41","GoVersion":"go1.21.6","Os":"linux","Arch":"amd64","BuildTime":"Tue Feb  6 21:13:09 2024","Context":"default"},"Server":{"Platform":{"Name":"Docker Engine - Community"},"Components":[{"Name":"Engine","Version":"25.0.3","Details":{"ApiVersion":"1.44","Arch":"amd64","BuildTime":"Tue Feb  6 21:13:09 2024","Experimental":"false","GitCommit":"f417435","GoVersion":"go1.21.6","KernelVersion":"5.15.146.1-microsoft-standard-WSL2","MinAPIVersion":"1.24","Os":"linux"}},{"Name":"containerd","Version":"1.6.28","Details":{"GitCommit":"ae07eda36dd25f8a1b98dfbf587313b99c0190bb"}},{"Name":"runc","Version":"1.1.12","Details":{"GitCommit":"v1.1.12-0-g51d5e94"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"25.0.3","ApiVersion":"1.44","MinAPIVersion":"1.24","GitCommit":"f417435","GoVersion":"go1.21.6","Os":"linux","Arch":"amd64","KernelVersion":"5.15.146.1-microsoft-standard-WSL2","BuildTime":"2024-02-06T21:13:09.000000000+00:00"}}
[10482 ms] Start: Run in Host: wslpath -w c:/code/Governance/easyGovernance
[10796 ms] Command failed: ls -a c:/code/Governance/easyGovernance
[10796 ms] ls: cannot access 'c:/code/Governance/easyGovernance': No such file or directory
[10796 ms] Exit code 2
tmaestrini commented 3 weeks ago

@dako365 Could you dig into this?

dako365 commented 3 weeks ago

I have never tried to open it in a Docker container. But of course, I can have a look at it.

sympmarc commented 3 weeks ago

It may well be I've done something dumb. But it seems to be an issue with the path where I'm storing the repo: c:/code/Governance/easyGovernance

The fail is in the last three lines of the log above.

tmaestrini commented 1 week ago

@sympmarc & @dako365 We've encountered this – very strange! 🤔 – behaviour in many other scenarios which are not at all scoped or related to this project. I assume that this behaviour is either caused by a VSCode conflict with Docker integration or related to anything else. I don't guess that it is project-related. But, please keep investigating! 😃

sympmarc commented 1 week ago

@tmaestrini It's possible I've solved this. Is it true that - before I can use the Dockerfile image - I have the right click on it and Build image?

sympmarc commented 1 week ago

I'm testing the develop branch and getting some errors, and I'm not sure if it's related to Docker or not. (I think not.) Might be easiest if I could show you what's happening.