Thumbnail server got 403: Forbidden

After I enabled the thumbnail server on Seafile v13, the thumbnails stopped working. A strange thing is that I can’t preview images (on the web UI), but when I click view original image, it rendered successfully.

Here are the logs:

thumbnail.log:

[2025-09-22 13:37:58] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error
[2025-09-22 13:37:58] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error
[2025-09-22 13:37:58] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error
[2025-09-22 13:37:59] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error
[2025-09-22 13:37:59] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error
[2025-09-22 13:37:59] [ERROR] seafile_thumbnail.seahub_api:44 Internal Server Error

thumbnail-server.log:

INFO:     172.20.0.6:0 - "GET /thumbnail/a1b3f690-ca5b-4fae-ac48-cbcd319d53e5/create/?path=%2F%2FV%C6%B0%E1%BB%9Dn%20th%C3%BA%207A0.mp4&size=256 HTTP/1.0" 403 Forbidden
INFO:     172.20.0.6:0 - "GET /thumbnail/a1b3f690-ca5b-4fae-ac48-cbcd319d53e5/256/z3973516186670_388a5c1bcde9a72c2fb9824daffffb32.jpg?mtime=1671514001 HTTP/1.0" 403 Forbidden
INFO:     172.20.0.6:0 - "GET /thumbnail/a1b3f690-ca5b-4fae-ac48-cbcd319d53e5/256/z4525161920953_999fc4b2311761c6c866a577c421d832.jpg?mtime=1689614060 HTTP/1.0" 403 Forbidden

Thanks for helping!

1 Like

Hi kasdvn17,

have you found a solution for the problem? I’m seeing the same error in my installation.

Best regards!

1 Like

Sorry, I haven’t found the solution.

I narrowed it down to

ALLOWED_HOSTS = [‘.mydomain.com‘]

in seahub_settings.py. When i uncomment this line, everything works