Заметил что в Seafile 12 не создаются превью файлов PDF. При этом в логе seahub.log ошибка:
[2026-02-08 23:04:12] [ERROR] django.request:241 log_response Internal Server Error: /thumbnail/9a192cbd-5931-49c7-a853-2ec585917c92/create/
Traceback (most recent call last):
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/thumbnail/utils.py", line 235, in create_pdf_thumbnails
ret = _create_thumbnail_common(tmp_path, thumbnail_file, size)
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/thumbnail/utils.py", line 278, in _create_thumbnail_common
image = Image.open(fp)
File "/usr/local/lib/python3.10/dist-packages/PIL/Image.py", line 3431, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cf13e9ad.png'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/seafile/seafile-server-12.0.14/seahub/thirdpart/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/seafile/seafile-server-12.0.14/seahub/thirdpart/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/auth/decorators.py", line 69, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/thumbnail/views.py", line 59, in thumbnail_create
success, status_code = generate_thumbnail(request, repo_id, size, path)
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/thumbnail/utils.py", line 129, in generate_thumbnail
return create_pdf_thumbnails(repo, file_id, path, size,
File "/opt/seafile/seafile-server-12.0.14/seahub/seahub/thumbnail/utils.py", line 240, in create_pdf_thumbnails
os.unlink(tmp_path)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cf13e9ad.png'Проблема решается установкой дополнительного пакета:
apt install poppler-utils