Skip to content

Debug doesn't work with Helm on Windows #4862

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

Closed
aurelien-baumann-lacapitale opened this issue Oct 6, 2020 · 8 comments · Fixed by #4872
Closed

Debug doesn't work with Helm on Windows #4862

aurelien-baumann-lacapitale opened this issue Oct 6, 2020 · 8 comments · Fixed by #4872
Labels
area/debug kind/bug Something isn't working

Comments

@aurelien-baumann-lacapitale
Copy link

aurelien-baumann-lacapitale commented Oct 6, 2020

Expected behavior

The following command : C:\ProgramData\chocolatey\lib\skaffold\tools\skaffold.exe debug --filename skaffold.yaml --rpc-port 50051 --port-forward=true --enable-rpc=true should work on Windows 10 with helm deployer.

Actual behavior

The command produces the following error:

Error: error while running post render on files: error while running command C:\ProgramData\chocolatey\lib\skaffold\tools\skaffold.exe. error output:                                                                                                                          
invalid argument "C:UsersMYUSER~1.ROBAppDataLocalTempbuilds132295643.yaml" for "-a, --build-artifacts" flag: CreateFile C:UsersMYUSER~1.ROBAppDataLocalTempbuilds132295643.yaml: Le fichier spécifié est introuvable.                                                          
See 'skaffold filter --help' for usage.                                                                                                                                                                                                                                        
: exit status 1                                                                                                                                                                                                                                                                
Cleaning up...                                                                                                                                                                                                                                                                 
Error: uninstall: Release not loaded: my-app: release: not found                                                                                                                                                                                                       
time="2020-10-06T16:34:38-04:00" level=warning msg="deployer cleanup: deleting \"my-app\": exit status 1"                                                                                                                                                              
exiting dev mode because first deploy failed: deploying "my-app": install: exit status 1                                               

Information

  • Skaffold version: v1.15.0
  • Helm version: v3.3.4
  • Operating system: Windows 10 pro
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2beta7
kind: Config
metadata:
  name: gfi-comparator
build:
  artifacts:
  - image: gfi-comparator
    sync:
      infer:
        - pom.xml
        - src/main/**/*
deploy:
  helm:
    releases:
      - name: gfi-comparator
        chartPath: kubernetes/gfi-comparator
        artifactOverrides:
          imageOverride: gfi-comparator
        valuesFiles:
          - kubernetes/values/local.yaml

Steps to reproduce the behavior

The error only occurs on Windows and only when using Helm deployer.
Maybe it has something to do with the quite odd path C:UsersMYUSER~1AppDataLocalTempbuilds132295643.yaml.

As debug support for Helm was recently merged, maybe @nkubala would have an idea about it? 🙂

@gsquared94 gsquared94 added area/debug kind/bug Something isn't working labels Oct 7, 2020
@briandealwis
Copy link
Member

briandealwis commented Oct 7, 2020

Are you using bash on Windows?

As part of the support, we recursively invoke Skaffold to apply some filters to the Helm-rendered output. We write out the list of the built artifacts to a file that is passed into this recursed skaffold.

@aurelien-baumann-lacapitale
Copy link
Author

Hey @briandealwis!

I tried with both cmd.exe and git bash and it produced the same results 😔

The path to the built artifacts seems wrong, I tried to find out where it is generated in the code, without success.
I'll give it a bit more time later if I can.

Until then any ideas are welcome 👍🙂

@briandealwis
Copy link
Member

@aurelien-baumann-lacapitale the relevant code is here. Would you mind running skaffold debug -v debug ... and post the full redacted logs here?

@aurelien-baumann-lacapitale
Copy link
Author

aurelien-baumann-lacapitale commented Oct 7, 2020

Here it is.
I had to replace some private names, hope it's ok:

time="2020-10-07T15:32:24-04:00" level=info msg="Skaffold &{Version:v1.15.0 ConfigVersion:skaffold/v2beta8 GitVersion: GitCommit:c4dce04b0d692dce61051d14cf4a2c04c8c688bd GitTreeState:clean BuildDate:2020-09-30T00:02:23Z GoVersion:go1.14.2 Compiler:gc Platform:windows/amd64}"
time="2020-10-07T15:32:24-04:00" level=info msg="Loaded Skaffold defaults from \"C:\\\\Users\\\\myuser\\\\.skaffold\\\\config\""
time="2020-10-07T15:32:24-04:00" level=debug msg="config version \"skaffold/v2beta7\" out of date: upgrading to latest \"skaffold/v2beta8\""
time="2020-10-07T15:32:24-04:00" level=debug msg="Defaulting build type to local build"
time="2020-10-07T15:32:24-04:00" level=info msg="Using kubectl context: my-local-cluster"
time="2020-10-07T15:32:24-04:00" level=debug msg="Using builder: local"
time="2020-10-07T15:32:24-04:00" level=debug msg="Running command: [C:\\ProgramData\\chocolatey\\bin\\minikube.exe profile list -o json]"
time="2020-10-07T15:32:24-04:00" level=debug msg="could not parse date \"\""
time="2020-10-07T15:32:24-04:00" level=debug msg="setting Docker user agent to skaffold-v1.15.0"
time="2020-10-07T15:32:24-04:00" level=debug msg="push value not present, defaulting to false because localCluster is true"
Listing files to watch...
 - my-project
time="2020-10-07T15:32:24-04:00" level=debug msg="Found dependencies for dockerfile: [{pom.xml /opt/build/pom.xml false} {src\\main /opt/build/src/main false}]"
time="2020-10-07T15:32:24-04:00" level=info msg="List generated in 12.998ms"
Generating tags...
 - my-project -> time="2020-10-07T15:32:24-04:00" level=debug msg="Running command: [git describe --tags --always]"
time="2020-10-07T15:32:24-04:00" level=debug msg="Command output: [1b2b006\n]"
time="2020-10-07T15:32:24-04:00" level=debug msg="Running command: [git status . --porcelain]"
time="2020-10-07T15:32:24-04:00" level=debug msg="Command output: [AA kubernetes/my-project/values.yaml\nAM output.txt\n]"
my-project:1b2b006-dirty
time="2020-10-07T15:32:24-04:00" level=info msg="Tags generated in 60.9996ms"
Checking cache...
time="2020-10-07T15:32:24-04:00" level=debug msg="Found dependencies for dockerfile: [{pom.xml /opt/build/pom.xml false} {src\\main /opt/build/src/main false}]"
 - my-project: Found Locally
time="2020-10-07T15:32:24-04:00" level=info msg="Cache check complete in 27.999ms"
Tags used in deployment:
 - my-project -> my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49
time="2020-10-07T15:32:24-04:00" level=debug msg="Local images can't be referenced by digest.\nThey are tagged and referenced by a unique, local only, tag instead.\nSee https://skaffold.dev/docs/pipeline-stages/taggers/#how-tagging-works"
time="2020-10-07T15:32:24-04:00" level=debug msg="getting client config for kubeContext: ``"
Loading images into kind cluster nodes...
 - my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 -> time="2020-10-07T15:32:24-04:00" level=debug msg="Running command: [kubectl --context my-local-cluster get nodes -ojsonpath='{@.items[*].status.images[*].names[*]}']"
