Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Dolibarr
  3. tcpdf error permission denied cuz invoice job create folder with root permission instead of www-data

tcpdf error permission denied cuz invoice job create folder with root permission instead of www-data

Scheduled Pinned Locked Moved Dolibarr
6 Posts 2 Posters 67 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Crush33
    wrote last edited by
    #1

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

    c7a1a45f-b670-4f66-9673-fd71d4b14961-image.jpeg

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

    jamesJ 1 Reply Last reply
    2
    • C Crush33

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

      c7a1a45f-b670-4f66-9673-fd71d4b14961-image.jpeg

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

      jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @crush33

      @Crush33 said:

      but the folder generated are root-owned

      What folder exactly? Can you give more details so we can reproduce this faster?

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Crush33
        wrote last edited by
        #3

        folder dolibarr / facture / (PROVXXXX) for example
        this folder is created when invoice is created and contain the generated PDF

        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          Hello @crush33
          This should have been fixed.
          Are you using the latest version of the Dolibarr app?

          1 Reply Last reply
          1
          • C Offline
            C Offline
            Crush33
            wrote last edited by
            #5

            yep, on multiple instances.
            Note that I do NOT use cron, I manually click on the button to generate my invoices each month.

            1 Reply Last reply
            1
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote last edited by
              #6

              Hello @crush33
              Thanks for the details.

              1 Reply Last reply
              1

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search