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. Invoice Ninja
  3. Not creating pdfs after updates

Not creating pdfs after updates

Scheduled Pinned Locked Moved Invoice Ninja
25 Posts 5 Posters 7.1k Views 5 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

    It seems it broke upstream . Several reports - https://github.com/invoiceninja/invoiceninja/discussions/10466 https://github.com/invoiceninja/invoiceninja/issues/10467 https://github.com/invoiceninja/dockerfiles/issues/683 etc

    1 Reply Last reply
    1
    • A Offline
      A Offline
      AartJansen
      wrote on last edited by
      #4

      As a work around I changed a line in the env file to:
      PHANTOMJS_PDF_GENERATION=true

      Now my pdf's generate and invoices email sucessfully ( the non-generation also stopped email sending).

      humptyH 1 Reply Last reply
      3
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #5

        I have a fix at https://git.cloudron.io/packages/invoiceninja-app/-/merge_requests/40

        1 Reply Last reply
        2
        • humptyH Offline
          humptyH Offline
          humpty
          wrote on last edited by
          #6

          voiced my concern upstream and linked Girish's merge request for visibility

          1 Reply Last reply
          1
          • A AartJansen

            As a work around I changed a line in the env file to:
            PHANTOMJS_PDF_GENERATION=true

            Now my pdf's generate and invoices email sucessfully ( the non-generation also stopped email sending).

            humptyH Offline
            humptyH Offline
            humpty
            wrote on last edited by humpty
            #7

            @AartJansen Is the template design all messed up for you?

            I'm using the clean template, and all the fields are squished to the left in the actual PDF and in the preview.

            A 1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #8

              @humptydumpty I think there are reports like https://github.com/invoiceninja/invoiceninja/issues/10478

              humptyH 1 Reply Last reply
              2
              • girishG girish

                @humptydumpty I think there are reports like https://github.com/invoiceninja/invoiceninja/issues/10478

                humptyH Offline
                humptyH Offline
                humpty
                wrote on last edited by humpty
                #9

                @girish I checked my PDF's (I send a copy to myself) and it started with 5.11.11. I'm not sure what they're doing upstream, but PDF issues keep recurring every few updates 🤦‍♂️

                jdaviescoatesJ 1 Reply Last reply
                0
                • humptyH Offline
                  humptyH Offline
                  humpty
                  wrote on last edited by
                  #10

                  LOL so I'm using a Logitech MX Mini keyboard and the F7 button also doubles as an emoji window/tool thing. Nodebb doesn't have a male facepalm icon so it tossed a female facepalm and the male symbol 🤣

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • humptyH humpty

                    @AartJansen Is the template design all messed up for you?

                    I'm using the clean template, and all the fields are squished to the left in the actual PDF and in the preview.

                    A Offline
                    A Offline
                    AartJansen
                    wrote on last edited by
                    #11

                    @humptydumpty No they look the same with either generated for me. (thankfully)

                    1 Reply Last reply
                    1
                    • A Offline
                      A Offline
                      AartJansen
                      wrote on last edited by AartJansen
                      #12

                      Now my workaround doesn't work either, the invoices are unreadable/blank for mail recipients.

                      1 Reply Last reply
                      0
                      • humptyH humpty

                        LOL so I'm using a Logitech MX Mini keyboard and the F7 button also doubles as an emoji window/tool thing. Nodebb doesn't have a male facepalm icon so it tossed a female facepalm and the male symbol 🤣

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #13

                        @humptydumpty said in Not creating pdfs after updates:

                        Nodebb doesn't have a male facepalm icon so it tossed a female facepalm and the male symbol 🤣

                        this happens me when using emojis on mobile but I eventually worked out you can then edit your post and delete the extra symbol

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        1
                        • humptyH humpty

                          @girish I checked my PDF's (I send a copy to myself) and it started with 5.11.11. I'm not sure what they're doing upstream, but PDF issues keep recurring every few updates 🤦‍♂️

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #14

                          @humptydumpty said in Not creating pdfs after updates:

                          @girish I checked my PDF's (I send a copy to myself) and it started with 5.11.11. I'm not sure what they're doing upstream, but PDF issues keep recurring every few updates 🤦

                          See, I just quoted your post with the extra symbol then deleted it and it change to the above

                          I use Cloudron with Gandi & Hetzner

                          humptyH 1 Reply Last reply
                          2
                          • jdaviescoatesJ jdaviescoates

                            @humptydumpty said in Not creating pdfs after updates:

                            @girish I checked my PDF's (I send a copy to myself) and it started with 5.11.11. I'm not sure what they're doing upstream, but PDF issues keep recurring every few updates 🤦

                            See, I just quoted your post with the extra symbol then deleted it and it change to the above

                            humptyH Offline
                            humptyH Offline
                            humpty
                            wrote on last edited by
                            #15
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #16

                              @AartJansen are you using the latest package 1.16.0 ? The package has now switched to google chrome stable like upstream. Can you check if a fresh installation works for you?

                              A 1 Reply Last reply
                              1
                              • humptyH Offline
                                humptyH Offline
                                humpty
                                wrote on last edited by humpty
                                #17

                                I'm on 1.16.0 (upgraded existing app) and PDFs weren't generating for me which in turn causes invoice emails not to send. I changed false to true in the .env file and it's all working now. PHANTOMJS_PDF_GENERATION=true

                                Do existing apps upgrade properly to the new Chrome thing or should I go with a fresh install? If so, does the normal backup restore/import work in this case or should I use the built-in app's export/import function?

                                1 Reply Last reply
                                1
                                • girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #18

                                  @humptydumpty it should be like below and atleast for new packages it works

                                  PDF_GENERATOR=snappdf
                                  SNAPPDF_CHROMIUM_PATH=/usr/bin/google-chrome-stable
                                  
                                  1 Reply Last reply
                                  2
                                  • humptyH Offline
                                    humptyH Offline
                                    humpty
                                    wrote on last edited by
                                    #19

                                    I'll give those a try soon. Thanks!

                                    1 Reply Last reply
                                    1
                                    • humptyH Offline
                                      humptyH Offline
                                      humpty
                                      wrote on last edited by humpty
                                      #20

                                      @girish I compared my existing .env file to fresh install to see what else has changed and noticed a few things:

                                      In my existing env file, there was a double entry of this section:

                                      DB_HOST=mysql
                                      DB_DATABASE=blablabla
                                      DB_USERNAME=blablabla
                                      DB_PASSWORD=blablabla
                                      DB_PORT=3306
                                      

                                      Then, we have:

                                      Existing env DB_CONNECTION=db-ninja-01
                                      Fresh env DB_CONNECTION=mysql

                                      Existing env TRUSTED_PROXIES=
                                      Fresh env TRUSTED_PROXIES=*

                                      Lastly, we have a few additions that didn't exist before, such as:

                                      PHANTOMJS_KEY='a-demo-key-with-low-quota-per-ip-address'
                                      PHANTOMJS_SECRET=secret
                                      
                                      DELETE_PDF_DAYS=60
                                      DELETE_BACKUP_DAYS=60
                                      
                                      GOOGLE_PLAY_PACKAGE_NAME=
                                      APPSTORE_PASSWORD=
                                      
                                      MICROSOFT_CLIENT_ID=
                                      MICROSOFT_CLIENT_SECRET=
                                      MICROSOFT_REDIRECT_URI=
                                      
                                      APPLE_CLIENT_ID=
                                      APPLE_CLIENT_SECRET=
                                      APPLE_REDIRECT_URI=
                                      
                                      NORDIGEN_SECRET_ID=
                                      NORDIGEN_SECRET_KEY=
                                      
                                      # https://invoiceninja.github.io/en/self-host-installation/#supervisor-for-invoice-ninja-ubuntu-22-04-lts
                                      

                                      I hope copy/pasting these new additions won't mess anything up in the database.

                                      1 Reply Last reply
                                      0
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #21

                                        @humptydumpty yes, the fresh variables are correct. The PHANTOMJS_* should not be required afaik

                                        1 Reply Last reply
                                        2
                                        • girishG girish

                                          @AartJansen are you using the latest package 1.16.0 ? The package has now switched to google chrome stable like upstream. Can you check if a fresh installation works for you?

                                          A Offline
                                          A Offline
                                          AartJansen
                                          wrote on last edited by AartJansen
                                          #22

                                          @girish Yes I have 1.1.6.0... but I don't have those lines in the env file. I'll try just add them manually, before I do a reinstall.

                                          EDIT: Manually adding those lines to the env file has fixed it for me.

                                          1 Reply Last reply
                                          2

                                          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