Hi there,
When I try to export my user data from the user settings, all seems to be working. I get the following notification:
Unfortunately, there is no e-mail. The log contains an ERROR:
2021-09-08T23:33:53.375748954+02:00: ERROR ▶ events/func1 bd8d Error while handling message 5eefc5be-abed-4b50-958c-79662afd42df, topic_poisoned=user.export.requested, handler_poisoned=user.export.requested.handle.user.data.export, subscriber_poisoned=gochannel.GoChannel, reason_poisoned=1 error occurred:
* panic occurred: "invalid memory address or nil pointer dereference", stacktrace:
goroutine 1176 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/ThreeDotsLabs/watermill/message/router/middleware.Recoverer.func1.1()
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router/middleware/recoverer.go:27 +0x58
panic({0x1192120, 0x1fc13d0})
/usr/local/go/src/runtime/panic.go:1038 +0x215
code.vikunja.io/api/pkg/models.exportListsAndTasks(0xc000518750, 0x3c, 0x242)
/go/src/code.vikunja.io/api/pkg/models/export.go:188 +0x6ef
code.vikunja.io/api/pkg/models.ExportUserData(0xc000518750, 0xc00044d0e0)
/go/src/code.vikunja.io/api/pkg/models/export.go:60 +0x3d0
code.vikunja.io/api/pkg/models.(*HandleUserDataExport).Handle(0xc00042c1c0, 0xc00042c360)
/go/src/code.vikunja.io/api/pkg/models/listeners.go:593 +0x191
github.com/ThreeDotsLabs/watermill/message.(*Router).AddNoPublisherHandler.func1(0xc0003f3bc0)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router.go:284 +0x1d
github.com/ThreeDotsLabs/watermill/message/router/middleware.Recoverer.func1(0xc0005f9d50)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router/middleware/recoverer.go:32 +0x72
github.com/ThreeDotsLabs/watermill/message/router/middleware.Retry.Middleware.func1(0xc00042c360)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router/middleware/retry.go:71 +0x303
github.com/ThreeDotsLabs/watermill/message/router/middleware.poisonQueue.Middleware.func1(0x11a3420)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router/middleware/poison.go:99 +0xbc
github.com/ThreeDotsLabs/watermill/components/metrics.HandlerPrometheusMetricsMiddleware.Middleware.func1(0xc00042c360)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/components/metrics/handler.go:57 +0x1d2
github.com/ThreeDotsLabs/watermill/message.(*handler).handleMessage(0xc0004177c0, 0xc00042c360, 0xc00020e930)
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router.go:601 +0x17a
created by github.com/ThreeDotsLabs/watermill/message.(*handler).run
/srv/app/pkg/mod/github.com/!three!dots!labs/watermill@v1.1.1/message/router.go:472 +0x270
, payload={"User":{"id":4,"name":"Gian","username":"gian","created":"0001-01-01T00:00:00Z","updated":"2021-09-07T22:39:32+02:00"}}
Does anybody know what could cause this behavior and how to fix it?
I could imagine it is caused by some sort of mysql error, as I’m having other issues with the db as well (Duplicate entry for key).
I’m running vikunja versions 0.18.0 on Debian 10. The frontend runs on Server A which also acts as a proxy to Server B. Server B then hosts the backend and the database.
Gian