Issue with license when starting main pods (sometimes)
Based on the input from the n8n support team, I was able to narrow it down to an issue to load the license on startup.
We are using an enterprise license, and doing a rolling update sometimes causes:
This causes the pod to crash everytime on startup, if this happens the first time, then it will happen all the time.
A workaround is to use following values:
main:
command: ["/bin/sh", "-c", "n8n license:info && n8n"]
This causes the main pod to always startup as expected.
Could it be that n8n needs a persistent volume?
well, I guess to store the licence maybe
Keep this open, there maybe changes needed, not sure. Still in contact with the n8n support, because they said this should not happen due to always check the license on startup.
Have there been any further issues with this? We haven't had a problem when injecting the license via:
main:
config:
n8n:
license:
activation:
key: <N8N_LICENSE_ACTIVATION_KEY>