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

Popeye stopped working #1565

Closed
antimius opened this issue May 20, 2022 · 8 comments
Closed

Popeye stopped working #1565

antimius opened this issue May 20, 2022 · 8 comments

Comments

@antimius
Copy link




Describe the bug
The popeye view doesn't work anymore, it seems v0.9.8 crashes on my k8s version and needs an upgrade to v0.10.0.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ':popeye' on a k8s cluster that's v1.23+

Versions (please complete the following information):

  • OS: MacOS 12.3.1
  • K9s: 0.25.18
  • K8s: v1.23.6+k3s1

Additional context
Add any other context about the problem here.

@hholst80
Copy link

Works fine on my K3s cluster.

@hholst80
Copy link

~
❯ k9s version
 ____  __.________       
|    |/ _/   __   \______
|      < \____    /  ___/
|    |  \   /    /\___ \ 
|____|__ \ /____//____  >
        \/            \/ 

Version:    v0.25.18
Commit:     6085039f83cd5e8528c898cc1538f5b3287ce117
Date:       2021-12-28T16:53:21Z

~
❯ k version
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.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.6+k3s1", GitCommit:"418c3fa858b69b12b9cefbcff0526f666a6236b9", GitTreeState:"clean", BuildDate:"2022-04-28T22:16:18Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}

~
❯ 

@antimius
Copy link
Author

I'm running k3d, and when I run popeye v0.9.8 against my cluster I get Boom! No resource meta found for autoscaling/v1/horizontalpodautoscalers, which is probably due to this: derailed/popeye#207

This led me to believe that a version upgrade for popeye in k9s would fix this issue, since v0.10.0 works well but is not the one currently used in k9s.

@hholst80
Copy link

K3d is a toy IMHO I wouldn't use it (again).

@derailed
Copy link
Owner

@antimius - Fixed v0.25.19

@ForbiddenEra
Copy link

Not working for me:

5:15AM DBG 0 -- Popeye-0xc001df01c0 -- &view.Popeye{ResourceViewer:(*view.Browser)(0xc007d27900)}
5:15AM DBG History [pods]
5:15AM ERR goroutine 1 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x5e
github.com/derailed/k9s/internal/view.(*Command).exec.func1()
        github.com/derailed/k9s/internal/view/command.go:304 +0x137
panic({0x2cca1c0?, 0xc001df0670?})
        runtime/panic.go:914 +0x21f
k8s.io/apimachinery/pkg/runtime.(*Scheme).AddKnownTypeWithName(0xc00037d110, {{0x0, 0x0}, {0x0, 0x0}, {0x33652c1, 0xa}}, {0x3e25b68?, 0xc001fca380})
        k8s.io/apimachinery@v0.29.1/pkg/runtime/scheme.go:160 +0x947
k8s.io/apimachinery/pkg/apis/meta/v1.AddToGroupVersion(0x0?, {{0x0?, 0x2cca1c0?}, {0x0?, 0x0?}})
        k8s.io/apimachinery@v0.29.1/pkg/apis/meta/v1/register.go:67 +0xf2
github.com/derailed/k9s/internal/dao.(*Table).codec(0xc0006a3580)
        github.com/derailed/k9s/internal/dao/table.go:101 +0xb5
github.com/derailed/k9s/internal/dao.(*Table).List(0xc0006a3580, {0x3e40cd0, 0xc0039f3440}, {0x0, 0x0})
        github.com/derailed/k9s/internal/dao/table.go:52 +0x116
github.com/derailed/k9s/internal/model.(*Table).list(0xc011d1add0, {0x3e40cd0, 0xc0039f3410}, {0x3e418a0, 0xc0006a3580})
        github.com/derailed/k9s/internal/model/table.go:238 +0x1ab
github.com/derailed/k9s/internal/model.(*Table).reconcile(0xc011d1add0, {0x3e40d08, 0xc00aecdc20})
        github.com/derailed/k9s/internal/model/table.go:251 +0x2ea
