matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.67k stars 664 forks source link

Regenerate thumnails if they can't be found in media store #1693

Open alistair23 opened 3 years ago

alistair23 commented 3 years ago

Description:

If Dendrite fails to open a thumbnail with the error Error generating thumbnails where error="open : no such file or directory" then it should regenerate the thumbnail.

fnwbr commented 3 years ago

In case someone else runs into this problem: I manually worked around it for now by just emptying the corresponding tables on the dendrite_mediaapi database:

DELETE FROM mediaapi_thumbnail;
DELETE FROM mediaapi_media_repository;

After that Dendrite started to re-generate all thumbnails for me.

kegsay commented 3 years ago

Possibly related: https://github.com/matrix-org/dendrite/issues/1574

sg-qwt commented 1 year ago

I did a dendrite migration recently by backing up and restore postgres only without backing up media store(i don't want media store get migrated this case), then all thumnails failed with this error. fnwbr's trick of emptying the dendrite_mediaapi works for me.