Open Frigbog opened 4 years ago
Why /var/www/nextcloud/tmp
, this looks very unusual?
I don't see why that should matter provided the Apache user has sufficient permissions of that folder? Anyway, this path was the result of some testing. Originally the Nextcloud tempdir was placed on nfs storage (/nfsdir/tmp) and I was just testing to see whether the nfs connection was the cause and it wasn't since it also didn't work on local storage. PHP is also configured to store temp files on nfs (/nfsdir/upload) The only reason for the error I can think of is that the pfd file actually is not created. Can this be traced?
In modern systemd-based distributions, /tmp is jailed in /tmp/systemd-private-7494c9c8c3fb4ab4vaa248b04267ec377-httpd.service-Q9VuQi/
That makes a huge difference if one process is within the service with the jailed temp, and the other goes not (cron). /dev/shm can be taken as alternative.
Nextcloud is not configured to use /tmp for temporary storage. It uses an nfs mount point (/nfsdir/tmp) which works well. I see Nextcloud using it all the time, i.e. when previews are being generated the directory is used for temporary storing .png files. When I upload an Office document into Nextcloud not a single file is put there, so it seems the error is correct. I see LibreOffice being used for generating the preview file but not for the pdf document. Why is that? How can this be troubleshooted?
Apparently I'm not the only one with the problem that this app doesn't work. Upgrading to version 1.3.2 did not solve the problem. It's been over a month since there was any response at all. Is this issue considered valid or should I just uninstall the app?
Is this still valid?
My system fails to generate a PDF file when uploading an Office document.
Steps to reproduce
Expected behaviour
A PDF file is created and two files exist (document.docx and document.pdf)
Actual behaviour
A PDF file is not created.
Error message in nextcloud.log: {"reqId":"ySR0SbbTnS3J44Slpjql","level":3,"time":"2020-04-24T14:00:00+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"/cron.php","message":"fopen(/var/www/nextcloud/tmp/oc_tmp_yiz0a1-.pdf): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/View.php#1042","userAgent":"--","version":"18.0.4.2"}
File /var/www/nextcloud/tmp/oc_tmp_yiz0a1-.pdf does not exist File /var/www/nextcloud/tmp/oc_tmp_yiz0a1-.png exists. Preview works.
PDF Converter app
PDF Converter app version: 1.3.1
Server configuration
Operating system: Debian 10.3
Web server: Apache/2.4.38 (Debian)
Database: MariaDB 10.4.12
PHP version: PHP 7.4.5
Nextcloud Version: Nextcloud 18.0.4
**Where did you install Nextcloud from: Downloaded server package from Nextcloud
Signing status: md5sum --c nextcloud-18.0.4.tar.bz2.md5 nextcloud-18.0.4.tar.bz2: OK
List of activated apps:
Nextcloud configuration:
Are you using external storage, if yes which one: nfs
Are you using encryption: no
Server log (data/nextcloud.log)
Libreoffice is installed: dpkg-query -l | grep -i libreoffice
ii libreoffice 1:6.1.5-3+deb10u5 amd64 office productivity suite (metapackage)