richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Exporting/downloading a PDF document creates an empty (zero bytes) file

Open nooblag opened this issue 2 years ago • 3 comments

Describe the bug Exporting a document in Collabora creates an empty (zero bytes) file.

Steps to replicate it:

  1. Create a new document.
  2. Add some text.
  3. 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

nooblag avatar May 09 '23 01:05 nooblag

I am experiencing the same issue.

thefeiter avatar May 11 '23 16:05 thefeiter

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.log when 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

joshtrichards avatar Nov 11 '23 15:11 joshtrichards

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.

nooblag avatar Nov 11 '23 17:11 nooblag