mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[Bug]: User Avatar is not persisted in v2 #771
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @Maddin-M on GitHub (Aug 2, 2025).
Where is the problem occurring?
I encountered the problem while using the application (Frontend)
What browsers are you seeing the problem on?
Firefox
Current behavior
Hello,
I have updated to Planka 2.0.0-rc2 a few weeks ago (and now to rc3) and have noticed, that after restarting the pod (running in Kubernetes) my user avatars are gone. After investigating this for a bit, I can see that the
user-avatarsdir is indeed empty, even when setting an avatar. other directories likeattachmentsorbackground-imagesdo not have this problem, those are stored properly.I have also changed nothing with the volumeMounts inbetween updating (except for the changes in this article).
The frontend does look for the avatar in
url("http://<base-url>/user-avatars/f5bf40c7-5fcd-451d-9e91-8e2e263e2d68/cover-180.png")but it's never created.Desired behavior
User avatars should be persisted using the given mounted volume.
Steps to reproduce
Other information
I am happy to provide further information if needed.
@sivertillia commented on GitHub (Aug 2, 2025):
@Maddin-M go to
s3fromAwsorhetznerit will be a better choice@meltyshev commented on GitHub (Aug 2, 2025):
Hi! That sounds strange... It seems like the volume isn't being mapped to the container, so everything gets lost when it restarts. But it's hard to say exactly what's wrong without seeing your configuration.
@Maddin-M commented on GitHub (Aug 5, 2025):
@sivertillia I am hosting this on my bare metal homelab, thus persisting on my NAS atm, no cloud hoster.
@meltyshev This is my config: https://pastebin.com/zbk3qvsv
@meltyshev commented on GitHub (Aug 8, 2025):
Oops, I missed the fact that you're using Kubernetes - so it's a bit hard for me to diagnose the problem 🙈
But I hope someone else can help figure out why it might be happening.
@Kosette commented on GitHub (Sep 29, 2025):
If you mean that
user-avatarsdir empty even after setting up avatar from web interface, you could check permission for mounted volume, I don't know much about k8s, but for Docker if mounting an existing dir into container, owner should be 1000, otherwise nothing will be saved.Referring to https://docs.planka.cloud/docs/installation/docker/production-version#additional-info
@Maddin-M commented on GitHub (Oct 6, 2025):
Yes, I have set:
and also the env variables:
Still nothing. I also cannot see logs at all. When execing into the pod and printing the contents of the
/logsdir, the files are empty.@Dionis-90 commented on GitHub (Oct 19, 2025):
Hello. I have the same problem after the upgrade with manual installation.
When I ran the db:upgrade I got an error
@meltyshev commented on GitHub (Oct 20, 2025):
Hey! Thanks for reporting this. It looks like you're using the
nightlyupgrade script with thelatestversion of everything else. We renamed the old methodgetSizeInBytesto justgetSize- that change was made in both the upgrade script and the file manager, so they should be in sync. However, we haven't released the new version yet, so this change shouldn't be in thelatestrelease. I'd suggest trying the process again from scratch.Alternatively, you can use the
nightlyversion, but the steps are a bit different - you'll need to build the frontend first (as shown here: https://docs.planka.cloud/docs/installation/manual/nightly_version/debian-and-ubuntu), then copy over your previous files and attachments from v1, and finally run the upgrade script.
@Dionis-90 commented on GitHub (Oct 20, 2025):
Thank you. I have run the release version of the upgrade.js. And the issue has been resolved.
I used the nightly version of upgrade.js because of this issue https://github.com/plankanban/planka/issues/1280