richdocumentscode
richdocumentscode copied to clipboard
Exporting/downloading a PDF document creates an empty (zero bytes) file
Describe the bug Exporting a document in Collabora creates an empty (zero bytes) file.
Steps to replicate it:
- Create a new document.
- Add some text.
- Click
File > Download As > PDF Document
Server details
Operating system: Ubuntu 22.04.2 LTS
Web server: nginx/1.18.0
Database: psql (PostgreSQL) 12.11
PHP version: PHP 8.1.18
Nextcloud version: 25.0.6
Version of the richdocuments app Nextcloud Office: 7.1.3
Version of Collabora Online Collabora Online - Built-in CODE Server: 22.5.1301
Logs
Nextcloud log (data/nextcloud.log)
None
I am experiencing the same issue.
I can reproduce this behavior, but there are multiple possibilities based on my reading of some related and upstream threads.
- Can you post all the entry/entries created in your
coolwsd.logwhen you do an export? - Are you running inside a container (Docker/LXC)?
For me the only entry logged is:
wsd-00157-02136 2023-10-11 14:58:13.904390 +0000 [ docbroker_05f ] WRN Empty download: [id: K7Hm6aEjEMjIjE9d2ET6ypvIbyOjS7TYUxnN7RcAKfQGcKdyVbS7cOCPXyw7TTuy, url: ../..//Welcome%20to%20Nextcloud%20Hub.pdf].| wsd/DocumentBroker.cpp:3023
Thanks for the note. I'd love to assist with any logging, but unfortunately in the months since, I moved away from the bundled AppImage where this issue arose and since installed Collabora Code on the server, which fixed the problem and also offered a performance boost, etc.
But if it's any help though, the server this issue appeared on did not run Docker or any other containerisation.