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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

n8n timezone? logs retention?

Scheduled Pinned Locked Moved N8N
16 Posts 4 Posters 799 Views
    • 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.
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    wrote on last edited by
    #1

    Hello! n8n reads from Docker environment 3 key values:

    1. timezone
    2. key to encrypt all of the credentials
    3. retention logs policy

    From what I can see, since my credentials survive n8n instance restart, item number 2 seems to be good, but since my cron node seems to be executing at the wrong time, the time zone is not - could you please, check / fix that?

    And one more thing - what is the logs retention policy? How many hours of logs are kept?

    Thank you! And special thanks for adding n8n to the apps!

    girishG 1 Reply Last reply
    1
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai on last edited by
    #2

    @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 1 Reply Last reply
    0
  • girishG girish moved this topic from Support on
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #3

    I put a note in https://docs.cloudron.io/apps/n8n/#timezone

    1 Reply Last reply
    1
  • 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
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai 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
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai 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
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish 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
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to andreasdueren on last edited by
    #13

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

    andreasduerenA 1 Reply Last reply
    3
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    replied to girish on last edited by
    #14

    @girish duh that’s probably why 😄

    humptydumptyH 1 Reply Last reply
    0
  • humptydumptyH Offline
    humptydumptyH Offline
    humptydumpty
    replied to andreasdueren 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
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    replied to humptydumpty on last edited by
    #16

    @humptydumpty 😄

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.