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

Db get failed for "" #284

Closed
willyw0nka opened this issue Feb 20, 2024 · 1 comment
Closed

Db get failed for "" #284

willyw0nka opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working in progress

Comments

@willyw0nka
Copy link




Describe the bug
Running popeye shows the error Boom! Db get failed for "": invalid table '' (see logs)

To Reproduce
Steps to reproduce the behavior:

$ popeye -n app
 ___     ___ _____   _____                       D          .-'-.     
| _ \___| _ \ __\ \ / / __|                       O     __| K    `\  
|  _/ _ \  _/ _| \ V /| _|                         H   `-,-`--._   `\
|_| \___/_| |___| |_| |___|                       []  .->'  X     `|-'
  Biffs`em and Buffs`em!                            `=/ (__/_       /  
                                                      \_,    `    _)  
                                                         `----;  |     


Boom! Db get failed for "": invalid table '' (see logs)

Expected behavior
Popeye output is expected

Versions (please complete the following information):

  • OS: Ubuntu 22.04.2
  • Popeye 0.20.2
  • K8s v1.25.13+rke2r1

Additional context
Logs written to /tmp/popeye.log

12:03PM DBG Connecting to API Server https://[REDACTED]
12:03PM DBG No label selector found in context. Listing all resources
12:03PM ERR Db get failed for "": invalid table ''
12:03PM ERR goroutine 99 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x5e
github.com/derailed/popeye/pkg.BailOut({0x224c640, 0xc0009acd00})
	github.com/derailed/popeye/pkg/helpers.go:22 +0x10f
github.com/derailed/popeye/pkg.(*Popeye).runLinter.func1()
	github.com/derailed/popeye/pkg/popeye.go:274 +0x7e
panic({0x1bda7c0?, 0xc0009acd00?})
	runtime/panic.go:770 +0x132
github.com/derailed/popeye/internal/db.(*DB).MustITFor(0x0?, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}, ...})
	github.com/derailed/popeye/internal/db/db.go:58 +0x138
github.com/derailed/popeye/internal/lint.(*Gateway).checkRefs(0xc00098db78, {0x22689d8, 0xc0009eac30}, 0xc000746820)
	github.com/derailed/popeye/internal/lint/gw.go:52 +0x129
github.com/derailed/popeye/internal/lint.(*Gateway).Lint(0xc00098db78, {0x22689d8, 0xc000738a80})
	github.com/derailed/popeye/internal/lint/gw.go:43 +0x233
github.com/derailed/popeye/internal/scrub.(*Gateway).Lint(0xc0005ee220, {0x22689d8, 0xc000738a80})
	github.com/derailed/popeye/internal/scrub/gw.go:45 +0x288
github.com/derailed/popeye/pkg.(*Popeye).runLinter(0xc0000b9440, {0x22689d8?, 0xc000738a80?}, {{0xc0004c9dd0, 0x24}, {0xc000481f00, 0x13}, {0xc000481f14, 0x7}, {0xc0005e0ab8, ...}, ...}, ...)
	github.com/derailed/popeye/pkg/popeye.go:278 +0x79
created by github.com/derailed/popeye/pkg.(*Popeye).lint in goroutine 1
	github.com/derailed/popeye/pkg/popeye.go:249 +0x905



@derailed derailed added bug Something isn't working in progress labels Feb 20, 2024
@derailed
Copy link
Owner

@willyw0nka Thanks for the heads up Albert! Hopefully we're happier in v0.20.3...

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

No branches or pull requests

2 participants