-
-
Notifications
You must be signed in to change notification settings - Fork 251
Labels
🕷️ bugSomething isn't workingSomething isn't working
Description
First Check
- This is not a feature request
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn't find it.
- I searched the documentation, with the integrated search.
- I already read the docs and didn't find an answer.
- I can replicate the issue inside the Demo install.
Homebox Version
v0.21.0
What is the issue you are experiencing?
After upgrading from v0.19.0, when I try to create the thumbnails I see the following error:
INF ../share/homebox/backend/internal/web/mid/logger.go:36 > request received method=POST path=/api/v1/actions/create-missing-thumbnails rid=homebox/***
panic: ent: check existence: context canceled
-> github.com/sysadminsmedia/homebox/backend/internal/data/ent.(*AttachmentQuery).ExistX
-> /usr/local/share/homebox/backend/internal/data/ent/attachment_query.go:285
github.com/sysadminsmedia/homebox/backend/internal/data/repo.(*AttachmentRepo).CreateMissingThumbnails
/usr/local/share/homebox/backend/internal/data/repo/repo_item_attachments.go:727
main.(*app).mountRoutes.func1.(*V1Controller).HandleCreateMissingThumbnails.actionHandlerFactory.73
/usr/local/share/homebox/backend/app/api/handlers/v1/v1_ctrl_actions.go:23
github.com/hay-kot/httpkit/errchain.HandlerFunc.ServeHTTP
/root/go/pkg/mod/github.com/hay-kot/[email protected]/errchain/errchain.go:18
main.(*app).mountRoutes.func1.(*app).mwRoles.5.1
/usr/local/share/homebox/backend/app/api/middleware.go:69
github.com/hay-kot/httpkit/errchain.HandlerFunc.ServeHTTP
/root/go/pkg/mod/github.com/hay-kot/[email protected]/errchain/errchain.go:18
main.(*app).mwAuthToken-fm.(*app).mwAuthToken.func1
/usr/local/share/homebox/backend/app/api/middleware.go:152
github.com/hay-kot/httpkit/errchain.HandlerFunc.ServeHTTP
/root/go/pkg/mod/github.com/hay-kot/[email protected]/errchain/errchain.go:18
main.run.Errors.func7.1
/usr/local/share/homebox/backend/internal/web/mid/errors.go:22
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5.(*Mux).routeHTTP
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:478
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5.(*Mux).ServeHTTP
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:73
github.com/go-chi/chi/v5.(*Mux).Mount.func1
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:325
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5.(*Mux).routeHTTP
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:478
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5/middleware.StripSlashes.func1
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/strip.go:31
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5/middleware.Recoverer.func1
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/recoverer.go:45
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
main.run.Logger.func6.1
/usr/local/share/homebox/backend/internal/web/mid/logger.go:39
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5/middleware.RealIP.func1
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/realip.go:36
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5/middleware.RequestID.func1
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/request_id.go:76
net/http.HandlerFunc.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2294
github.com/go-chi/chi/v5.(*Mux).ServeHTTP
/root/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:90
net/http.serverHandler.ServeHTTP
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:3301
net/http.(*conn).serve
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2102
created by net/http.(*Server).Serve in goroutine 68
/root/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:3454
How can the maintainer reproduce the issue?
- Upgrade installation from v0.19.0 with multiple attachments
- Click "Create Thumbnails" button in "Tools"
- The error above appears in the app logs
Deployment
Other
Database Type
SQLite
OS Architechture
x86_64 (AMD, Intel)
Deployment Details
Backend built with:
cd backend
COMMIT="$(git rev-parse HEAD)"
BUILD_TIME="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
VERSION="$(git describe --tags --abbrev=0)"
go build -o ../build/backend -ldflags "-s -w -X main.commit=${COMMIT} -X main.buildTime=${BUILD_TIME} -X main.version=${VERSION}" ./app/apiMetadata
Metadata
Assignees
Labels
🕷️ bugSomething isn't workingSomething isn't working