Error: Failed to convert preview

Nextcloud version: 30.0.3
Installed on TrueNas Scale Electric Eel 24.10.0.2

Hello all,

I recently installed a CAD previewer app on Nextcloud, the name of the app is “3D Model Viewer”

When I tried to preview a document, it would be stuck in the “loading” state but would not actually load. I checked the server logs and I have the below.

Any help appreciated. Please let me know if there is more specific information required.

Formatted Log

[richdocuments] Error: Failed to convert preview: Client error: POST https://REDACTED.com/custom_apps/richdocumentscode/proxy.php?req=/cool/convert-to/png resulted in a 403 Forbidden response
GET /core/preview?fileId=856589&x=32&y=32&mimeFallback=true&v=23871b&a=0
from 172.16.10.1 by admin at 16 Dec 2024, 10:50:35

Raw Log

{“reqId”:“EfRxrSnVXRCSIjz0O7MC”,“level”:3,“time”:“2024-12-16T10:50:35+00:00”,“remoteAddr”:“172.16.10.1”,“user”:“admin”,“app”:“richdocuments”,“method”:“GET”,“url”:“/core/preview?fileId=856589&x=32&y=32&mimeFallback=true&v=23871b&a=0”,“message”:“Failed to convert preview: Client error: POST https://REDACTED/custom_apps/richdocumentscode/proxy.php?req=/cool/convert-to/png resulted in a 403 Forbidden response”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36”,“version”:“30.0.3.2”,“exception”:{“Exception”:“GuzzleHttp\Exception\ClientException”,“Message”:“Client error: POST https://REDACTED/custom_apps/richdocumentscode/proxy.php?req=/cool/convert-to/png resulted in a 403 Forbidden response”,“Code”:403,“Trace”:[{“file”:“/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php”,“line”:72,“function”:“create”,“class”:“GuzzleHttp\Exception\RequestException”,“type”:“::”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:209,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\Middleware”,“type”:“::”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:158,“function”:“callHandler”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“::”,“args”:[1," sensitive parameters replaced “,” sensitive parameters replaced “]},{“file”:”/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php",“line”:52,“function”:“GuzzleHttp\Promise\{closure}”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“::”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:251,“function”:“run”,“class”:“GuzzleHttp\Promise\TaskQueue”,“type”:“->”,“args”:[true]},{“file”:“/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php”,“line”:227,“function”:“invokeWaitFn”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“->”,“args”:[]},{“file”:“/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php”,“line”:272,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“->”,“args”:[]},{“file”:“/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php”,“line”:229,“function”:“invokeWaitList”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“->”,“args”:[]},{“file”:“/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php”,“line”:69,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“->”,“args”:[]},{“file”:“/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php”,“line”:189,“function”:“wait”,“class”:“GuzzleHttp\Promise\Promise”,“type”:“->”,“args”:[]},{“file”:“/var/www/html/lib/private/Http/Client/Client.php”,“line”:276,“function”:“request”,“class”:“GuzzleHttp\Client”,“type”:“->”,“args”:[“post”," sensitive parameters replaced “,{“0”:“And 2 more entries, set log level to debug to see all entries”,“verify”:”/var/www/html/resources/config/ca-bundle.crt",“timeout”:5,“nextcloud”:{“allow_local_address”:true},“expect”:false,“multipart”:[{“name”:“Machine Identities.xlsx”,“contents”:null}]}]},{“file”:“/var/www/html/custom_apps/richdocuments/lib/Service/RemoteService.php”,“line”:92,“function”:“post”,“class”:“OC\Http\Client\Client”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/html/custom_apps/richdocuments/lib/Service/RemoteService.php",“line”:72,“function”:“convertTo”,“class”:“OCA\Richdocuments\Service\RemoteService”,“type”:“->”,“args”:[“Machine Identities.xlsx”,null,“png”]},{“file”:“/var/www/html/custom_apps/richdocuments/lib/Preview/Office.php”,“line”:41,“function”:“convertFileTo”,“class”:“OCA\Richdocuments\Service\RemoteService”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},“png”]},{“file”:“/var/www/html/lib/private/Preview/GeneratorHelper.php”,“line”:44,“function”:“getThumbnail”,“class”:“OCA\Richdocuments\Preview\Office”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},4096,4096]},{“file”:“/var/www/html/lib/private/Preview/Generator.php”,“line”:337,“function”:“getThumbnail”,“class”:“OC\Preview\GeneratorHelper”,“type”:“->”,“args”:[{“class”:“OCA\Richdocuments\Preview\OOXML”},{“class”:“OC\Files\Node\File”},4096,4096]},{“file”:“/var/www/html/lib/private/Preview/Generator.php”,“line”:313,“function”:“generateProviderPreview”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\SimpleFS\SimpleFolder”},{“class”:“OC\Files\Node\File”},4096,4096,false,true,“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”,“”]},{“file”:“/var/www/html/lib/private/Preview/Generator.php”,“line”:119,“function”:“getMaxPreview”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\SimpleFS\SimpleFolder”}," sensitive parameters replaced “,{“class”:“OC\Files\Node\File”},“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”,”“]},{“file”:”/var/www/html/lib/private/Preview/Generator.php",“line”:86,“function”:“generatePreviews”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},[{“width”:32,“height”:32,“crop”:true,“mode”:“fill”}],“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”]},{“file”:“/var/www/html/lib/private/PreviewManager.php”,“line”:167,“function”:“getPreview”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},32,32,true,“fill”," sensitive parameters replaced ***”]},{“file”:“/var/www/html/core/Controller/PreviewController.php”,“line”:159,“function”:“getPreview”,“class”:“OC\PreviewManager”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},32,32,true,“fill”]},{“file”:“/var/www/html/core/Controller/PreviewController.php”,“line”:123,“function”:“fetchPreview”,“class”:“OC\Core\Controller\PreviewController”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},32,32,false,true,“fill”,true]},{“file”:“/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,“line”:208,“function”:“getPreviewByFileId”,“class”:“OC\Core\Controller\PreviewController”,“type”:“->”,“args”:[856589,32,32,false,true,“fill”,true]},{“file”:“/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,“line”:114,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OC\Core\Controller\PreviewController”},“getPreviewByFileId”]},{“file”:“/var/www/html/lib/private/AppFramework/App.php”,“line”:161,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OC\Core\Controller\PreviewController”},“getPreviewByFileId”]},{“file”:“/var/www/html/lib/private/Route/Router.php”,“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OC\Core\Controller\PreviewController”,“getPreviewByFileId”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“core.preview.getpreviewbyfileid”}]},{“file”:“/var/www/html/lib/base.php”,“line”:1003,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/core/preview”]},{“file”:“/var/www/html/index.php”,“line”:24,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php”,“Line”:113,“message”:“Failed to convert preview: Client error: POST https://REDACTED/custom_apps/richdocumentscode/proxy.php?req=/cool/convert-to/png resulted in a 403 Forbidden response”,“exception”:,“CustomMessage”:“Failed to convert preview: Client error: POST https://REDACTED/custom_apps/richdocumentscode/proxy.php?req=/cool/convert-to/png resulted in a 403 Forbidden response”},“id”:“67600f9925fa4”}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.