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

scw rdb backup download: invalid memory address or nil pointer dereference #3929

Closed
baby-gnu opened this issue Jul 2, 2024 · 0 comments · Fixed by #3952
Closed

scw rdb backup download: invalid memory address or nil pointer dereference #3929

baby-gnu opened this issue Jul 2, 2024 · 0 comments · Fixed by #3952
Assignees
Labels
bug priority:highest Bugs filled by customers, security issues rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Comments

@baby-gnu
Copy link

baby-gnu commented Jul 2, 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 rdb backup download 0682c225-d3c6-40ba-afc7-b9c7abede6b5

Expected Behavior

The PostgreSQL database backup is downloaded

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()
	/opt/hostedtoolcache/go/1.22.4/x64/src/runtime/debug/stack.go:24 +0x5e
main.cleanup(0xc0002e3180)
	/home/runner/work/scaleway-cli/scaleway-cli/cmd/scw/main.go:42 +0xdd
panic({0x1917a80?, 0x2b9a2f0?})
	/opt/hostedtoolcache/go/1.22.4/x64/src/runtime/panic.go:770 +0x132
github.com/scaleway/scaleway-cli/v2/internal/namespaces/rdb/v1.backupDownloadCommand.func1({0x1e79a70, 0xc000590ba0}, {0x1809340?, 0xc0000a08a0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/namespaces/rdb/v1/custom_backup.go:323 +0x3e1
github.com/scaleway/scaleway-cli/v2/internal/core.run.func1({0x1e79a70?, 0xc000590ba0?}, {0x1809340?, 0xc0000a08a0?})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:173 +0x32
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdTypeInterceptor({0x1e79a70, 0xc000590ba0}, {0x1809340?, 0xc0000a08a0?}, 0x0?)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:123 +0x2f
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3.1({0x1e79a70?, 0xc000590ba0?}, {0x1ba67a0?, 0xc00053b360?})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:30 +0x2e
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdErrorInterceptor({0x1e79a70?, 0xc000590ba0?}, {0x1809340?, 0xc0000a08a0?}, 0x10?)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:39 +0x46
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3({0x1e79a70, 0xc000590ba0}, {0x1809340, 0xc0000a08a0}, 0xc0004a64f0)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:29 +0xb9
github.com/scaleway/scaleway-cli/v2/internal/core.run({0x1e79a70, 0xc000590ba0}, 0xc000680908, 0xc0003beb00, {0xc00050c020, 0x2, 0x2})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:172 +0x3dc
github.com/scaleway/scaleway-cli/v2/internal/core.(*cobraBuilder).hydrateCobra.cobraRun.func3(0xc000680908, {0xc00042fad0, 0x1, 0x1})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:96 +0x7de
github.com/spf13/cobra.(*Command).execute(0xc000680908, {0xc00042fa80, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0xaca
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000e4608)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
github.com/scaleway/scaleway-cli/v2/internal/core.Bootstrap(0xc00090fe78)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/bootstrap.go:263 +0x12b9
main.main()
	/home/runner/work/scaleway-cli/scaleway-cli/cmd/scw/main.go:74 +0x34f

runtime error: invalid memory address or nil pointer dereference

More info

scw version
Version    2.32.1
BuildDate  2024-06-28T08:56:55Z
GoVersion  go1.22.4
GitBranch  HEAD
GitCommit  dcb6f277
GoArch     amd64
GoOS       linux
lsb_release -a
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

The export from the web interface isn't working either, so I tried from CLI and found this issue.

The backup is never marked as exported:

scw rdb backup list
ID                                    Name                    Database Name  Size   Status  Instance ID                           URL Expired  Is Exported
0682c225-d3c6-40ba-afc7-b9c7abede6b5  backup_gitlab_20240702  gitlab         43 MB  ready   9e8f6c4a-c99a-40ea-82fc-294437db8b32  true         false
@baby-gnu baby-gnu added the bug label Jul 2, 2024
@Codelax Codelax added the rdb Managed MySQL and PostgreSQL issues, bugs and feature requests label Jul 3, 2024
@Codelax Codelax added the priority:highest Bugs filled by customers, security issues label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:highest Bugs filled by customers, security issues rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants