Error copying files to remote - k0sctl 0.17.4
jsalgado78 opened this issue · 4 comments
jsalgado78 commented
I get this error message copying files to remote when I try to upgrade my K0s cluster with airgap bundle and k0sctl 0.17.4
k0sctl 0.16.0 works fine but k0sctl 0.17.4 fails copying files because of a parsing mtime error.
Running phase: Upload k0s binaries to hosts\"
level=info msg=\"[ssh] server1:22: uploading k0s binary from ./k0s-v1.29.2+k0s.0-amd64\"
level=info msg=\"[ssh] server2:22: uploading k0s binary from ./k0s-v1.29.2+k0s.0-amd64\"
level=info msg=\"* Running clean-up for phase: Acquire exclusive host lock\"
level=info msg=\"==> Apply failed\"
level=fatal msg=\"apply failed - log file saved to /home/usuario/.cache/k0sctl/k0sctl.log: failed on 2 hosts:\
- [ssh] server1:22: upload k0s binary: invalid path: open remote file /tmp/tmp.KIpeF9dTxo for writing: parse stat mtime 0x8180 0 1709558032,561808680 ///tmp/tmp.KIpeF9dTxo//: strconv.ParseInt: parsing \\\"1709558032,561808680\\\": invalid syntax\
- [ssh] server2:22: upload k0s binary: invalid path: open remote file /tmp/tmp.z0zHIsZ7Sb for writing: parse stat mtime 0x8180 0 1709558032,561635864 ///tmp/tmp.z0zHIsZ7Sb//: strconv.ParseInt: parsing \\\"1709558032,561635864\\\": invalid syntax\
...
I use k0sctl 0.17.4 on RHEL 8.8 x86_64 servers.
twz123 commented
What's the locale on the target system?
jsalgado78 commented
What's the locale on the target system?
# locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
twz123 commented
I guess the spanish locale will use a comma as a decimal separator, not a dot, right? So I indeed think that k0sproject/rig#183 might fix this.
jsalgado78 commented
Yes. Spanish uses a comma as a decimal separator