CollaboraOnline / richdocumentscode

Built-in CODE Server app
https://apps.nextcloud.com/apps/richdocumentscode
Apache License 2.0
121 stars 29 forks source link

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

Open nooblag opened 1 year ago

nooblag commented 1 year ago

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 ```
thefeiter commented 1 year ago

I am experiencing the same issue.

joshtrichards commented 1 year ago

I can reproduce this behavior, but there are multiple possibilities based on my reading of some related and upstream threads.

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
nooblag commented 1 year ago

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.