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. N8N
  3. n8n timezone? logs retention?

n8n timezone? logs retention?

Scheduled Pinned Locked Moved N8N
16 Posts 4 Posters 3.0k Views 4 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #4

    As for the logs, we keep last 10MB of logs per app.

    1 Reply Last reply
    0
    • girishG girish

      @potemkin_ai looks like you can set GENERIC_TIMEZONE as suggested by https://docs.n8n.io/getting-started/installation/docker-quickstart.html#setting-timezone . On Cloudron, you can edit /app/data/env using the file manager and restart the app.

      potemkin_aiP Offline
      potemkin_aiP Offline
      potemkin_ai
      wrote on last edited by
      #5

      @girish thank you!

      Is there a way for Cloudron to pick up for that purpose a Time Zone that I'm configuring at the settings page?

      girishG 1 Reply Last reply
      1
      • potemkin_aiP potemkin_ai

        @girish thank you!

        Is there a way for Cloudron to pick up for that purpose a Time Zone that I'm configuring at the settings page?

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #6

        @potemkin_ai Currently, no, but I think that's a good idea worth investigating!

        potemkin_aiP 1 Reply Last reply
        1
        • girishG girish

          @potemkin_ai Currently, no, but I think that's a good idea worth investigating!

          potemkin_aiP Offline
          potemkin_aiP Offline
          potemkin_ai
          wrote on last edited by
          #7

          @girish thanks, yes, that would be very nice, if n8n container's time zone (and probably other services) would be regulated that way.

          As for the logs - I realized that we might speak about different kind of logs here - n8n stores execution logs, that might fill up the disk very quickly: https://community.n8n.io/t/hard-disk-full-where-to-delete-logs/2298

          Here are the environment variables that seems like of the most importance at n8n:

          GENERIC_TIMEZONE=
          WEBHOOK_TUNNEL_URL=https://FQDN/ #this one, to make sure webhook URL will work fine
          N8N_ENCRYPTION_KEY=.. #to avoid loosing credentials on docker restart
          
          #clear execution logs
          EXECUTIONS_DATA_PRUNE=true
          EXECUTIONS_DATA_MAX_AGE=672
          
          girishG 1 Reply Last reply
          1
          • potemkin_aiP potemkin_ai

            @girish thanks, yes, that would be very nice, if n8n container's time zone (and probably other services) would be regulated that way.

            As for the logs - I realized that we might speak about different kind of logs here - n8n stores execution logs, that might fill up the disk very quickly: https://community.n8n.io/t/hard-disk-full-where-to-delete-logs/2298

            Here are the environment variables that seems like of the most importance at n8n:

            GENERIC_TIMEZONE=
            WEBHOOK_TUNNEL_URL=https://FQDN/ #this one, to make sure webhook URL will work fine
            N8N_ENCRYPTION_KEY=.. #to avoid loosing credentials on docker restart
            
            #clear execution logs
            EXECUTIONS_DATA_PRUNE=true
            EXECUTIONS_DATA_MAX_AGE=672
            
            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #8

            @potemkin_ai ah, i see. Do you think the defaults you have provided are reasonable? If so, I can put them as part of the default install.

            potemkin_aiP 1 Reply Last reply
            0
            • girishG girish

              @potemkin_ai ah, i see. Do you think the defaults you have provided are reasonable? If so, I can put them as part of the default install.

              potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote on last edited by
              #9

              @girish absolutely!

              It makes n8n to perform in right timezone, have proper webhook URL, keep credentials (not loosing then during the docker rebuild), avoid disk overflow from the executions log.

              1 Reply Last reply
              2
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #10

                OK, I have put this as the default for new installations.

                potemkin_aiP 1 Reply Last reply
                1
                • girishG girish

                  OK, I have put this as the default for new installations.

                  potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote on last edited by
                  #11

                  @girish lovely, thank you!

                  1 Reply Last reply
                  0
                  • andreasduerenA Offline
                    andreasduerenA Offline
                    andreasdueren
                    wrote on last edited by
                    #12

                    @potemkin_ai I’m struggling to get the time zone set up. Do you have any suggestions as to what I did wrong? These are my env settings:

                    Set the logging level to 'debug'
                    export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
                    export EXECUTIONS_DATA_SAVE_ON_ERROR=all
                    export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
                    export N8N_LOG_LEVEL=info
                    
                    GENERIC_TIMEZONE='Europe/Berlin'
                    TZ='Europe/Berlin'
                    WEBHOOK_TUNNEL_URL=https://top.level.domain/
                    N8N_ENCRYPTION_KEY='redacted'
                    
                    
                    EXECUTIONS_DATA_PRUNE=true
                    EXECUTIONS_DATA_MAX_AGE=672
                    
                    girishG 1 Reply Last reply
                    1
                    • andreasduerenA andreasdueren

                      @potemkin_ai I’m struggling to get the time zone set up. Do you have any suggestions as to what I did wrong? These are my env settings:

                      Set the logging level to 'debug'
                      export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
                      export EXECUTIONS_DATA_SAVE_ON_ERROR=all
                      export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
                      export N8N_LOG_LEVEL=info
                      
                      GENERIC_TIMEZONE='Europe/Berlin'
                      TZ='Europe/Berlin'
                      WEBHOOK_TUNNEL_URL=https://top.level.domain/
                      N8N_ENCRYPTION_KEY='redacted'
                      
                      
                      EXECUTIONS_DATA_PRUNE=true
                      EXECUTIONS_DATA_MAX_AGE=672
                      
                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #13

                      @andreasdueren you have to add export in front of each line

                      andreasduerenA 1 Reply Last reply
                      3
                      • girishG girish

                        @andreasdueren you have to add export in front of each line

                        andreasduerenA Offline
                        andreasduerenA Offline
                        andreasdueren
                        wrote on last edited by
                        #14

                        @girish duh that’s probably why 😄

                        humptydumptyH 1 Reply Last reply
                        0
                        • andreasduerenA andreasdueren

                          @girish duh that’s probably why 😄

                          humptydumptyH Offline
                          humptydumptyH Offline
                          humptydumpty
                          wrote on last edited by
                          #15

                          @andreasdueren I'm glad I found this post. At least you had the = in there. Stupid me typed it in like this: GENERIC_TIMEZONE America/Chicago and was wondering why the app crashed 🤦

                          andreasduerenA 1 Reply Last reply
                          1
                          • humptydumptyH humptydumpty

                            @andreasdueren I'm glad I found this post. At least you had the = in there. Stupid me typed it in like this: GENERIC_TIMEZONE America/Chicago and was wondering why the app crashed 🤦

                            andreasduerenA Offline
                            andreasduerenA Offline
                            andreasdueren
                            wrote on last edited by
                            #16

                            @humptydumpty 😄

                            1 Reply Last reply
                            0
                            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