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


    Cloudron Forum

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

    Solved CRON Logs (cron.log) missing for InvoiceNinja

    Invoice Ninja
    cron
    2
    7
    350
    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.
    • T
      tamayers last edited by girish

      Having an issue with CRON jobs on an InvoiceNinja installation and I am having issues troubleshooting as the cron logs are not present in the /app/data/storage/logs/ folder as the documentation says it should be.

      Any ideas? Is there a way to see what cron jobs are scheduled to run?

      screenshot_368.png

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

        @tamayers Maybe they are in the stdout. So, in Console -> Logs ? You can download full logs in the window that opens.

        1 Reply Last reply Reply Quote 0
        • T
          tamayers last edited by

          You are correct. They are in the full logs. So I am able to see the CRONs.

          Next question on this however, how do I change the default CRON jobs? I need to adjust the timing.

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

            The two cron patterns currently are:

                  "invoices": {
                    "schedule": "0 */6 * * *",
                    "command": "sudo -u www-data php /app/code/artisan ninja:send-invoices"
                  },
                  "reminders": {
                    "schedule": "0 8 * * *",
                    "command": "sudo -u www-data php /app/code/artisan ninja:send-reminders"
                  }
            

            What do you want to change them to? Maybe we need to fix this at the package level?

            1 Reply Last reply Reply Quote 0
            • T
              tamayers last edited by

              There is a bug that some times causes invoices to auto-bill according to the InvoiceNinja team, https://github.com/invoiceninja/invoiceninja/issues/3645

              The workaround is to add some more distance between the two CRON jobs and also have them run later in the day. It would be nice to be able to change these.

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

                @tamayers I see. I will fix the app package to make the cron jobs configurable.

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

                  @tamayers I pushed a new package. You can customize the cron via /app/data/crontab. Just restart the app after editing the cron timing.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB