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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Stirling-PDF
  3. PDF to Word don't work sudo issue

PDF to Word don't work sudo issue

Scheduled Pinned Locked Moved Solved Stirling-PDF
6 Posts 3 Posters 327 Views 3 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.
  • I Offline
    I Offline
    Ixapack
    wrote on last edited by
    #1

    Hello developers,

    I encountered several errors while trying to convert a PDF to DOCX using the following command on the log.

    soffice --headless --nologo --infilter=writer_pdf_import --convert-to docx --outdir /tmp/output_8499419009593593499 /tmp/input_6190689326235252714.pdf
    The errors included:

    javaldx failed!
    Warning: failed to read path from javaldx
    dconf-CRITICAL **: unable to create directory '/root/.cache/dconf': Permission denied. dconf will not work properly.
    Fontconfig error: No writable cache directories

    If im running the command from the terminal with the sudo, that work !

    sudo soffice --headless --nologo --infilter=writer_pdf_import --convert-to docx --outdir /tmp/output_8499419009593593499 /tmp/input_6190689326235252714.pdf
    It seems that the errors were related to permissions. Using sudo allowed the command to execute successfully. However, it would be great if these permission issues could be addressed so that the command can run without requiring sudo.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      froodle
      wrote on last edited by
      #2

      FYI to Cloudron guys, Users that have reported this issue often say its some permission issue
      https://github.com/Stirling-Tools/Stirling-PDF/issues/2928

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ixapack
        wrote on last edited by
        #3

        Hello
        If I understand correctly, the issue was resolved by changing the custom user to none on the Docker image. Please Cloudron teams can you make the necessary adjustments to the image package?

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Not sure what a none customer user would be in that context. But from a quick glance it seems instead of running soffice as root to solve this, we should see how to configure the required temporary or cache directories correctly.

          1 Reply Last reply
          0
          • nebulonN nebulon marked this topic as a question on
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            Setting the correct HOME value fixed the issue. New package is out.

            Apparently supervisor does not set HOME automatically, which was the root cause.

            1 Reply Last reply
            1
            • nebulonN nebulon has marked this topic as solved on
            • I Offline
              I Offline
              Ixapack
              wrote on last edited by
              #6

              Thank you
              Works for me !

              1 Reply Last reply
              1
              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