Hi community! I’ve been trying to connect my Google Drive account to n8n (running via Docker on Linux and ngrok), but I keep getting stuck at the OAuth sign-in step.
Setup details:
-
n8n version:
1.102.4
-
Deployment: Docker (on Ubuntu Linux)
-
Auth: Basic auth enabled
-
Public URL (tried):
https://(something).ngrok-free.app
(via ngrok)
-
ENV config:
N8N_BASIC_AUTH_ACTIVE=true N8N_BASIC_AUTH_USER=admin N8N_BASIC_AUTH_PASSWORD=*** N8N_HOST=(something).ngrok-free.app N8N_PORT=5678 N8N_PROTOCOL=https WEBHOOK_TUNNEL_URL=https://(something).ngrok-free.app NODE_ENV=production
Problem:
When I try to authorize my Google Drive credentials, the browser gets stuck or times out at the redirect step with an error like:
“The connection has timed out. The server at (something).ngrok-free.app is taking too long to respond.”
I’ve checked:
.env
file values- Browser dev tools console (some CSP and 404 warnings)
- checked all trusted urls and forward url in the console.cloud.google, everything is fine
- Firewall (
ufw status
isinactive
) curl
test gives:Cannot GET /rest/healthz
- Docker logs show no crash; n8n starts fine
- opening n8n with another browser, did not work either
Questions:
- Is there something wrong with my redirect or domain configuration?
- How can I fix the timeout and get OAuth2 working reliably with Google?
Any advice would be hugely appreciated