Drone-b2 panicking on failed auth?

Reported upstream at Panic on failed authorization? · Issue #91 · techknowlogick/drone-b2 · GitHub

latest: Pulling from techknowlogick/drone-b2
Digest: sha256:57140f735e91032511f7cd3a867c8b7a937291f649c28383c8112b3cc808d573
Status: Image is up to date for techknowlogick/drone-b2:latest
time="2021-08-08T08:39:26Z" level=error msg="Could not authenticate to B2" error="b2_authorize_account: 401: "
time="2021-08-08T08:39:26Z" level=info msg="Attempting to upload" bucket=us-east-1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x789ed7]

goroutine 1 [running]:
github.com/kurin/blazer/b2.(*Client).Bucket(0x0, 0x8f0be0, 0xc00002a028, 0x86e2c6, 0x9, 0x0, 0xc00011a068, 0x1)
	/go/pkg/mod/github.com/kurin/[email protected]/b2/b2.go:285 +0x37
main.(*Plugin).Exec(0xc0002216e0, 0x0, 0x0)
	/drone/src/plugin.go:85 +0x2b6
main.run(0xc00013e000, 0x0, 0xc000102550)
	/drone/src/main.go:108 +0x498
github.com/urfave/cli.HandleAction(0x7e8460, 0x88b5e8, 0xc00013e000, 0xc00013e000, 0x0)
	/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0xfd
github.com/urfave/cli.(*App).Run(0xc000136000, 0xc0000201d0, 0x1, 0x1, 0x0, 0x0)
	/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x655
main.main()
	/drone/src/main.go:84 +0xab0

https://cloud.drone.io/baxterworks-build/qemu-builder/89/1/5

This is a third party plugin. I’m not sure the author will see your post, so you may want to create an issue in their plugin repository instead https://github.com/techknowlogick/drone-b2

1 Like