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

cscli support dump not working in k8s #1972

Closed
mmetc opened this issue Jan 5, 2023 · 3 comments
Closed

cscli support dump not working in k8s #1972

mmetc opened this issue Jan 5, 2023 · 3 comments
Assignees
Labels
kind/bug Something isn't working needs/triage

Comments

@mmetc
Copy link
Contributor

mmetc commented Jan 5, 2023

What happened?

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1191f93]

goroutine 1 [running]:
main.NewSupportCmd.func2(0xc0003fe780?, {0xc0001205e0?, 0x2?, 0x2?})
	/go/src/crowdsec/cmd/crowdsec-cli/support.go:312 +0x8f3
github.com/spf13/cobra.(*Command).execute(0xc0003fe780, {0xc0001205c0, 0x2, 0x2})
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:876 +0x67b
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001dd400)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:990 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:918
main.main()
	/go/src/crowdsec/cmd/crowdsec-cli/main.go:230 +0xbf6

What did you expect to happen?

it should create the zip file

How can we reproduce it (as minimally and precisely as possible)?

Install the helm chart, run "cscli support dump". Could not reproduce with Docker alone.

Anything else we need to know?

No response

Crowdsec version

1.4.4

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Enabled collections and parsers

$ cscli hub list -o raw
# paste output here

Acquisition config

```console # On Linux: $ cat /etc/crowdsec/acquis.yaml /etc/crowdsec/acquis.d/* # paste output here

On Windows:

C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml

paste output here

Config show

$ cscli config show
# paste output here

Prometheus metrics

$ cscli metrics
# paste output here

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

@mmetc mmetc added the kind/bug Something isn't working label Jan 5, 2023
@mmetc mmetc self-assigned this Jan 5, 2023
@github-actions
Copy link

github-actions bot commented Jan 5, 2023

@mmetc: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@LaurenceJJones
Copy link
Contributor

Most likely it because you have 2 pods one for agent another for lapi. They both hold different information that the support dump gathers.

@mmetc
Copy link
Contributor Author

mmetc commented Jan 7, 2025

this works after the "cscli support" rewrite - tested with 1.6.4

@mmetc mmetc closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working needs/triage
Projects
None yet
Development

No branches or pull requests

2 participants