-
Hello! n8n reads from Docker environment 3 key values:
- timezone
- key to encrypt all of the credentials
- 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!
-
@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_ai Currently, no, but I think that's a good idea worth investigating!
-
@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
-
@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_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
-
@andreasdueren you have to add
export
in front of each line -
@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
-