-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Avatars and attachments not displaying after upgrading from 6.63 and mongodb 5 to 6.93 and mongodb 6 #4952
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
Comments
When migrating, there needs to be setting WRITABLE_PATH to migrate attachments properly: And if there are any file there, they need to be there also with newest MongoDB and WeKan. Migration process takes some time in background, before images appear. Images are not visible immediately. I try to figure out is there some way to improve this migration. It could be nice if attahments would not be temporarily stored to disk and read back, but instead there would be in-place changes only to file text details, not to actual binary files. Any help very welcome. |
Attachment migrations are done here, this code needs improvements: |
Between 6.63 and 6.93 there were no attachment migrations. |
Thanks for your reply. We had set the WRITABLE_PATH variable in our docker compose, so I don't think the problem lies there. Downgrading to Mongo 5 is not a solution, as new avatars and images are not displayed correctly. We have spent too much time on this problem already, I think we are going to bear with that and tell our users to re-upload their avatars, and to contact us if they need any attachment they uploaded previously. |
Related #4780 (comment) |
we have the same problem |
Yes, I added steps to #4780 (comment) how anyone can help with fixing this. |
I'm having a similar problem (though I'm not sure if it is exactly the same since for me, previews also don't get shown after the update) and avatars do get shown. Here's how I migrated from version 5.65 with mongodb version 4.2 to version 7.09 with mongodb version 6:
When I look into the wekan-app container after this, it seems part of the migration worked, since the /data/attachments directory now contains a lot of files. If I however look to a board with a card that had an attachment before the upgrade, it does not show it anymore: |
There will be mongodb migration tools available later. |
Uh oh!
There was an error while loading. Please reload this page.
Issue
Server Setup Information
Problem description
After upgrading to Wekan 6.93 and MongoDB 6 (From Wekan 6.63 and MongoDB5), all the existing attachments and avatars stopped displaying in Wekan. Newly uploaded images seem to work fine.
When I browse the DB, I can see that avatar links in the user profile are set to, for example,
/cfs/files/avatars/qPmz2S7YP4hRZBLR4/téléchargement.png
, instead of something likehttp://localhost/cdn/storage/avatars/YL82r4CYBajvp9dem/original/YL82r4CYBajvp9dem.png?auth=false&brokenIsFine=true
with a newly uploaded avatar. I couldn't find the link to an attachment in thecards
records, but I suppose something similar is happening there.Also, the images are still in the
cfs_grids.avatars.files
andcfs_grids.attachments.files
records in the database, as well as in the/data/avatars
data/attachments
folders in the container.I tried to run the following queries to try and replay the migration as suggested in another issue, but it did not work.
If we downgrade the MongoDB container to MongoDB 5, the existing images are correctly displayed, but new images aren't.
Is there any way to convert the incorrect links to correct ones ?
Reproduction Steps
Upgrading from Wekan 6.63 to Wekan 6.93 with avatars and attachments I guess?
Logs
The text was updated successfully, but these errors were encountered: