Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    InvoiceNinja cron not enabled

    Invoice Ninja
    4
    10
    55
    Loading More Posts
    • 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.
    • P
      Paraviccini last edited by

      In Invoice Ninja 5 (beta) the cronjobs are not enabled. How can I do this?

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        We've moved the package for v5 to use laravel queues instead of crontab. Maybe there is some other reason having to use cron?

        1 Reply Last reply Reply Quote 1
        • P
          Paraviccini last edited by

          Mhm... in the lower left corner there is a warning and when viewing it it says "The crons need to be enabled"

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            This should be gone if you update to the latest version.

            atrilahiji 1 Reply Last reply Reply Quote 0
            • P
              Paraviccini last edited by

              I thought that when installing it from the App-store it always comes in the newest version. But apart from that after updating it, the error is persisting.

              d19dotca 1 Reply Last reply Reply Quote 0
              • atrilahiji
                atrilahiji App Dev @nebulon last edited by

                @nebulon I updated and still encounter the issue. I’ll try a fresh install and report back

                1 Reply Last reply Reply Quote 0
                • d19dotca
                  d19dotca @Paraviccini last edited by d19dotca

                  @paraviccini Depends on when you installed the app from the App Store. In this case, it looks like the Cloudron team pushed a new update 3 hours ago about the time @nebulon mentioned the latest version, so I have a feeling that's what he meant to say that they pushed a fix already for this just a few hours ago now.

                  I was about to install Invoice Ninja 5 today and start the migration process so I'll try to update if I run into the same issue too.

                  1 Reply Last reply Reply Quote 0
                  • d19dotca
                    d19dotca last edited by 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

                    nebulon 1 Reply Last reply Reply Quote 0
                    • nebulon
                      nebulon Staff @d19dotca last edited by

                      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.

                      d19dotca 1 Reply Last reply Reply Quote 2
                      • d19dotca
                        d19dotca @nebulon last edited by

                        @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. 👍

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post