Flow PDF Conversion not triggered/ working

With a clean install of Nextcloud AIO docker setup, I installed Flow PDF Conversion.
The goal is to convert specifically named xlsx sheets to PDF at creation time
Crons are running with cronjobs, but not this flow. And there is no error in any log i could find.
Last night I’ve been pulling my hair about this. Also because it appeared I needed to install Libreoffice, openjdk and fonts into the nextcloud-aio-nextcloud to be able to run conversion manually. There is no clear instruction in the docs about that either at GitHub - nextcloud/workflow_pdf_converter: Let Nextcloud automatically convert documents to PDF

Steps I took.

  1. Install Nextcloud AIO with Portainer as Stack with default compose.yaml
  2. setup Traefik routes etc.
  3. Add app ‘PDF Conversion
  4. Setup ‘PDF Conversion’ flow. Text below, screenshot below further.
    When: File created
    and: File name is test.xlsx
    Keep original, overwrite existing PDF
  5. upload test.xlsx
  6. wait unpatiently for cron to trigger
  7. wait for 1 hour more then you would think it should take
  8. search for errors in logs, find cronjobs are run, but none for ‘PDF Conversion’
  9. run convert manually, find out software is missing
  10. installing missing software.
  11. remove and re-upload ‘test.xlsx’
  12. watch paint dry for nothing to happen.
  13. research online, wondering why Collabora is not used for the conversion.
  14. found 2 issues on github that seem to be dead.
    No PDF generated, no log · Issue #118 · nextcloud/workflow_pdf_converter · GitHub
    PDF file not generated · Issue #193 · nextcloud/workflow_pdf_converter · GitHub
    Use collabora online if richdocuments is installed · Issue #7 · nextcloud/workflow_pdf_converter · GitHub

Any help is much appreciated. Meanwhile I’ll go to the store to buy a cap for my spotted bald head.

1 Like

Just woke up and rubbed my eyes a couple of times, because I could believe what i saw; files converted to pdf, amazing!
But then I started to doubt my flaky memory and couldn’t remember whether I converted them manually, so I deleted them before I took note of the creation timestamp.

Again, i cant find any mention of the conversion in the logs, only my deletion just now.
Back to 0, hopefully I dont let myself down next time I find the pdf file. Atleast my new cap prevents me from pulling more hairs.

Edit: appearantly I didn’t really enable debug logging. Now that I have, I still cannot find an error pointing to the right direction.

[{"reqId":"SSYzi8S9vQbsHhmUoJuj","level":0,"time":"2024-02-25T21:49:15+00:00","remoteAddr":"172.20.0.1","user":"admin","app":"logreader","method":"PUT","url":"/apps/logreader/api/settings","message":"Updating AppConfig: liveLog => true","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"logreader"},"id":"65dbb5e5e5f8f"},
{"reqId":"SSYzi8S9vQbsHhmUoJuj","level":0,"time":"2024-02-25T21:49:15+00:00","remoteAddr":"172.20.0.1","user":"admin","app":"logreader","method":"PUT","url":"/apps/logreader/api/settings","message":"Updating AppConfig: liveLog => true","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"logreader"},"id":"65dbb5e5e5f8f"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":0,"time":"2024-02-25T21:49:32+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow activation: rules were requested for operation PDF conversion","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0b0c"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":0,"time":"2024-02-25T21:49:32+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow rule qualified to run PDF conversion, config: {\"id\":6,\"class\":\"OCA\\WorkflowPDFConverter\\Operation\",\"name\":\"\",\"checks\":\"[4]\",\"operation\":\"keep;overwrite\",\"entity\":\"OCA\\WorkflowEngine\\Entity\\File\",\"events\":\"[\\\"\\\\OCP\\\\Files::postCreate\\\"]\",\"scope_type\":1,\"scope_actor_id\":\"testuser\"}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0af9"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":1,"time":"2024-02-25T21:49:32+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"All qualified flow configurations are going to run PDF conversion","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"1"},"id":"65dbb600c0add"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":1,"time":"2024-02-25T21:49:32+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow handling done for event \\OCP\\Files::postCreate","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"1"},"id":"65dbb600c0aca"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":0,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow activated by event \\OCP\\Files::postWrite","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0ab8"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":0,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow activation: rules were requested for operation PDF conversion","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0aa5"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":0,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"No flow configurations is going to run PDF conversion","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0a93"},
{"reqId":"49qurPUFgfsB4RO3zpTN","level":1,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"PUT","url":"/remote.php/dav/files/testuser/test009.xlsx","message":"Flow handling done for event \\OCP\\Files::postWrite","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"1"},"id":"65dbb600c0a80"},
{"reqId":"KHiTu82psgpo2bIyZfy3","level":0,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"GET","url":"/core/preview?fileId=985&x=32&y=32&mimeFallback=true&a=0","message":"Flow activated by event \\OCP\\Files::postWrite","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0a6d"},
{"reqId":"KHiTu82psgpo2bIyZfy3","level":1,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"GET","url":"/core/preview?fileId=985&x=32&y=32&mimeFallback=true&a=0","message":"Flow handling done for event \\OCP\\Files::postWrite","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"1"},"id":"65dbb600c0a5b"},
{"reqId":"KHiTu82psgpo2bIyZfy3","level":0,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"GET","url":"/core/preview?fileId=985&x=32&y=32&mimeFallback=true&a=0","message":"Flow activated by event \\OCP\\Files::postCreate","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"0"},"id":"65dbb600c0a48"},
{"reqId":"KHiTu82psgpo2bIyZfy3","level":1,"time":"2024-02-25T21:49:33+00:00","remoteAddr":"172.20.0.1","user":"testuser","app":"workflowengine","method":"GET","url":"/core/preview?fileId=985&x=32&y=32&mimeFallback=true&a=0","message":"Flow handling done for event \\OCP\\Files::postCreate","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"workflowengine","level":"1"},"id":"65dbb600c0a34"}]


I’ve tried some more troubleshooting, but cannot find the error.
As we can see in the logs above, the flow is triggered, we can even see the specific rule.
But there is no error I can investigate to solve.

Anybody can help me with the issue?