Redis Caching Error: decode failed: gob: wrong type #907
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#907
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Set up Vikunja for the first time yesterday and absolutely loving it! Pretty much smooth sailing except for some errors I noticed in my logs. They are all the same exact error message but I haven't figured out really what triggers them or if they affect any functionality (to my knowledge, everything's still working fine!):
2021-07-02T22:33:27.260819331Z: ERROR ▶ [DATABASE] 0b1 [redis_cacher] decode failed: gob: wrong type (models.RelatedTaskMap) for received field .RelatedTasks
I am running in Kubernetes with
vikunja/api:latest
(container digest00aec85296c2
) and latest frontend. Here's my related config sections I have for the various redis things:I searched through previous issues and the forum and no one else seems to have run into this but I'm not sure what I could possibly have misconfigured.
Feel like I have a pretty "vanilla" setup but please let me know if you need any additional info and you definitely got a few coffees from me for this project ❤️
That's a known error in the redis caching layer of the orm (upstream). If that does not work it will fall back to bypass caching which is why you don't really notice the difference. There's not much we can do about it other than waiting until they release a fix.
If you don't run Vikunja in a HA setup with a lot of users you won't need explicit caching with redis. In my experience the network overhead makes it usually even slower than without caching.
That's because you've configured
redis
as the storage type for keyvalue. Usingkeyvalue
here means it will use whatever you configured in hte keyvalue setting.Gotcha, thanks for the info! I figured with one person it wouldn't make a difference for performance but just in my nature to tinker with these things 😅
Hi, thanks again for this project! I'm experiencing the same error here still. Is this issue still not fixed upstream? Do you have a link to the upstream issue?
@dead10ck No, still not fixed. I'm not sure if the error is either in xorm or the gob library which encodes the data.
In this case, I wonder if redis should just be removed from the docs? It's completely nonfunctional and appears to have been for 2 years now.
@konrad Maybe reopen this issue, so that it's easier accessible.
Maybe at least add a link to this thread.
My plan is to even remove the database caching altogether.
Caching options are now removed in
d83e3a0a03