Open chrissi55 opened 1 year ago
The error log in NC is as follows:
[onlyoffice] Fehler: Exception: Im Dokumentenservice ist ein Fehler aufgetreten: Error while downloading the document file to be converted. at <<closure>>
0. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 95
OCA\Onlyoffice\DocumentService->ProcessConvServResponceError()
1. /var/www/nextcloud/apps/onlyoffice/lib/preview.php line 269
OCA\Onlyoffice\DocumentService->GetConvertedUri()
2. /var/www/nextcloud/lib/private/Preview/ProviderV1Adapter.php line 53
OCA\Onlyoffice\Preview->getThumbnail()
3. /var/www/nextcloud/lib/private/Preview/GeneratorHelper.php line 65
OC\Preview\ProviderV1Adapter->getThumbnail()
4. /var/www/nextcloud/lib/private/Preview/Generator.php line 343
OC\Preview\GeneratorHelper->getThumbnail()
5. /var/www/nextcloud/lib/private/Preview/Generator.php line 162
OC\Preview\Generator->getMaxPreview()
6. /var/www/nextcloud/lib/private/Preview/Generator.php line 114
OC\Preview\Generator->generatePreviews()
7. /var/www/nextcloud/lib/private/PreviewManager.php line 185
OC\Preview\Generator->getPreview()
8. /var/www/nextcloud/core/Controller/PreviewController.php line 144
OC\PreviewManager->getPreview()
9. /var/www/nextcloud/core/Controller/PreviewController.php line 113
OC\Core\Controller\PreviewController->fetchPreview()
10. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
OC\Core\Controller\PreviewController->getPreviewByFileId()
11. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
12. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
13. /var/www/nextcloud/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
14. /var/www/nextcloud/lib/base.php line 1047
OC\Route\Router->match()
15. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /core/preview?fileId=6666619&c=a9c0574a4acdaf999665169dab9c8499&x=250&y=250&forceIcon=0&a=0
from CLIENT-IP by username at 2023-01-19T08:32:26+01:00
The fatals deliver the following details:
[onlyoffice] Fatal: Download without access right
GET /apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6NjY2NjYxOSwidXNlcklkIjoiY2hyaXN0aWFuIn0.wYK2bQQofIEAg5Qihcv1epz9KgU4O0aR-4pUv4Uri2M
from 172.17.0.2 by username at 2023-01-19T08:32:24+01:00
I got same problem ..
⚠️ This issue respects the following points: ⚠️
Bug description
Steps to reproduce:
Nextcloud Server 25.0.x (Error exist since Update from 24.0.x to 25.0.x) PHP 8.1 PostgreSQL 15.1 ubuntu server 22.04.1 (as VM under vSphere 7)
My system integrated external storage via NFS Share as "local". (on a fileserver a nfs-server delivers space to nextcloud, that is mounted as nfs share to a local folder on the nextcloud server and offers this share as "local" external storage to NC Server)
Everytime i upload a PDF file to an external storage i get 4 errors in seconds
3 times Fatal onlyoffice Download without access right followed by 1 time Error onlyoffice Exception: Im Dokumentenservice ist ein Fehler aufgetreten: Error while downloading the document file to be converted.
My ONLYOFFICE Server is running as docker image on the same server, that hosts my NC Server. ONLYOFFICE is reachable under port 443 mapped to 8443 Settings for onlyoffice in NC Admin pages delivers a "green" feedback when saving my settings. pdf files are not tagged as supported filetype in onlyoffice settings!
The behaviour is reproducable. It concerned every allowed user and groupmember in my little cloud instance. (not more than 35 users at the moment)
ONLYOFFICE itself seems to work without failures. Users can create, edit office files. Users can check the status of the onlyoffice server by https://domain.onlyoffice.net
Steps to reproduce
Expected behavior
Uploading pdf files to an external space / storage mounted (local, via smb ) should not cause onlyoffice to produce fatals or errors.
Installation method
Other Community project
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
I uploaded pdf files to groupfolders -> without causing the errors / fatals I uploaded to my nextcloud space (internal storage) -> without causing the errors / fatals I uploaded to any external storage (in my case mounted storage as NFS share from fileserver) -> errors /fatals occur
In every storage saving / uploading / editing office files (saving / uploading pdf files) is possible without obviously errors for the clients.
Additional info
Uploading a pdf file via webdav (under linux i have used double commander to copy from local to remote dir) does not affect the error log! First time i open the uploaded file with the browser (webui of nextcloud) i see the error log filling with errors and fatals. There are no errors / restrictions on client side(!) - clients can open those pdf files correctly. But the server side logs errors / fatals every first time of opening the file after upload. Why this concerned "onlyoffice" - don't know?!
I haven't tested it yet, but i suppose that it will be the same behaviour when uploading a pdf via nfs / samba first and later opening the file via WebUI in a browser.