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

collect-windows-logs.ps1 throwed an error in using kubectl.exe to collect logs #4188

Open
AbelHu opened this issue Mar 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working windows

Comments

@AbelHu
Copy link
Member

AbelHu commented Mar 19, 2024

What happened:
collect-windows-logs.ps1 throwed below error.


Path C:\Windows\Minidump does not exist
Collecting logs from C:\Windows\SystemTemp
d-----         3/12/2024  11:00 AM                px4lqsv0.2fu
Collecting the information of the node and pods by kubectl
c:\k\kubectl.exe : WARNING: This version information is deprecated and will be replaced with the output from kubectl 
version --short.  Use --output=yaml|json to get the full version.
At C:\k\debug\collect-windows-logs.ps1:336 char:24
+ ...  function kubectl { c:\k\kubectl.exe --kubeconfig c:\k\config $args }
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (WARNING: This v...e full version.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
All logs collected: ...
**********************
Windows PowerShell transcript end
End time: 20240312110015
**********************

What you expected to happen:
No error.

How to reproduce it:

Anything else we need to know?:

Environment:

  • AgentBaker version:
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@AbelHu AbelHu added bug Something isn't working windows labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

No branches or pull requests

2 participants