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. Bad paths for weasyprint & unoconv

Bad paths for weasyprint & unoconv

Scheduled Pinned Locked Moved Stirling-PDF
12 Posts 4 Posters 813 Views 4 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #3

    @ssweber thanks, fix coming - https://git.cloudron.io/packages/stirling-pdf-app/-/merge_requests/30

    1 Reply Last reply
    1
    • S Offline
      S Offline
      ssweber
      wrote on last edited by
      #4

      Thanks for the quick attention, but doesn’t look fixed yet.

      I updated, but I don’t see those settings written to the settings.yml, and it still says they are missing (looking in default paths)

      Is it hard to allow/run an env.sh? Then maybe we can fix the key problem as well by using environmental variables.

      J girishG 2 Replies Last reply
      2
      • S ssweber

        Thanks for the quick attention, but doesn’t look fixed yet.

        I updated, but I don’t see those settings written to the settings.yml, and it still says they are missing (looking in default paths)

        Is it hard to allow/run an env.sh? Then maybe we can fix the key problem as well by using environmental variables.

        J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by joseph
        #5

        @ssweber yes, repoted already. correct fix is at https://git.cloudron.io/packages/stirling-pdf-app/-/merge_requests/31

        1 Reply Last reply
        0
        • S ssweber

          Thanks for the quick attention, but doesn’t look fixed yet.

          I updated, but I don’t see those settings written to the settings.yml, and it still says they are missing (looking in default paths)

          Is it hard to allow/run an env.sh? Then maybe we can fix the key problem as well by using environmental variables.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #6

          @ssweber my bad. I pushed a better fix now. Can you please try?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            ssweber
            wrote on last edited by
            #7

            Sorry, it doesn't seem to be picking up the settings, even though they are in custom_settings.yml. I posted a question to stirling github about that. I'm not sure that it merges custom_settings.yml like you'd assume.

            https://github.com/Stirling-Tools/Stirling-PDF/discussions/3058

            girishG 1 Reply Last reply
            2
            • S ssweber

              Sorry, it doesn't seem to be picking up the settings, even though they are in custom_settings.yml. I posted a question to stirling github about that. I'm not sure that it merges custom_settings.yml like you'd assume.

              https://github.com/Stirling-Tools/Stirling-PDF/discussions/3058

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #8

              @ssweber you are right, the fix doesn't work 😞

              1 Reply Last reply
              0
              • S Offline
                S Offline
                ssweber
                wrote on last edited by
                #9

                It's like they used a time-machine and preemptively fixed this in their main 2 days ago. LOL. Sorry I didn't notice it was so recent.

                We can hang tight and wait till the next release!

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

                  For Cloudron they might need to do the following changes
                  https://github.com/Stirling-Tools/Stirling-PDF/commit/d34c44ed7bbf60d85f96744f99cd38a38911daa3
                  adding
                  PYTHONPATH=/usr/lib/libreoffice/program:/opt/venv/lib/python3.12/site-packages
                  UNO_PATH=/usr/lib/libreoffice/program
                  URE_BOOTSTRAP=file:///usr/lib/libreoffice/program/fundamentalrc

                  and pip install unoserver
                  along with
                  ln -s /usr/lib/libreoffice/program/uno.py /opt/venv/lib/python3.12/site-packages/ &&
                  ln -s /usr/lib/libreoffice/program/unohelper.py /opt/venv/lib/python3.12/site-packages/ &&
                  ln -s /usr/lib/libreoffice/program /opt/venv/lib/python3.12/site-packages/LibreOffice && \

                  (or whatever the python install path is that aligns with unoserver etc)

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

                    We also now start
                    /opt/venv/bin/unoserver --port 2003 --interface 0.0.0.0
                    alongside stirling app.jar

                    The reason is unoconv which we use for file to PDF now is a server and unoconv is depreciated

                    girishG 1 Reply Last reply
                    2
                    • F froodle

                      We also now start
                      /opt/venv/bin/unoserver --port 2003 --interface 0.0.0.0
                      alongside stirling app.jar

                      The reason is unoconv which we use for file to PDF now is a server and unoconv is depreciated

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #12

                      @froodle noted, thank you. we will fix the package per your recommendations.

                      1 Reply Last reply
                      0
                      • F froodle referenced this topic on
                      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