github.com/derailed/k9s/internal/model.(*Table).refresh(0x2ccc140?, {0x3e40d08?, 0xc00aecdc20?})
        github.com/derailed/k9s/internal/model/table.go:217 +0x8d
github.com/derailed/k9s/internal/model.(*Table).Watch(0xc011d1add0, {0x3e40d08?, 0xc00aecdc20})
        github.com/derailed/k9s/internal/model/table.go:104 +0x2b
github.com/derailed/k9s/internal/view.(*Browser).Start(0xc007d27900)
        github.com/derailed/k9s/internal/view/browser.go:148 +0x1a8
github.com/derailed/k9s/internal/view.(*PageStack).StackPushed(0xc0004e16d0, {0x7fbd347e3f58, 0xc001df01c0})
        github.com/derailed/k9s/internal/view/page_stack.go:39 +0x29
github.com/derailed/k9s/internal/model.(*Stack).notify(0xc000dae500, 0x1, {0x7fbd347e3f58, 0xc001df01c0})
        github.com/derailed/k9s/internal/model/stack.go:178 +0xd5
github.com/derailed/k9s/internal/model.(*Stack).Push(0xc000dae500, {0x7fbd347e3f58?, 0xc001df01c0})
        github.com/derailed/k9s/internal/model/stack.go:102 +0x10f
github.com/derailed/k9s/internal/view.(*App).inject(0xc0000bd140, {0x7fbd347e3f58, 0xc001df01c0}, 0x1)
        github.com/derailed/k9s/internal/view/app.go:725 +0x17d
github.com/derailed/k9s/internal/view.(*Command).exec(0xc0010323a8, 0xc0000496a0, {{0x3358095, 0x6}, {0x0, 0x0}, {0x0, 0x0}, {0x3358095, 0x6}, ...}, ...)
        github.com/derailed/k9s/internal/view/command.go:322 +0x212
github.com/derailed/k9s/internal/view.(*Command).run(0xc0010323a8, 0xc0000496a0, {0x0, 0x0}, 0x10?)
        github.com/derailed/k9s/internal/view/command.go:196 +0x698
github.com/derailed/k9s/internal/view.(*App).gotoResource(0xc0000bd140, {0xc019ece990, 0x6}, {0x0, 0x0}, 0xff?)
        github.com/derailed/k9s/internal/view/app.go:709 +0xd9
github.com/derailed/k9s/internal/view.(*App).gotoCmd(0xc0000bd140, 0xc0000497de?)
        github.com/derailed/k9s/internal/view/app.go:647 +0x86
github.com/derailed/k9s/internal/view.(*App).keyboard(0xc0000bd140, 0xc00a9c5260)
        github.com/derailed/k9s/internal/view/app.go:239 +0xf4
github.com/derailed/tview.(*Application).Run(0xc000cd8000)
        github.com/derailed/tview@v0.8.3/application.go:318 +0x3e6
github.com/derailed/k9s/internal/view.(*App).Run(0xc0000bd140)
        github.com/derailed/k9s/internal/view/app.go:551 +0x8f
github.com/derailed/k9s/cmd.run(0xc000bb2600?, {0x33545f8?, 0x4?, 0x3354518?})
        github.com/derailed/k9s/cmd/root.go:115 +0x3c5
github.com/spf13/cobra.(*Command).execute(0x5b623a0, {0xc00010e2e0, 0x2, 0x2})
        github.com/spf13/cobra@v1.8.0/command.go:983 +0xabc
github.com/spf13/cobra.(*Command).ExecuteC(0x5b623a0)
        github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/derailed/k9s/cmd.Execute()
        github.com/derailed/k9s/cmd/root.go:70 +0x1a
main.main()
        github.com/derailed/k9s/main.go:32 +0xf

@antimius
Copy link
Author

@ForbiddenEra I suspect this will be solved when this PR is merged: #2549

@ForbiddenEra
Copy link

@ForbiddenEra I suspect this will be solved when this PR is merged: #2549

Thanks for the heads-up; I'll have to check it out sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants