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. InvoiceNinja cron not enabled

InvoiceNinja cron not enabled

Scheduled Pinned Locked Moved Solved Invoice Ninja
19 Posts 5 Posters 4.8k 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.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by d19dotca
    #8

    I can confirm a fresh deployment also has the cron-related error. This is using v5.1.41-C45, which comes on app package com.invoiceninja.cloudronapp2@0.6.1.

    1bc8f54c-c8b6-455e-86ba-51833d466305-image.png

    I'm sure this has already been viewed but including it for quick reference: https://invoiceninja.github.io/docs/self-host-troubleshooting/#cron-not-running-queue-not-running

    --
    Dustin Dauncey
    www.d19.ca

    nebulonN 1 Reply Last reply
    0
    • d19dotcaD d19dotca

      I can confirm a fresh deployment also has the cron-related error. This is using v5.1.41-C45, which comes on app package com.invoiceninja.cloudronapp2@0.6.1.

      1bc8f54c-c8b6-455e-86ba-51833d466305-image.png

      I'm sure this has already been viewed but including it for quick reference: https://invoiceninja.github.io/docs/self-host-troubleshooting/#cron-not-running-queue-not-running

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #9

      I can also see the warning on fresh installs, however after adding a client and sending an invoice, eventually it goes away.
      Thing is the actual tasks it refers to are running and get handled by the laravel queue which is active as described in https://laravel.com/docs/8.x/queues#supervisor-configuration

      Also hitting the "Refresh Data" shows the tasks being run in the logs, however that notification is not immediately dismissed.

      d19dotcaD 1 Reply Last reply
      1
      • nebulonN nebulon

        I can also see the warning on fresh installs, however after adding a client and sending an invoice, eventually it goes away.
        Thing is the actual tasks it refers to are running and get handled by the laravel queue which is active as described in https://laravel.com/docs/8.x/queues#supervisor-configuration

        Also hitting the "Refresh Data" shows the tasks being run in the logs, however that notification is not immediately dismissed.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #10

        @nebulon Okay thanks for clarifying. So it sounds like an upstream UI bug then in Invoice Ninja and once we start using it it should take care of itself. Sounds good. 👍

        --
        Dustin Dauncey
        www.d19.ca

        1 Reply Last reply
        1
        • T Offline
          T Offline
          Telos One
          wrote on last edited by
          #11

          This issue is impacting us on a migration. We can't get the migration to work because the cron is not running on the target server.

          Should we just create a user or two and hope the cron starts runing?

          nebulonN 1 Reply Last reply
          1
          • T Telos One

            This issue is impacting us on a migration. We can't get the migration to work because the cron is not running on the target server.

            Should we just create a user or two and hope the cron starts runing?

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #12

            @telos-one I guess this then is related to the other cron topic.
            Generally the jobs are run, but at the moment the UI still shows a warning for some time.

            If you want to manually make sure all pending tasks are run, you can open a webterminal into the app and run the following to process the current tasks:

            php /app/code/artisan queue:work --sleep=3 --tries=3 --max-time=3600
            
            T 1 Reply Last reply
            0
            • nebulonN nebulon

              @telos-one I guess this then is related to the other cron topic.
              Generally the jobs are run, but at the moment the UI still shows a warning for some time.

              If you want to manually make sure all pending tasks are run, you can open a webterminal into the app and run the following to process the current tasks:

              php /app/code/artisan queue:work --sleep=3 --tries=3 --max-time=3600
              
              T Offline
              T Offline
              Telos One
              wrote on last edited by Telos One
              #13

              @nebulon said in InvoiceNinja cron not enabled:

              php /app/code/artisan queue:work --sleep=3 --tries=3 --max-time=3600

              I ran that code via the terminal and it didn't give a response. I had to exit out of the command.

              I didn't see any change in the dashboard status (red triangle) or have any success with another migration attempt.

              I am still unclear wether I am supposed to add a line to cron, or if I am just supposed to wait until the error goes away and try migrating again.

              EDIT*. - For clarity, this is the error we are getting when we try to migrate from our v4 install: "Cross account migration is not allowed. Please read more about it here:"

              nebulonN 1 Reply Last reply
              0
              • T Telos One

                @nebulon said in InvoiceNinja cron not enabled:

                php /app/code/artisan queue:work --sleep=3 --tries=3 --max-time=3600

                I ran that code via the terminal and it didn't give a response. I had to exit out of the command.

                I didn't see any change in the dashboard status (red triangle) or have any success with another migration attempt.

                I am still unclear wether I am supposed to add a line to cron, or if I am just supposed to wait until the error goes away and try migrating again.

                EDIT*. - For clarity, this is the error we are getting when we try to migrate from our v4 install: "Cross account migration is not allowed. Please read more about it here:"

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #14

                @telos-one to clarify, the Cloudron package does not even run the cron daemon, so there is no cron to put a line in. Looking at the documentation now again, I am also not sure what the relation between the queues and the worker is.

                Looking at https://github.com/invoiceninja/dockerfiles/blob/master/examples/v5/supervisor/supervisord.conf it seems we might need another artisan daemon to handle the scheduler.

                I will prepare an update for the package to test this.

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

                  @Telos-One I've released a new package which now also runs the scheduler via supervisor. Can you check if this solves the issue for you?

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

                    I updated and with the default 512MB of memory I got 5 OOM emails overnight for it. Bumped to 1GB of ram to see if it helps. Might need a bump in default RAM.

                    nebulonN 1 Reply Last reply
                    0
                    • ? A Former User

                      I updated and with the default 512MB of memory I got 5 OOM emails overnight for it. Bumped to 1GB of ram to see if it helps. Might need a bump in default RAM.

                      nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #17

                      @atrilahiji thanks for the feedback, I will increase the default then for the next release.

                      Is the cron issue solved for you now? Then we can mark this as solved or not.

                      ? 1 Reply Last reply
                      1
                      • nebulonN nebulon

                        @atrilahiji thanks for the feedback, I will increase the default then for the next release.

                        Is the cron issue solved for you now? Then we can mark this as solved or not.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #18

                        @nebulon Looks like it? The warning in the bottom-left is gone. I'm not quite sure how to test it to confirm

                        1 Reply Last reply
                        1
                        • T Offline
                          T Offline
                          Telos One
                          wrote on last edited by
                          #19

                          Confirmation of resolution. Issue is fixed.

                          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