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

redis: cluster list crash #3685

Closed
Codelax opened this issue Feb 28, 2024 · 0 comments · Fixed by #3687
Closed

redis: cluster list crash #3685

Codelax opened this issue Feb 28, 2024 · 0 comments · Fixed by #3687
Assignees
Labels
bug redis Managed Redis issues, bugs and feature requests

Comments

@Codelax
Copy link
Member

Codelax commented Feb 28, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Command attempted

> scw redis cluster list

Expected Behavior

List to work

Actual Behavior

---------------------------------------------------------------------------------------
An error occurred, we are sorry, please consider opening a ticket on github using: 'scw feedback bug'
Give us as many details as possible so we can reproduce the error and fix it.
---------------------------------------------------------------------------------------
runtime error: invalid memory address or nil pointer dereference
stacktrace from panic: 
goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
main.cleanup(0xc00027f0a0)
	/home/julescasteran/Documents/devtools/scaleway-cli/cmd/scw/main.go:42 +0xca
panic({0x1745400?, 0x2819370?})
	/usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/scaleway/scaleway-cli/v2/internal/namespaces/redis/v1.redisEndpointsClusterGetMarshalerFunc({0x1694e60?, 0xc0009a2258?}, 0x0)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/namespaces/redis/v1/custom_cluster.go:165 +0x15e
github.com/scaleway/scaleway-cli/v2/internal/human.marshalInlineSlice({0x1694e60, 0xc0009a2258, 0x97})
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/human/marshal.go:359 +0x239
github.com/scaleway/scaleway-cli/v2/internal/human.marshalSlice({0x1694f20?, 0xc0009a2240?, 0x1761d00?}, 0xc0008279a0)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/human/marshal.go:326 +0x836
github.com/scaleway/scaleway-cli/v2/internal/human.Marshal({0x1694f20, 0xc0009a2240}, 0xc0009a2240?)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/human/marshal.go:81 +0x35e
github.com/scaleway/scaleway-cli/v2/internal/core.(*Printer).printHuman(0xc0000414a0, {0x1694f20, 0xc0009a2240}, 0x0)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/core/printer.go:202 +0x198
github.com/scaleway/scaleway-cli/v2/internal/core.(*Printer).Print(0xc0000414a0, {0x1694f20?, 0xc0009a2240?}, 0x199ec87?)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/core/printer.go:159 +0xef
github.com/scaleway/scaleway-cli/v2/internal/core.Bootstrap(0xc000b07e78)
	/home/julescasteran/Documents/devtools/scaleway-cli/internal/core/bootstrap.go:281 +0x156a
main.main()
	/home/julescasteran/Documents/devtools/scaleway-cli/cmd/scw/main.go:74 +0x33f


More info

Based on master (f887258)
Here is json output:

[{"id":"9413e3dd-2a46-4b6c-a919-ac4810d610ed","name":"test_redis_basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"error","version":"7.0.5","endpoints":[{"port":6379,"public_network":{},"ips":["51.158.100.79"],"id":"62bb9b63-69f7-4701-8917-f99db6b99e86"}],"tags":["test1"],"node_type":"RED1-S","created_at":"2024-02-27T00:49:20.839198Z","updated_at":"2024-02-27T00:53:44.255673Z","tls_enabled":true,"cluster_settings":[],"acl_rules":[],"cluster_size":1,"zone":"fr-par-1","user_name":"my_initial_user","upgradable_versions":[]},{"id":"2941895e-2de3-4dd2-9001-3e101a81f37c","name":"test_redis_migrate_cluster_size_static","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"error","version":"7.0.5","endpoints":[{"port":6379,"private_network":{"id":"d0895cb1-52fc-4eea-8e59-d4c85c81390e","service_ips":["192.168.99.1/24","192.168.99.2/24","192.168.99.3/24","192.168.99.4/24","192.168.99.5/24"],"zone":"fr-par-1","provisioning_mode":"static"},"ips":["192.168.99.1","192.168.99.2","192.168.99.3","192.168.99.4","192.168.99.5"],"id":"1fccc886-2e4e-4c6b-ac17-c6cfd9b5e89b"}],"tags":[],"node_type":"RED1-XS","created_at":"2024-02-28T00:54:21.16868Z","updated_at":"2024-02-28T01:08:47.732315Z","tls_enabled":true,"cluster_settings":[],"acl_rules":[],"cluster_size":5,"zone":"fr-par-1","user_name":"my_initial_user","upgradable_versions":[]}]
@Codelax Codelax added bug redis Managed Redis issues, bugs and feature requests labels Feb 28, 2024
@remyleone remyleone assigned jremy42 and unassigned Laure-di Mar 4, 2024
@Laure-di Laure-di self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug redis Managed Redis issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants