I’m facing a strange UI issue when trying to set up Google OAuth credentials on my self-hosted n8n instance, and I’m hoping for some guidance.
When I go to the n8n UI to add a new credential (e.g., for Google Sheets), the modal window is almost empty. Crucially, the input fields for ‘Client ID’ and ‘Client Secret’ are completely missing, and the ‘Sign in with Google’ button is also not displayed. Instead, I only see a generic “Please check the errors below” message, with no way to proceed.
I understand that in modern self-hosted versions, the fields are supposed to be hidden in favor of a “Sign in” button when environment variables are used. However, I’m getting neither.
Yes, I’m using Docker. My environment consists of Traefik and Portainer, which are also running as Docker stacks.
I deployed the n8n stack using a custom script (‘Orion’) from my terminal, not directly through the Portainer UI.
My troubleshooting process was as follows:
After the initial deployment via my script, I noticed the input fields for Client ID/Secret were missing in the n8n credentials UI.
To fix this, I went into the Portainer UI, opened the n8n stack editor, and added the OAUTH_GOOGLE_CLIENT_ID and OAUTH_GOOGLE_CLIENT_SECRET environment variables.
I then redeployed the stack using Portainer.
The container is now running successfully, but the original issue persists: The UI still shows no input fields and no “Sign in with Google” button.
This is often caused by no persistent volume in mapped to the container, where n8n can save it’s DB. Can you check that a volume is defined in your dockerfile like so:
please see if you have N8N_DEFAULT_LOCALE env variable specified in your environment. There is a known issue, where having this env var causes some fields to disappear. If you do have that specified, please remove it and restart your instance.