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. CRON Logs (cron.log) missing for InvoiceNinja

CRON Logs (cron.log) missing for InvoiceNinja

Scheduled Pinned Locked Moved Solved Invoice Ninja
cron
7 Posts 2 Posters 1.3k Views 2 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.
  • T Offline
    T Offline
    tamayers
    wrote on last edited by girish
    #1

    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
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      0
      • T Offline
        T Offline
        tamayers
        wrote on last edited by
        #3

        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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          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
          0
          • T Offline
            T Offline
            tamayers
            wrote on last edited by
            #5

            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
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

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

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

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