N8n run locally docker ngrok does not let me connect google services - timeout

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.

:wrench: 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
    

:police_car_light: 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 is inactive)
  • curl test gives: Cannot GET /rest/healthz
  • Docker logs show no crash; n8n starts fine
  • opening n8n with another browser, did not work either

:red_question_mark: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 :folded_hands:

As of version 0.227.0 (which was centuries ago), n8n has renamed the WEBHOOK_TUNNEL_URL configuration option to WEBHOOK_URL . In n8n 1.0, WEBHOOK_TUNNEL_URL has been removed. Update your setup to reflect the new name. For more information about this configuration option, refer to the docs here and here.

2 Likes

That was the solution, I was not aware of this change, thank you so much.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.