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.2k 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
    #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
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #25

              I was reading again through the cron section at https://invoiceninja.github.io/en/self-host-installation/ and I while I don't fully get it, I think the root issue is, that we run both a scheduler and the queue worker and it seems one is sufficient. But I am not 100% sure from those docs.

              I have published a new package which disables the scheduler and only relies on the queue. @Dave-Swift can you check if this solves the problem?

              1 Reply Last reply
              2
              • Dave SwiftD Offline
                Dave SwiftD Offline
                Dave Swift
                wrote on last edited by
                #26

                Thanks @nebulon. I have installed the update and will let you know when I have enough data. Fingers crossed.

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

                  @nebulon My recurring invoices are now not running at all. 😅

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

                    Alright, I've brought back that service then. I guess we have to debug this in more detail then.

                    1 Reply Last reply
                    2
                    • Dave SwiftD Offline
                      Dave SwiftD Offline
                      Dave Swift
                      wrote on last edited by
                      #29

                      Thank you, I updated and payment went through right away.

                      I wonder if recurring invoices I made before the first change you made were still billed twice but the new ones will only be billed once?

                      Do you think that is possible? I tried doing some daily test recurring invoices and they were not billed in duplicate.

                      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