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. Invoice Ninja
  3. Invoice ninja server 500 internal error

Invoice ninja server 500 internal error

Scheduled Pinned Locked Moved Solved Invoice Ninja
51 Posts 9 Posters 4.0k Views 11 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.
  • humptydumptyH humptydumpty

    Per upstream recommendation, in the .env file I've changed from FALSE to hosted_ninja:

    PHANTOMJS_PDF_GENERATION=hosted_ninja
    

    Now, PDF's are being generated edit: it's a hit or miss, but my emails are being sent correctly 😲

    This leaves the permission issue but I'm also getting a new warning: snappdf not enabled

    image.png

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

    @humptydumpty How do I find the health check ?

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

      OK, I added the
      PDF_GENERATOR=hosted_ninja
      line to the env file, restarted the app and its working again.
      Thanks humptydumpty.

      humptydumptyH 1 Reply Last reply
      1
      • A AartJansen

        OK, I added the
        PDF_GENERATOR=hosted_ninja
        line to the env file, restarted the app and its working again.
        Thanks humptydumpty.

        humptydumptyH Offline
        humptydumptyH Offline
        humptydumpty
        wrote on last edited by humptydumpty
        #17

        @AartJansen No problem. The health check can be found in the bottom left corner by clicking on the i icon.

        85a7d9a1-feae-4ec7-a3ff-6f65bdda58b1-image.png

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

          I could reproduce the problem in my test instance. Debugging as to what has changed.

          1 Reply Last reply
          1
          • luckowL Offline
            luckowL Offline
            luckow
            translator
            wrote on last edited by
            #19

            Hmpf. PDF_GENERATOR=hosted_ninja works, but it feels wrong to add a third-party provider to my invoicing app. An app where the creation of PDFs at the end of the month does not work is also a problem. 🙂

            Pronouns: he/him | Primary language: German

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

              This should be fixed now in the latest package.

              humptydumptyH 1 Reply Last reply
              2
              • girishG girish

                This should be fixed now in the latest package.

                humptydumptyH Offline
                humptydumptyH Offline
                humptydumpty
                wrote on last edited by
                #21

                @girish Do I need to undo my temp fix that I did above after updating?

                luckowL 1 Reply Last reply
                0
                • humptydumptyH humptydumpty

                  @girish Do I need to undo my temp fix that I did above after updating?

                  luckowL Offline
                  luckowL Offline
                  luckow
                  translator
                  wrote on last edited by
                  #22

                  @humptydumpty I have removed PDF_GENERATOR=hosted_ninja and can confirm that the PDF creation works.
                  Thank you Cloudron team.

                  Pronouns: he/him | Primary language: German

                  1 Reply Last reply
                  3
                  • humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by
                    #23

                    @luckow Invoices/quotes emails are not being sent to the client when I remove PDF_GENERATOR=hosted_ninja

                    Create a fake client & invoice and send it to yourself. Is it working?

                    A tip I received from the upstream dev is to BCC yourself by going to:

                    IN dashboard > settings > Advanced Settings > Email Settings >BCC Email

                    1 Reply Last reply
                    0
                    • humptydumptyH Offline
                      humptydumptyH Offline
                      humptydumpty
                      wrote on last edited by
                      #24

                      @girish email delivery doesn't work for me unless I keep PDF_GENERATOR=hosted_ninja in the env file. PDF generation works fine with or without that line now. Should I report this upstream as a new/separate issue?

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

                        oh crap neither does mine!
                        I've sent quite a few reminders today, and new invoices, I take it they are just failing silently and not queued anywhere?

                        1 Reply Last reply
                        1
                        • luckowL Offline
                          luckowL Offline
                          luckow
                          translator
                          wrote on last edited by luckow
                          #26

                          You are right. There is something wrong with sending emails. I tried to send offers to my own e-mail address and checked https://my.example.org/#/emails-eventlog.
                          The emails are going out, but to a completely different email address.
                          Investigating (Invoice Ninja 5.10.2)

                          Pronouns: he/him | Primary language: German

                          1 Reply Last reply
                          1
                          • luckowL Offline
                            luckowL Offline
                            luckow
                            translator
                            wrote on last edited by
                            #27

                            ok. a few hours later.

                            • Fresh install of invoice ninja seems to work.
                            • my updated instance sends email exclusively to the mail address from user 1.
                            • dashboard Recent Activity shows the problem

                            sending mails works
                            Stephan Luckow emailed invoice RG-240481 for ACME inc. to Jane Doe

                            sending mails does not work anymore
                            Stephan Luckow emailed quote 0023-0052 for ACME inc. to

                            to is empty. Maybe there is a default setting in the code, if no "to" is set, it will be sent to the administrator account (or user 1).

                            I have restored old versions of IN from backups.
                            Up to v1.13.5, sending mails works. In v1.13.6 I have a problem with logging into my account. Next I will test v1.13.7.

                            Side quest: In the latest version (in my updated instance) it is impossible to change the mail address of user 1 via the user interface.

                            Pronouns: he/him | Primary language: German

                            1 Reply Last reply
                            1
                            • luckowL Offline
                              luckowL Offline
                              luckow
                              translator
                              wrote on last edited by
                              #28

                              In my case, the problem starts with the emails in v1.13.7. Maybe in v1.13.6, but I can't log in in that version.
                              Next: updating from v1.13.5

                              Pronouns: he/him | Primary language: German

                              luckowL 1 Reply Last reply
                              0
                              • luckowL luckow

                                In my case, the problem starts with the emails in v1.13.7. Maybe in v1.13.6, but I can't log in in that version.
                                Next: updating from v1.13.5

                                luckowL Offline
                                luckowL Offline
                                luckow
                                translator
                                wrote on last edited by
                                #29

                                @luckow ok. reproducible builds / updates. v1.13.5 -> v1.13.6 (no log-in possible) -> v1.13.7 (mails do not work)
                                next: migrate broken app into a new installation.

                                Pronouns: he/him | Primary language: German

                                1 Reply Last reply
                                1
                                • luckowL Offline
                                  luckowL Offline
                                  luckow
                                  translator
                                  wrote on last edited by
                                  #30

                                  The moment I restore the settings (broken updated instance -> fresh instance), the new instance shows the same behavior. Data is not a problem.

                                  image.png

                                  Pronouns: he/him | Primary language: German

                                  1 Reply Last reply
                                  1
                                  • luckowL Offline
                                    luckowL Offline
                                    luckow
                                    translator
                                    wrote on last edited by
                                    #31

                                    restoring from a working v1.13.5 export -> fresh v1.14.2 produces same behaviour. the moment i restore settings, bam.
                                    comparing json files is not one of my daily tasks, so I decide to do that:

                                    • install a fresh IN
                                    • import data only
                                    • manually click configuration options.

                                    Fun fact: It is possible to set a password that starts with a space for the login. ONLY for login. After you have logged in and your action requires a password confirmation, the leading space will be removed, and your password is incorrect.

                                    Pronouns: he/him | Primary language: German

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

                                      @luckow maybe good to report this password trimming upstream. Great catch and unlikely it gets detected by the devs on their own.

                                      luckowL 2 Replies Last reply
                                      1
                                      • humptydumptyH Offline
                                        humptydumptyH Offline
                                        humptydumpty
                                        wrote on last edited by
                                        #33

                                        That leaves the email deliverability issue. How is PDF generation related to emails not getting sent?

                                        1 Reply Last reply
                                        0
                                        • nebulonN nebulon

                                          @luckow maybe good to report this password trimming upstream. Great catch and unlikely it gets detected by the devs on their own.

                                          luckowL Offline
                                          luckowL Offline
                                          luckow
                                          translator
                                          wrote on last edited by
                                          #34

                                          @nebulon I will try three more times to be sure the leading space is the problem. After hours of trillions of IN instances and attempts, my eyes feel square.

                                          Pronouns: he/him | Primary language: German

                                          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