time="2020-10-07T15:32:24-04:00" level=debug msg="Command output: ['docker.io/library/my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 docker.io/library/my-project:453785ad2f9780cbeefaca2602e4ad3559fd7f82e3ecb17ae868155218656350 docker.io/library/my-project:dfeeaef801bbaa62c4e11b9cfbf63b3880dea84459cd358855d0cd89d27c9524 k8s.gcr.io/etcd:3.3.15-0 docker.io/library/mysql@sha256:32f9d9a069f7a735e28fd44ea944d53c61f990ba71460c5c183e610854ca4854 docker.io/library/mysql:5.7.30 docker.io/bitnami/phpmyadmin@sha256:8a497feb59a932ddd12c480fc2cbc64edfea249c6b4148e31cac84703f291ba5 docker.io/bitnami/phpmyadmin:5.0.1-debian-10-r47 k8s.gcr.io/kube-apiserver:v1.16.15 k8s.gcr.io/kube-proxy:v1.16.15 k8s.gcr.io/kube-controller-manager:v1.16.15 docker.io/kindest/kindnetd:v20200725-4d6bea59 k8s.gcr.io/kube-scheduler:v1.16.15 k8s.gcr.io/build-image/debian-base:v2.1.0 k8s.gcr.io/coredns:1.6.2 docker.io/rancher/local-path-provisioner:v0.0.14 docker.io/library/busybox@sha256:d366a4665ab44f0648d7a00ae3fae139d55e32f9712c67accd604bb55df9d05a docker.io/library/busybox:1.32 k8s.gcr.io/pause:3.3']"
time="2020-10-07T15:32:24-04:00" level=debug msg="Running command: [kind load docker-image --name my-local-cluster my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49]"
time="2020-10-07T15:32:26-04:00" level=debug msg="Command output: []"
Loaded
Images loaded in 2.1161865s
Starting deploy...
time="2020-10-07T15:32:26-04:00" level=debug msg="Running command: [helm version --client]"
time="2020-10-07T15:32:26-04:00" level=info msg="Deploying with helm v3.3.4 ..."
time="2020-10-07T15:32:26-04:00" level=debug msg="Executing template &{envTemplate 0xc00062a400 0xc00069a1c0  } with environment map[:::=::\\ ALLUSERSPROFILE:C:\\ProgramData APPDATA:C:\\Users\\myuser\\AppData\\Roaming COMMONPROGRAMFILES:C:\\Program Files\\Common Files COMPUTERNAME:VROBERGE COMSPEC:C:\\Windows\\system32\\cmd.exe ChocolateyInstall:C:\\ProgramData\\chocolatey ChocolateyLastPathUpdate:jeu. févr. 21 08:32:02 2019 CommonProgramFiles(x86):C:\\Program Files (x86)\\Common Files CommonProgramW6432:C:\\Program Files\\Common Files DriverData:C:\\Windows\\System32\\Drivers\\DriverData EXEPATH:C:\\Program Files\\Git\\bin HOME:C:\\Users\\myuser HOMEDRIVE:C: HOMEPATH:\\Users\\myuser IDEA_INITIAL_DIRECTORY:C:\\Windows\\system32 IntelliJ IDEA Community Edition:C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin; JAVA_HOME:C:\\Program Files\\Java\\jdk-11.0.1 LOCALAPPDATA:C:\\Users\\myuser\\AppData\\Local LOGONSERVER:\\\\TSC-SERV-03 MCPC8_CLIENT_PATH:C:\\Program Files (x86)\\Bell Canada\\Bell Connexion totale/Communicator.exe MSYSTEM:MINGW64 NUMBER_OF_PROCESSORS:12 OS:Windows_NT OneDrive:C:\\Users\\myuser\\Some Company OneDriveCommercial:C:\\Users\\myuser\\Some Company PATH:C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\myuser\\bin;C:\\Python38\\Scripts;C:\\Python38;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\myuser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Java\\jdk-10.0.2\\bin;C:\\Program Files\\apache-maven-3.6.0\\bin;C:\\Program Files\\MongoDB\\Server\\4.0\\bin;C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\myuser\\AppData\\Roaming\\npm;C:\\Users\\myuser\\AppData\\Local\\Yarn\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW PLINK_PROTOCOL:ssh PROCESSOR_ARCHITECTURE:AMD64 PROCESSOR_IDENTIFIER:Intel64 Family 6 Model 158 Stepping 10, GenuineIntel PROCESSOR_LEVEL:6 PROCESSOR_REVISION:9e0a PROGRAMFILES:C:\\Program Files PS1:\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$  PSModulePath:C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules PUBLIC:C:\\Users\\Public PWD:C:/Users/myuser/repositories/my-project ProgramData:C:\\ProgramData ProgramFiles(x86):C:\\Program Files (x86) ProgramW6432:C:\\Program Files SESSIONNAME:Console SHLVL:1 SYSTEMDRIVE:C: SYSTEMROOT:C:\\Windows TEMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp TERM:cygwin TERMINAL_EMULATOR:JetBrains-JediTerm TMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp USERDNSDOMAIN:TECHSOLCOM.LOCAL USERDOMAIN:TECHSOLCOM USERDOMAIN_ROAMINGPROFILE:TECHSOLCOM USERNAME:myuser USERPROFILE:C:\\Users\\myuser VBOX_MSI_INSTALL_PATH:C:\\Program Files\\Oracle\\VirtualBox\\ WINDIR:C:\\Windows _:C:/ProgramData/chocolatey/bin/skaffold __INTELLIJ_COMMAND_HISTFILE__:C:\\Users\\myuser\\AppData\\Roaming\\JetBrains\\IdeaIC2020.2\\terminal\\history\\history-11]"
time="2020-10-07T15:32:26-04:00" level=debug msg="Running command: [helm --kube-context my-local-cluster get all my-project]"
Helm release my-project not installed. Installing...
time="2020-10-07T15:32:27-04:00" level=info msg="Building helm dependencies..."
time="2020-10-07T15:32:27-04:00" level=debug msg="Running command: [helm --kube-context my-local-cluster dep build kubernetes/my-project]"
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 2 charts
Downloading mysql from repo https://kubernetes-charts.storage.googleapis.com
Downloading phpmyadmin from repo https://charts.bitnami.com/bitnami
Deleting outdated charts
time="2020-10-07T15:32:33-04:00" level=debug msg="EnvVarMap: map[DIGEST:my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 DIGEST_ALGO:my-project DIGEST_HEX:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 IMAGE_DIGEST: IMAGE_NAME:my-project IMAGE_REPO:my-project IMAGE_TAG:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49]\n"
time="2020-10-07T15:32:33-04:00" level=debug msg="Executing template &{envTemplate 0xc00061a000 0xc000a062c0  } with environment map[:::=::\\ ALLUSERSPROFILE:C:\\ProgramData APPDATA:C:\\Users\\myuser\\AppData\\Roaming COMMONPROGRAMFILES:C:\\Program Files\\Common Files COMPUTERNAME:VROBERGE COMSPEC:C:\\Windows\\system32\\cmd.exe ChocolateyInstall:C:\\ProgramData\\chocolatey ChocolateyLastPathUpdate:jeu. févr. 21 08:32:02 2019 CommonProgramFiles(x86):C:\\Program Files (x86)\\Common Files CommonProgramW6432:C:\\Program Files\\Common Files DIGEST:my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 DIGEST_ALGO:my-project DIGEST_HEX:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 DriverData:C:\\Windows\\System32\\Drivers\\DriverData EXEPATH:C:\\Program Files\\Git\\bin HOME:C:\\Users\\myuser HOMEDRIVE:C: HOMEPATH:\\Users\\myuser IDEA_INITIAL_DIRECTORY:C:\\Windows\\system32 IMAGE_DIGEST: IMAGE_NAME:my-project IMAGE_REPO:my-project IMAGE_TAG:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 IntelliJ IDEA Community Edition:C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin; JAVA_HOME:C:\\Program Files\\Java\\jdk-11.0.1 LOCALAPPDATA:C:\\Users\\myuser\\AppData\\Local LOGONSERVER:\\\\TSC-SERV-03 MCPC8_CLIENT_PATH:C:\\Program Files (x86)\\Bell Canada\\Bell Connexion totale/Communicator.exe MSYSTEM:MINGW64 NUMBER_OF_PROCESSORS:12 OS:Windows_NT OneDrive:C:\\Users\\myuser\\Some Company OneDriveCommercial:C:\\Users\\myuser\\Some Company PATH:C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\myuser\\bin;C:\\Python38\\Scripts;C:\\Python38;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\myuser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Java\\jdk-10.0.2\\bin;C:\\Program Files\\apache-maven-3.6.0\\bin;C:\\Program Files\\MongoDB\\Server\\4.0\\bin;C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\myuser\\AppData\\Roaming\\npm;C:\\Users\\myuser\\AppData\\Local\\Yarn\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW PLINK_PROTOCOL:ssh PROCESSOR_ARCHITECTURE:AMD64 PROCESSOR_IDENTIFIER:Intel64 Family 6 Model 158 Stepping 10, GenuineIntel PROCESSOR_LEVEL:6 PROCESSOR_REVISION:9e0a PROGRAMFILES:C:\\Program Files PS1:\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$  PSModulePath:C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules PUBLIC:C:\\Users\\Public PWD:C:/Users/myuser/repositories/my-project ProgramData:C:\\ProgramData ProgramFiles(x86):C:\\Program Files (x86) ProgramW6432:C:\\Program Files SESSIONNAME:Console SHLVL:1 SYSTEMDRIVE:C: SYSTEMROOT:C:\\Windows TEMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp TERM:cygwin TERMINAL_EMULATOR:JetBrains-JediTerm TMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp USERDNSDOMAIN:TECHSOLCOM.LOCAL USERDOMAIN:TECHSOLCOM USERDOMAIN_ROAMINGPROFILE:TECHSOLCOM USERNAME:myuser USERPROFILE:C:\\Users\\myuser VBOX_MSI_INSTALL_PATH:C:\\Program Files\\Oracle\\VirtualBox\\ WINDIR:C:\\Windows _:C:/ProgramData/chocolatey/bin/skaffold __INTELLIJ_COMMAND_HISTFILE__:C:\\Users\\myuser\\AppData\\Roaming\\JetBrains\\IdeaIC2020.2\\terminal\\history\\history-11]"
time="2020-10-07T15:32:33-04:00" level=debug msg="Running command: [helm --kube-context my-local-cluster install my-project --post-renderer C:\\ProgramData\\chocolatey\\lib\\skaffold\\tools\\skaffold.exe kubernetes/my-project --set-string imageOverride=my-project:cbe899bbac8df166ddcac336a456b9f3c54b2ac0216454894f8d160f84b8fa49 -f kubernetes/values/local.yaml]"
Error: error while running post render on files: error while running command C:\ProgramData\chocolatey\lib\skaffold\tools\skaffold.exe. error output:
invalid argument "C:UsersMYUSER~1AppDataLocalTempbuilds047971951.yaml" for "-a, --build-artifacts" flag: CreateFile C:UsersMYUSER~1AppDataLocalTempbuilds047971951.yaml: Le fichier spécifié est introuvable.
See 'skaffold filter --help' for usage.
: exit status 1
time="2020-10-07T15:32:34-04:00" level=debug msg="Executing template &{envTemplate 0xc00061a600 0xc000a064c0  } with environment map[:::=::\\ ALLUSERSPROFILE:C:\\ProgramData APPDATA:C:\\Users\\myuser\\AppData\\Roaming COMMONPROGRAMFILES:C:\\Program Files\\Common Files COMPUTERNAME:VROBERGE COMSPEC:C:\\Windows\\system32\\cmd.exe ChocolateyInstall:C:\\ProgramData\\chocolatey ChocolateyLastPathUpdate:jeu. févr. 21 08:32:02 2019 CommonProgramFiles(x86):C:\\Program Files (x86)\\Common Files CommonProgramW6432:C:\\Program Files\\Common Files DriverData:C:\\Windows\\System32\\Drivers\\DriverData EXEPATH:C:\\Program Files\\Git\\bin HOME:C:\\Users\\myuser HOMEDRIVE:C: HOMEPATH:\\Users\\myuser IDEA_INITIAL_DIRECTORY:C:\\Windows\\system32 IntelliJ IDEA Community Edition:C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin; JAVA_HOME:C:\\Program Files\\Java\\jdk-11.0.1 LOCALAPPDATA:C:\\Users\\myuser\\AppData\\Local LOGONSERVER:\\\\TSC-SERV-03 MCPC8_CLIENT_PATH:C:\\Program Files (x86)\\Bell Canada\\Bell Connexion totale/Communicator.exe MSYSTEM:MINGW64 NUMBER_OF_PROCESSORS:12 OS:Windows_NT OneDrive:C:\\Users\\myuser\\Some Company OneDriveCommercial:C:\\Users\\myuser\\Some Company PATH:C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\myuser\\bin;C:\\Python38\\Scripts;C:\\Python38;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\myuser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Java\\jdk-10.0.2\\bin;C:\\Program Files\\apache-maven-3.6.0\\bin;C:\\Program Files\\MongoDB\\Server\\4.0\\bin;C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\myuser\\AppData\\Roaming\\npm;C:\\Users\\myuser\\AppData\\Local\\Yarn\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW PLINK_PROTOCOL:ssh PROCESSOR_ARCHITECTURE:AMD64 PROCESSOR_IDENTIFIER:Intel64 Family 6 Model 158 Stepping 10, GenuineIntel PROCESSOR_LEVEL:6 PROCESSOR_REVISION:9e0a PROGRAMFILES:C:\\Program Files PS1:\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$  PSModulePath:C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules PUBLIC:C:\\Users\\Public PWD:C:/Users/myuser/repositories/my-project ProgramData:C:\\ProgramData ProgramFiles(x86):C:\\Program Files (x86) ProgramW6432:C:\\Program Files SESSIONNAME:Console SHLVL:1 SYSTEMDRIVE:C: SYSTEMROOT:C:\\Windows TEMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp TERM:cygwin TERMINAL_EMULATOR:JetBrains-JediTerm TMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp USERDNSDOMAIN:TECHSOLCOM.LOCAL USERDOMAIN:TECHSOLCOM USERDOMAIN_ROAMINGPROFILE:TECHSOLCOM USERNAME:myuser USERPROFILE:C:\\Users\\myuser VBOX_MSI_INSTALL_PATH:C:\\Program Files\\Oracle\\VirtualBox\\ WINDIR:C:\\Windows _:C:/ProgramData/chocolatey/bin/skaffold __INTELLIJ_COMMAND_HISTFILE__:C:\\Users\\myuser\\AppData\\Roaming\\JetBrains\\IdeaIC2020.2\\terminal\\history\\history-11]"
Cleaning up...
time="2020-10-07T15:32:34-04:00" level=debug msg="Executing template &{envTemplate 0xc00061a900 0xc000a069c0  } with environment map[:::=::\\ ALLUSERSPROFILE:C:\\ProgramData APPDATA:C:\\Users\\myuser\\AppData\\Roaming COMMONPROGRAMFILES:C:\\Program Files\\Common Files COMPUTERNAME:VROBERGE COMSPEC:C:\\Windows\\system32\\cmd.exe ChocolateyInstall:C:\\ProgramData\\chocolatey ChocolateyLastPathUpdate:jeu. févr. 21 08:32:02 2019 CommonProgramFiles(x86):C:\\Program Files (x86)\\Common Files CommonProgramW6432:C:\\Program Files\\Common Files DriverData:C:\\Windows\\System32\\Drivers\\DriverData EXEPATH:C:\\Program Files\\Git\\bin HOME:C:\\Users\\myuser HOMEDRIVE:C: HOMEPATH:\\Users\\myuser IDEA_INITIAL_DIRECTORY:C:\\Windows\\system32 IntelliJ IDEA Community Edition:C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin; JAVA_HOME:C:\\Program Files\\Java\\jdk-11.0.1 LOCALAPPDATA:C:\\Users\\myuser\\AppData\\Local LOGONSERVER:\\\\TSC-SERV-03 MCPC8_CLIENT_PATH:C:\\Program Files (x86)\\Bell Canada\\Bell Connexion totale/Communicator.exe MSYSTEM:MINGW64 NUMBER_OF_PROCESSORS:12 OS:Windows_NT OneDrive:C:\\Users\\myuser\\Some Company OneDriveCommercial:C:\\Users\\myuser\\Some Company PATH:C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\myuser\\bin;C:\\Python38\\Scripts;C:\\Python38;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\myuser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Java\\jdk-10.0.2\\bin;C:\\Program Files\\apache-maven-3.6.0\\bin;C:\\Program Files\\MongoDB\\Server\\4.0\\bin;C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\myuser\\AppData\\Roaming\\npm;C:\\Users\\myuser\\AppData\\Local\\Yarn\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2020.2\\bin PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW PLINK_PROTOCOL:ssh PROCESSOR_ARCHITECTURE:AMD64 PROCESSOR_IDENTIFIER:Intel64 Family 6 Model 158 Stepping 10, GenuineIntel PROCESSOR_LEVEL:6 PROCESSOR_REVISION:9e0a PROGRAMFILES:C:\\Program Files PS1:\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$  PSModulePath:C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules PUBLIC:C:\\Users\\Public PWD:C:/Users/myuser/repositories/my-project ProgramData:C:\\ProgramData ProgramFiles(x86):C:\\Program Files (x86) ProgramW6432:C:\\Program Files SESSIONNAME:Console SHLVL:1 SYSTEMDRIVE:C: SYSTEMROOT:C:\\Windows TEMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp TERM:cygwin TERMINAL_EMULATOR:JetBrains-JediTerm TMP:C:\\Users\\MYUSER~1\\AppData\\Local\\Temp USERDNSDOMAIN:TECHSOLCOM.LOCAL USERDOMAIN:TECHSOLCOM USERDOMAIN_ROAMINGPROFILE:TECHSOLCOM USERNAME:myuser USERPROFILE:C:\\Users\\myuser VBOX_MSI_INSTALL_PATH:C:\\Program Files\\Oracle\\VirtualBox\\ WINDIR:C:\\Windows _:C:/ProgramData/chocolatey/bin/skaffold __INTELLIJ_COMMAND_HISTFILE__:C:\\Users\\myuser\\AppData\\Roaming\\JetBrains\\IdeaIC2020.2\\terminal\\history\\history-11]"
time="2020-10-07T15:32:34-04:00" level=debug msg="Running command: [helm --kube-context my-local-cluster delete my-project]"
Error: uninstall: Release not loaded: my-project: release: not found
time="2020-10-07T15:32:34-04:00" level=warning msg="deployer cleanup: deleting \"my-project\": exit status 1"
exiting dev mode because first deploy failed: deploying "my-project": install: exit status 1

@aurelien-baumann-lacapitale
Copy link
Author

Also running these commands in cmd.exe:

echo %TMP%
echo %TEMP%
echo %USERPROFILE%

outputs:

C:\Users\MYUSER~1\AppData\Local\Temp
C:\Users\MYUSER~1\AppData\Local\Temp
C:\Users\myuser

@briandealwis
Copy link
Member

So there should be a SKAFFOLD_CMDLINE environment variable listed in the EnvVarMap shown before running helm install --post-renderer .../skaffold.exe ..., but clearly it has been defined given the error message from skaffold filter --help.

The problem is that the backslashes in the Windows path name passed to skaffold filter --build-artifacts are being interpreted by the use of shell.Split():

parsed, err := shell.Split(cmdLine)

but I'm joining them using shell.Join():
env["SKAFFOLD_CMDLINE"] = strings.Join(cmdLine, " ")

🤦

@aurelien-baumann-lacapitale
Copy link
Author

Oh I get it...

It doesn't sound like good news as github.com/kballard/go-shellquote seems to be used in a pretty hot place of the codebase 🤭

Is there something I can to do to help?

@aurelien-baumann-lacapitale
Copy link
Author

Ok you code faster than I type comments 🤠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/debug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants