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

500 for download artifacts {ID} --format archive #6068

Open
david-polak-ataccama opened this issue Dec 4, 2024 · 5 comments
Open

500 for download artifacts {ID} --format archive #6068

david-polak-ataccama opened this issue Dec 4, 2024 · 5 comments
Labels
bug 🐛 Something is not working as should be

Comments

@david-polak-ataccama
Copy link

Describe the bug
Artifact download fails using --format archive.

To Reproduce
Steps to reproduce the behavior:

  1. Run tests with artifacts
  2. Run `testkube --client direct --api-uri https://{hostname}/testkube/api download artifacts 672b4bbdbb11e3407e4dfdab --format archive
  3. See error
Context:  (2.1.71)   Namespace: testkube
----------------------------------------
Getting artifacts count = 1 

- preparing archive 

downloading archive:  (error: error: 500)

Version / Cluster
Which testkube version?
Recent versions at least for the last three weeks.

What Kubernetes cluster?
EKS

What Kubernetes version?
1.29.6

@david-polak-ataccama david-polak-ataccama added the bug 🐛 Something is not working as should be label Dec 4, 2024
@vsukhin
Copy link
Collaborator

vsukhin commented Dec 4, 2024

hey @david-polak-ataccama

Can you check logs of testkube api server pod?

@david-polak-ataccama
Copy link
Author

@vsukhin

i"level":"error","ts":"2024-12-04T09:34:20Z","caller":"apiutils/utils.go:60","msg":"failed to get artifact archive for test workflow execution 6750220fae913834db68cf58: could not download workflow artifact archive: operation not supported","status":500,"stacktrace":"github.com/kubeshop/testkube/internal/app/api/apiutils.SendError
\t/home/runner/work/testkube/testkube/internal/app/api/apiutils/utils.go:60
github.com/kubeshop/testkube/internal/app/api/v1.(*TestkubeAPI).Error
\t/home/runner/work/testkube/testkube/internal/app/api/v1/handlers.go:114
github.com/kubeshop/testkube/internal/app/api/v1.(*TestkubeAPI).InternalError
\t/home/runner/work/testkube/testkube/internal/app/api/v1/handlers.go:126
github.com/kubeshop/testkube/internal/app/api/v1.(*TestkubeAPI).Init.(*TestkubeAPI).GetTestWorkflowArtifactArchiveHandler.func36
\t/home/runner/work/testkube/testkube/internal/app/api/v1/testworkflowexecutions.go:441
github.com/gofiber/fiber/v2.(*App).next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/router.go:145
github.com/gofiber/fiber/v2.(*Ctx).Next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/ctx.go:1034
github.com/gofiber/fiber/v2/middleware/cors.New.func1
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/middleware/cors/cors.go:173
github.com/gofiber/fiber/v2.(*App).next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/router.go:145
github.com/gofiber/fiber/v2.(*Ctx).Next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/ctx.go:1034
github.com/gofiber/fiber/v2/middleware/pprof.New.func1
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/middleware/pprof/pprof.go:46
github.com/gofiber/fiber/v2.(*Ctx).Next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/ctx.go:1031
github.com/kubeshop/testkube/pkg/server.(*HTTPServer).Init.func1
\t/home/runner/work/testkube/testkube/pkg/server/httpserver.go:44
github.com/gofiber/fiber/v2.(*App).next
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/router.go:145
github.com/gofiber/fiber/v2.(*App).handler
\t/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.5/router.go:172
github.com/valyala/fasthttp.(*Server).serveConn
\t/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.52.0/server.go:2374
github.com/valyala/fasthttp.(*workerPool).workerFunc
\t/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.52.0/workerpool.go:224
github.com/valyala/fasthttp.(*workerPool).getCh.func1
\t/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.52.0/workerpool.go:196"}

@vsukhin
Copy link
Collaborator

vsukhin commented Dec 9, 2024

hey @david-polak-ataccama from what I see in the logs you use cloud or enterprise Testkube edition. Is this right or do you use OSS edition?

@thradec
Copy link

thradec commented Dec 10, 2024

we're using OSS edition (standalone Agent with Minio)

@vsukhin
Copy link
Collaborator

vsukhin commented Dec 10, 2024

thank you @thradec then it's a bug after the latest changes. for @TheBrunoLopes and @jmorante-ks to prioritise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something is not working as should be
Projects
None yet
Development

No branches or pull requests

3 participants