PDF in der Mediathek nicht ersetzbar

Guten Morgen,

Ich habe ein Problem auf dem Server. Lokal funktioniert alles.

Wenn ich eine PDF-Datei hochgeladen habe, wird mir kein Thumbnail angezeigt. Klicke ich es an, bekomme ich die Detail-Ansicht. Will ich jetzt das PDF ersetzen, bekomme ich eine Fehlermeldung. Bilder oder MP4 Dateien auszutauschen oder in der Übersicht angezeigt zu bekommen stellt kein Problem dar. Es sind nur die PDFs

Hier das Log:

Exception #1433109652 in line 49 of /var/www/html/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/Neos_Media_Domain_Strategy_ThumbnailGeneratorStrategy.php: Unable to generate thumbnail for the given document (filename: Home - ambright.de.pdf, SHA1: c1bfe0fd3619acc0fc41211a831237792e482acf)

60 Neos\Media\Domain\Model\ThumbnailGenerator\DocumentThumbnailGenerator_Original::refresh(Neos\Media\Domain\Model\Thumbnail)
59 Neos\Media\Domain\Strategy\ThumbnailGeneratorStrategy_Original::refresh(Neos\Media\Domain\Model\Thumbnail)
58 call_user_func_array(array|2|, array|1|)
57 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("refresh", array|1|)
56 Neos\Media\Domain\Model\Thumbnail_Original::refresh()
55 Neos\Media\Domain\Service\ThumbnailService_Original::refreshThumbnail(Neos\Media\Domain\Model\Thumbnail)
54 Neos\Media\Domain\Service\ThumbnailService_Original::getThumbnail(Neos\Media\Domain\Model\Document, Neos\Media\Domain\Model\ThumbnailConfiguration)
53 call_user_func_array(array|2|, array|2|)
52 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("getThumbnail", array|2|)
51 Neos\Media\Domain\Service\AssetService_Original::getThumbnailUriAndSizeForAsset(Neos\Media\Domain\Model\Document, Neos\Media\Domain\Model\ThumbnailConfiguration, Neos\Flow\Mvc\ActionRequest)
50 Neos\Media\ViewHelpers\ThumbnailViewHelper_Original::render()
49 call_user_func(array|2|)
48 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
47 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
46 TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInvoker_Original::invoke("Neos\Media\ViewHelpers\ThumbnailViewHelper", array|22|, Neos\FluidAdaptor\Core\Rendering\RenderingContext, Closure)
45 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderStatic(array|22|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
44 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::section_73388ee6d547712d99e8f2a39f98ec2df7522ae3(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
43 TYPO3Fluid\Fluid\View\AbstractTemplateView::renderSection("ContentImage", array|13|, false)
42 Neos\FluidAdaptor\View\AbstractTemplateView::renderSection("ContentImage", array|13|, false)
41 TYPO3Fluid\Fluid\ViewHelpers\RenderViewHelper_Original::renderStatic(array|8|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
40 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::{closure}()
39 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderChildren()
38 Neos\FluidAdaptor\ViewHelpers\FormViewHelper_Original::render()
37 call_user_func(array|2|)
36 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
35 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
34 TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInvoker_Original::invoke("Neos\FluidAdaptor\ViewHelpers\FormViewHelper", array|32|, Neos\FluidAdaptor\Core\Rendering\RenderingContext, Closure)
33 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderStatic(array|32|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
32 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::section_4f9be057f0ea5d2ba72fd2c810e8d7b9aa98b469(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
31 TYPO3Fluid\Fluid\View\AbstractTemplateView::renderSection("Content", array|13|, false)
30 Neos\FluidAdaptor\View\AbstractTemplateView::renderSection("Content", array|13|, false)
29 TYPO3Fluid\Fluid\ViewHelpers\RenderViewHelper_Original::renderStatic(array|8|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
28 layout_UploadImage_html_e33fb56a40121da0fbc95194fc001f173c3d27c1::render(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
27 TYPO3Fluid\Fluid\View\AbstractTemplateView::render()
26 Neos\Flow\Mvc\Controller\ActionController_Original::renderView()
25 Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod()
24 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
23 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
22 Neos\Flow\Mvc\Dispatcher_Original::dispatch(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
21 Neos\Neos\Controller\Backend\ModuleController_Original::indexAction(array|3|)
20 Neos\Neos\Controller\Backend\ModuleController::indexAction(array|3|)
19 call_user_func_array(array|2|, array|1|)
18 Neos\Neos\Controller\Backend\ModuleController::Flow_Aop_Proxy_invokeJoinPoint(Neos\Flow\Aop\JoinPoint)
17 Neos\Flow\Aop\Advice\AdviceChain::proceed(Neos\Flow\Aop\JoinPoint)
16 Neos\Flow\Security\Aspect\PolicyEnforcementAspect_Original::enforcePolicy(Neos\Flow\Aop\JoinPoint)
15 Neos\Flow\Aop\Advice\AroundAdvice::invoke(Neos\Flow\Aop\JoinPoint)
14 Neos\Flow\Aop\Advice\AdviceChain::proceed(Neos\Flow\Aop\JoinPoint)
13 Neos\Neos\Controller\Backend\ModuleController::indexAction(array|3|)
12 call_user_func_array(array|2|, array|1|)
11 Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod()
10 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
9 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
8 Neos\Flow\Mvc\Dispatcher_Original::dispatch(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
7 call_user_func_array(array|2|, array|2|)
6 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("dispatch", array|2|)
5 Neos\Flow\Mvc\DispatchComponent_Original::handle(Neos\Flow\Http\Component\ComponentContext)
4 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
3 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
2 Neos\Flow\Http\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()

Previous exception: Exception #499 in line 63 of /var/www/html/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/Neos_Media_Domain_Model_ThumbnailGenerator_DocumentThumbnailGenerator.php: not authorized `/var/www/html/Data/Temporary/Production/ResourceFiles/c1bfe0fd3619acc0fc41211a831237792e482acf-1590127998.2913-11939' @ error/constitute.c/ReadImage/412

61 Imagick::readimage("/var/www/vhosts/lvps92-51-146-33.dedicated.hosteur…0fc41211a831237792e482acf-1590127998.2913-11939[0]")
60 Neos\Media\Domain\Model\ThumbnailGenerator\DocumentThumbnailGenerator_Original::refresh(Neos\Media\Domain\Model\Thumbnail)
59 Neos\Media\Domain\Strategy\ThumbnailGeneratorStrategy_Original::refresh(Neos\Media\Domain\Model\Thumbnail)
58 call_user_func_array(array|2|, array|1|)
57 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("refresh", array|1|)
56 Neos\Media\Domain\Model\Thumbnail_Original::refresh()
55 Neos\Media\Domain\Service\ThumbnailService_Original::refreshThumbnail(Neos\Media\Domain\Model\Thumbnail)
54 Neos\Media\Domain\Service\ThumbnailService_Original::getThumbnail(Neos\Media\Domain\Model\Document, Neos\Media\Domain\Model\ThumbnailConfiguration)
53 call_user_func_array(array|2|, array|2|)
52 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("getThumbnail", array|2|)
51 Neos\Media\Domain\Service\AssetService_Original::getThumbnailUriAndSizeForAsset(Neos\Media\Domain\Model\Document, Neos\Media\Domain\Model\ThumbnailConfiguration, Neos\Flow\Mvc\ActionRequest)
50 Neos\Media\ViewHelpers\ThumbnailViewHelper_Original::render()
49 call_user_func(array|2|)
48 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
47 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
46 TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInvoker_Original::invoke("Neos\Media\ViewHelpers\ThumbnailViewHelper", array|22|, Neos\FluidAdaptor\Core\Rendering\RenderingContext, Closure)
45 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderStatic(array|22|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
44 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::section_73388ee6d547712d99e8f2a39f98ec2df7522ae3(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
43 TYPO3Fluid\Fluid\View\AbstractTemplateView::renderSection("ContentImage", array|13|, false)
42 Neos\FluidAdaptor\View\AbstractTemplateView::renderSection("ContentImage", array|13|, false)
41 TYPO3Fluid\Fluid\ViewHelpers\RenderViewHelper_Original::renderStatic(array|8|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
40 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::{closure}()
39 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderChildren()
38 Neos\FluidAdaptor\ViewHelpers\FormViewHelper_Original::render()
37 call_user_func(array|2|)
36 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
35 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
34 TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInvoker_Original::invoke("Neos\FluidAdaptor\ViewHelpers\FormViewHelper", array|32|, Neos\FluidAdaptor\Core\Rendering\RenderingContext, Closure)
33 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::renderStatic(array|32|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
32 Asset_action_replaceAssetResource_df67b9ecc94c11433fc4543ae26e3a4c0e1cbe5a::section_4f9be057f0ea5d2ba72fd2c810e8d7b9aa98b469(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
31 TYPO3Fluid\Fluid\View\AbstractTemplateView::renderSection("Content", array|13|, false)
30 Neos\FluidAdaptor\View\AbstractTemplateView::renderSection("Content", array|13|, false)
29 TYPO3Fluid\Fluid\ViewHelpers\RenderViewHelper_Original::renderStatic(array|8|, Closure, Neos\FluidAdaptor\Core\Rendering\RenderingContext)
28 layout_UploadImage_html_e33fb56a40121da0fbc95194fc001f173c3d27c1::render(Neos\FluidAdaptor\Core\Rendering\RenderingContext)
27 TYPO3Fluid\Fluid\View\AbstractTemplateView::render()
26 Neos\Flow\Mvc\Controller\ActionController_Original::renderView()
25 Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod()
24 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
23 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
22 Neos\Flow\Mvc\Dispatcher_Original::dispatch(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
21 Neos\Neos\Controller\Backend\ModuleController_Original::indexAction(array|3|)
20 Neos\Neos\Controller\Backend\ModuleController::indexAction(array|3|)
19 call_user_func_array(array|2|, array|1|)
18 Neos\Neos\Controller\Backend\ModuleController::Flow_Aop_Proxy_invokeJoinPoint(Neos\Flow\Aop\JoinPoint)
17 Neos\Flow\Aop\Advice\AdviceChain::proceed(Neos\Flow\Aop\JoinPoint)
16 Neos\Flow\Security\Aspect\PolicyEnforcementAspect_Original::enforcePolicy(Neos\Flow\Aop\JoinPoint)
15 Neos\Flow\Aop\Advice\AroundAdvice::invoke(Neos\Flow\Aop\JoinPoint)
14 Neos\Flow\Aop\Advice\AdviceChain::proceed(Neos\Flow\Aop\JoinPoint)
13 Neos\Neos\Controller\Backend\ModuleController::indexAction(array|3|)
12 call_user_func_array(array|2|, array|1|)
11 Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod()
10 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
9 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
8 Neos\Flow\Mvc\Dispatcher_Original::dispatch(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
7 call_user_func_array(array|2|, array|2|)
6 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("dispatch", array|2|)
5 Neos\Flow\Mvc\DispatchComponent_Original::handle(Neos\Flow\Http\Component\ComponentContext)
4 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
3 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
2 Neos\Flow\Http\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()


HTTP REQUEST:
[request was empty]

HTTP RESPONSE:
[response was empty]

PHP PROCESS:
Inode: 5083718
PID: 11939
UID: 10000
GID: 1003
User: nodomainuser

    [array] =>
        previousException:
        [string] => Exception #499 in line 63 of /var/www/html/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/Neos_Media_Domain_Model_ThumbnailGenerator_DocumentThumbnailGenerator.php: not authorized `/var/www/html/Data/Temporary/Production/ResourceFiles/c1bfe0fd3619acc0fc41211a831237792e482acf-1590127998.2913-11939' @ error/constitute.c/ReadImage/412

Hallo Tobias,
In der bestes Exception Findet sich ein „not authorized“, sieht so aus als sei auf dem Server ein Problem mit der Berechtigung oder die verwendete Grafik Bibliothek ist nicht richtig konfiguriert. Welche wird denn eingesetzt?

Guten Morgen Daniel,

keine Ahnung ich habe mal den Admin gefragt. Normale Bilder Funktionieren ohne Probleme.

Hallo Zusammen,

hat sich hier noch mal was ergeben? Ich habe aktuell das gleiche Problem.

Bin gerade noch am Suchen, scheint aber eine Änderung in Imagick zu sein:

Previous exception: Exception #499 in line 63 of /app/Data/Temporary/Development/SubContextDocker/Cache/Code/Flow_Object_Classes/Neos_Media_Domain_Model_ThumbnailGenerator_DocumentThumbnailGenerator.php: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408

Noch ein paar Hintergründe dazu: Mit einem Sicherheits-Update von ImageMagick wurden neue Standard-Einstellungen ausgeliefert, die das Lesen von PDFs nicht zulassen. Die Lücke war damals in GhostScript.

Du findest in der ImageMagick Policy-Konfiguration, je nach OS z.B. unter /etc/ImageMagick/policy.xml, die folgende Zeile:

<policy domain="coder" rights="none" pattern="PDF" />

D.h. ImageMagick hat keine Rechte auf PDF-Files. Du kannst diese Konfiguration z.B. so anpassen, dass read und write möglich sind:

<policy domain="coder" rights="read | write" pattern="PDF" />