This is my setup check:
-
# ./occ app:enable richdocuments richdocuments already enabled -
# ./occ config:app:get richdocuments wopi_url https://collab.kingma.ch -
# ./occ richdocuments:activate-config ✓ Reset callback url autodetect Checking configuration 🛈 Configured WOPI URL: https://collab.kingma.ch 🛈 Configured public WOPI URL: https://collab.kingma.ch 🛈 Configured callback URL: ✓ Fetched /hosting/discovery endpoint ✓ Valid mimetype response ✓ Valid capabilities entry ✓ Fetched /hosting/capabilities endpoint ✓ Detected WOPI server: Collabora Online Development Edition 25.04.8.1 Collabora URL (used for Nextcloud to contact the Collabora server): https://collab.kingma.ch Collabora public URL (used in the browser to open Collabora): https://collab.kingma.ch Callback URL (used by Collabora to connect back to Nextcloud): autodetected (will use the same URL as your user for browsing Nextcloud)
Both the nextcloud and collabora urls are accesible. Yet when I attempt to open a document in the OnlyOffice application on Fedora I get:
In nextcloud log I see:
{“reqId”:“JYgLbScMr01SuyeaSige”,“level”:3,“time”:“2026-01-10T12:34:07+00:00”,“remoteAddr”:“83.97.85.45”,“user”:“johannes”,“app”:“onlyoffice”,“method”:“GET”,“url”:“/core/preview?fileId=119849&x=32&y=32&mimeFallback=true&v=ef7671&a=0”,“message”:“getConvertedUri: from pdf to jpeg”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0”,“version”:“32.0.3.2”,“exception”:{“Exception”:“GuzzleHttp\Exception\ClientException”,“Message”:“Client error:
POST https://collab.kingma.ch/converter?shardKey=thumb_2914863108resulted in a400 (Bad Request)response”,“Code”:400,“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”:277,“function”:“request”,“class”:“GuzzleHttp\Client”,“type”:“->”,“args”:[“post”," sensitive parameters replaced “,{“0”:“And 1 more entries, set log level to debug to see all entries”,“verify”:”/var/www/html/resources/config/ca-bundle.crt",“timeout”:“120”,“headers”:{“Content-type”:“application/json”,“User-Agent”:“Nextcloud Server Crawler”,“Accept-Encoding”:“gzip”},“body”:“{“async”:false,“url”:“https:\/\/office.kingma.ch\/apps\/onlyoffice\/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTE5ODQ5LCJ1c2VySWQiOiJqb2hhbm5lcyJ9.9OH182AOnzX6PTSrWLZW-XidB4UTQyz95-E3g2xTuLQ”,“outputtype”:“jpeg”,“filetype”:“pdf”,“title”:“thumb_2914863108.pdf”,“key”:“thumb_2914863108”}”,“nextcloud”:{“allow_local_address”:true}}]},{“file”:“/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php”,“line”:408,“function”:“post”,“class”:“OC\Http\Client\Client”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php",“line”:213,“function”:“request”,“class”:“OCA\Onlyoffice\DocumentService”,“type”:“->”,“args”:[" sensitive parameters replaced “,“post”,” sensitive parameters replaced “]},{“file”:”/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php",“line”:101,“function”:“sendRequestToConvertService”,“class”:“OCA\Onlyoffice\DocumentService”,“type”:“->”,“args”:["https://office.kingma.ch/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTE5ODQ5LCJ1c2VySWQiOiJqb2hhbm5lcyJ9.9OH182AOnzX6PTSrWLZW-XidB4UTQyz95-E3g2xTuLQ",“pdf”,“jpeg”,“thumb_2914863108”,false," sensitive parameters replaced “,false]},{“file”:”/var/www/html/custom_apps/onlyoffice/lib/Preview.php",“line”:271,“function”:“getConvertedUri”,“class”:“OCA\Onlyoffice\DocumentService”,“type”:“->”,“args”:[“https://office.kingma.ch/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTE5ODQ5LCJ1c2VySWQiOiJqb2hhbm5lcyJ9.9OH182AOnzX6PTSrWLZW-XidB4UTQyz95-E3g2xTuLQ",“pdf”,“jpeg”,“thumb_2914863108”]},{“file”:“/var/www/html/lib/private/Preview/ProviderV1Adapter.php”,“line”:35,“function”:“getThumbnail”,“class”:“OCA\\Onlyoffice\\Preview”,“type”:"->”,“args”:[“mb_manual_ga-c1037un_c1007un(d)_e.pdf”,4096,4096,false,{“class”:“OC\Files\View”}]},{“file”:“/var/www/html/lib/private/Preview/GeneratorHelper.php”,“line”:45,“function”:“getThumbnail”,“class”:“OC\Preview\ProviderV1Adapter”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},4096,4096]},{“file”:“/var/www/html/lib/private/Preview/Generator.php”,“line”:342,“function”:“getThumbnail”,“class”:“OC\Preview\GeneratorHelper”,“type”:“->”,“args”:[{“class”:“OC\Preview\ProviderV1Adapter”},{“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/pdf”,“”]},{“file”:“/var/www/html/lib/private/Preview/Generator.php”,“line”:117,“function”:“getMaxPreview”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\SimpleFS\SimpleFolder”}," sensitive parameters replaced “,{“class”:“OC\Files\Node\File”},“application/pdf”,”“]},{“file”:”/var/www/html/lib/private/Preview/Generator.php",“line”:87,“function”:“generatePreviews”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},[{“width”:32,“height”:32,“crop”:true,“mode”:“fill”}],“application/pdf”,true]},{“file”:“/var/www/html/lib/private/PreviewManager.php”,“line”:161,“function”:“getPreview”,“class”:“OC\Preview\Generator”,“type”:“->”,“args”:[{“class”:“OC\Files\Node\File”},32,32,true,“fill”," sensitive parameters replaced ***”,true]},{“file”:“/var/www/html/core/Controller/PreviewController.php”,“line”:166,“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”:128,“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”:204,“function”:“getPreviewByFileId”,“class”:“OC\Core\Controller\PreviewController”,“type”:“->”,“args”:[119849,32,32,false,true,“fill”,true]},{“file”:“/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,“line”:118,“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”:153,“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”:321,“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”:1061,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/core/preview”]},{“file”:“/var/www/html/index.php”,“line”:25,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php”,“Line”:111,“message”:“getConvertedUri: from pdf to jpeg”,“exception”:,“CustomMessage”:“getConvertedUri: from pdf to jpeg”},“id”:“69624856aabef”}
