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.2k 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.
  • luckowL Online
    luckowL Online
    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 Online
      luckowL Online
      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 Online
        luckowL Online
        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 Online
          luckowL Online
          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 Online
            luckowL Online
            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 Online
                  luckowL Online
                  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
                  • vladimir.dV Offline
                    vladimir.dV Offline
                    vladimir.d
                    wrote on last edited by
                    #35

                    @luckow could you try to switch Attach PDF option off on IN dashboard > settings > Advanced Settings > Email Settings and then try to send an email?

                    v1.14.2 seems to be sending emails properly whilst Attach PDF is off.
                    I'm investigating it further now.

                    humptydumptyH 1 Reply Last reply
                    2
                    • vladimir.dV vladimir.d

                      @luckow could you try to switch Attach PDF option off on IN dashboard > settings > Advanced Settings > Email Settings and then try to send an email?

                      v1.14.2 seems to be sending emails properly whilst Attach PDF is off.
                      I'm investigating it further now.

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

                      @vladimir-d I can confirm that the emails get delivered if attach pdf is off. I deleted PDF_GENERATOR=hosted_ninja from the env file and restarted the app before testing. I'm on the lastest IN 1.14.2.

                      1 Reply Last reply
                      0
                      • vladimir.dV Offline
                        vladimir.dV Offline
                        vladimir.d
                        wrote on last edited by
                        #37

                        The problem with sending emails has been fixed. A new app package is going to be released soon.

                        1 Reply Last reply
                        3
                        • 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 Online
                          luckowL Online
                          luckow
                          translator
                          wrote on last edited by
                          #38

                          @nebulon fixed https://github.com/invoiceninja/invoiceninja/pull/9703

                          Pronouns: he/him | Primary language: German

                          1 Reply Last reply
                          2
                          • humptydumptyH Offline
                            humptydumptyH Offline
                            humptydumpty
                            wrote on last edited by
                            #39

                            Well done @luckow @vladimir-d πŸ‘

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

                              Thanks! New package published.

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

                                so the end result is pdf generation & emails (with PDFs) now work without the added PDF_GENERATOR line ?

                                humptydumptyH 1 Reply Last reply
                                0
                                • A AartJansen

                                  so the end result is pdf generation & emails (with PDFs) now work without the added PDF_GENERATOR line ?

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

                                  @AartJansen correct!

                                  1 Reply Last reply
                                  0
                                  • nebulonN nebulon marked this topic as a question on
                                  • nebulonN nebulon has marked this topic as solved on
                                  • d19dotcaD Offline
                                    d19dotcaD Offline
                                    d19dotca
                                    wrote on last edited by
                                    #43

                                    Interestingly I just ran across this issue. I was able to fix it by simply adding in the following: PDF_GENERATOR=snappdf

                                    Odd though as I see others didn't get that working and needed a value of hosted_ninja instead of snappdf. So YMMV as they say. πŸ™‚

                                    --
                                    Dustin Dauncey
                                    www.d19.ca

                                    humptydumptyH 1 Reply Last reply
                                    0
                                    • d19dotcaD d19dotca

                                      Interestingly I just ran across this issue. I was able to fix it by simply adding in the following: PDF_GENERATOR=snappdf

                                      Odd though as I see others didn't get that working and needed a value of hosted_ninja instead of snappdf. So YMMV as they say. πŸ™‚

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

                                      @d19dotca take a look at this thread as the env has some major changes, simply adding those lines brings an existing app up to par with a fresh install https://forum.cloudron.io/topic/13069/not-creating-pdfs-after-updates/25

                                      Look for Girish’s latest post in there

                                      1 Reply Last reply
                                      0
                                      • d19dotcaD Offline
                                        d19dotcaD Offline
                                        d19dotca
                                        wrote on last edited by
                                        #45

                                        Yeah it makes me concerned that the package updates got messed up somewhere along the way to have duplicated some content in the ENV and remove others, but at least it’s an easy fix (manually). πŸ™‚

                                        --
                                        Dustin Dauncey
                                        www.d19.ca

                                        1 Reply Last reply
                                        2
                                        • E Offline
                                          E Offline
                                          Esteban88
                                          wrote on last edited by
                                          #46

                                          Hi, I have the same problem and it is not solved after the updates.

                                          Check the screenshots:

                                          Captura de pantalla_20250129_111706.png Captura de pantalla_20250129_111638.png

                                          The question is how do I give permissions? I don't have a way to edit by commands, right?

                                          J 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