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. Duplicate Recurring Invoices

Duplicate Recurring Invoices

Scheduled Pinned Locked Moved Unsolved Invoice Ninja
29 Posts 6 Posters 4.3k 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.
  • Dave SwiftD Offline
    Dave SwiftD Offline
    Dave Swift
    wrote on last edited by
    #5

    Yes I have. It is empty.
    CleanShot 2024-02-06 at 22.05.37@2x.png

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

      @Dave-Swift Is this InvoiceNinja 5 or the old one Invoice Ninja 4? The link/solution you posted to is for InvoiceNinja 4 (which is totally different from Invoice Ninja 5).

      1 Reply Last reply
      0
      • nebulonN nebulon marked this topic as a question on
      • Dave SwiftD Offline
        Dave SwiftD Offline
        Dave Swift
        wrote on last edited by
        #7

        I’m running the latest version on Cloudron. Sorry this app is fairly new to me.

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

          @Dave-Swift Ah ok. So basically, sometime back we had an app with the app store id com.invoiceninja.cloudronapp. This is Invoice Ninja 4 . Later, the Invoice Ninja team published Invoice Ninja 5. These two versions are totally different and incompatible.

          When the new version v5 came out, we hid the old version and published it with a new app store id com.invoiceninja.cloudronapp2. If you go to the Updates section of the app, is this the id you see i.e com.invoiceninja.cloudronapp2?

          The solution you posted earlier (https://forum.invoiceninja.com/t/recurring-invoices-duplicating/13009/4) is for v4 app and not v5 app (atleast, as far as i can tell , despite it being posted in v5 thread!). I know confusing...

          1 Reply Last reply
          0
          • Dave SwiftD Offline
            Dave SwiftD Offline
            Dave Swift
            wrote on last edited by
            #9

            I understand! I'm running com.invoiceninja.cloudronapp2@1.11.18

            I apologize I didn't realize the post I linked to was for a different version.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #10

              I personally don't trust InvoiceNinja yet, I'm using it but I've configured my own emails instead of any client email so I can always double check whatever will be sent šŸ™‚ , I follow the "trust but verify" mindset for too critical procedures like billing, especially because I'm too new to InvoiceNinja šŸ™‚ . I have indeed some invoices sent in double or with bugs in formatting and data. I have to say not only the docs of InvoiceNinja are not clear, their whole UI is confusing for me.

              1 Reply Last reply
              0
              • Dave SwiftD Offline
                Dave SwiftD Offline
                Dave Swift
                wrote on last edited by
                #11

                No solution to this? InvoiceNinja just broken for recurring invoices? Is that the conclusion?

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

                  Have you contacted the upstream project about this issue for version 5 ?

                  1 Reply Last reply
                  0
                  • Dave SwiftD Offline
                    Dave SwiftD Offline
                    Dave Swift
                    wrote on last edited by
                    #13

                    They told me to check crons. I can't see any, so I'm not sure what to do.

                    Also, I mentioned above in the Cloudron docs it says the cron logs are located at /app/data/storage/logs/cron.log. but that file doesn't exist for me.

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

                      Hm, the package does not actually use cron as such but two long-lived processes working the schedule and queue: https://git.cloudron.io/cloudron/invoiceninja-next-app/-/tree/master/supervisor?ref_type=heads

                      Are both up and running in your failing instance?

                      1 Reply Last reply
                      0
                      • Dave SwiftD Offline
                        Dave SwiftD Offline
                        Dave Swift
                        wrote on last edited by
                        #15

                        Yes, they're running.

                        girishG 1 Reply Last reply
                        0
                        • Dave SwiftD Dave Swift

                          Yes, they're running.

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

                          @Dave-Swift looks like the docs are quite obsolete. I am cleaning them up now.

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

                            @Dave-Swift I think I have found the issue. Looks like we active the internal cron and the package also has a cron of it's own. Getting fixed.

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

                              @Dave-Swift Can you please try with package 1.12.0 ?

                              Dave SwiftD 1 Reply Last reply
                              1
                              • girishG girish

                                @Dave-Swift Can you please try with package 1.12.0 ?

                                Dave SwiftD Offline
                                Dave SwiftD Offline
                                Dave Swift
                                wrote on last edited by
                                #19

                                @girish Thank you. I will let you know after the next recurring invoice goes out in the beginning of March.

                                1 Reply Last reply
                                0
                                • Dave SwiftD Offline
                                  Dave SwiftD Offline
                                  Dave Swift
                                  wrote on last edited by
                                  #20

                                  Unfortunately the double billing is still occurring.

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

                                    @Dave-Swift can you check if /app/data/env has INTERNAL_QUEUE_ENABLED=false ?

                                    1 Reply Last reply
                                    0
                                    • Dave SwiftD Offline
                                      Dave SwiftD Offline
                                      Dave Swift
                                      wrote on last edited by
                                      #22

                                      Yes it does.

                                      490b620f-50aa-42d2-a4e4-59f6f9a8dd4e-CleanShot 2024-03-06 at 09.29.12@2x.png

                                      1 Reply Last reply
                                      0
                                      • Dave SwiftD Offline
                                        Dave SwiftD Offline
                                        Dave Swift
                                        wrote on last edited by
                                        #23

                                        Any ideas on how to solve this? I love InvoiceNinja but haven't fully implemented it because of this issue. Should I just try a fresh install?

                                        1 Reply Last reply
                                        0
                                        • Dave SwiftD Offline
                                          Dave SwiftD Offline
                                          Dave Swift
                                          wrote on last edited by
                                          #24

                                          To investigate further, I performed an analysis of all the running processes on my system using the ps aux command.
                                          Here are the relevant processes I found:

                                          1. Queue Worker Process:
                                          www-data 2129 0.0 0.3 194696 104424 pts/0 S 23:12 0:01 php /app/code/artisan queue:work database
                                          

                                          This process is running the Laravel Artisan queue:work command with the database queue connection.

                                          1. Schedule Worker Process:
                                          www-data 37 0.0 0.3 192452 103156 pts/0 S 22:18 0:05 php /app/code/artisan schedule:work
                                          

                                          This process is running the Laravel Artisan schedule:work command, responsible for executing scheduled tasks.

                                          Apart from these processes, I found multiple Apache web server processes and a Supervisord process, which I don't think are related to the queue or InvoiceNinja application.

                                          Is the presence of a single queue worker process and a separate schedule worker process expected in the standard InvoiceNinja setup on Cloudron?

                                          Could the schedule worker process be contributing to the duplicate recurring invoices issue, or is it unrelated?

                                          Are there any other processes or configurations I should investigate further to identify the root cause of the duplicate recurring invoices problem?

                                          Thank you for your assistance and guidance in resolving this issue.

                                          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