tcpdf error permission denied cuz invoice job create folder with root permission instead of www-data
-
hi
similar to this : https://forum.cloudron.io/topic/14965/which-user-for-cron-task/8
when I click 'launch now' the job runs and create invoices...

... but the folder generated are root-owned.
Then I got an error when I go to the invoice page and try to generate the PDF.
To fix I need to change the owner of the folder from root to www-data. -
I was trying to reproduce this on a fresh instance, but I don't seem to even have this menu entry for Scheduled Jobs in the Admin Tools. Are you using any 3rdparty module in dolibarr?
Edit: found the module to enable, it is just called "Scheduled Jobs" however running the invoices job does not create any folders here to verify. If you have any more detailed description how to setup such an invoice for manual cron creation, to reproduce the problem, this would help much.
-
i'm OP, lost my "crush" account...
To produce an invoice you must :
- go to invoice
- create a new one, put some lines of product / service in it
- convert the draft in "template" it's a button down the page next to "validate" / "clone" / "delete", then it will show a new page where you can set up the recurring feature (period, start date, number of iteration etc.). Put daytime minus 1 day to be sure the system see it as "to generate"
- Next go to schedule jobs module then run it, it will see the template you setup earlier as eligible for invoice creation.
- invoice should be created and the folder in /dolibarr/facture/<PROVXXX> should appear with root permission on it
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login