Recurring Google Services Authentication Issue in Self-Hosted n8n

Google Drive, Gmail and many other Google Products keep disconnecting in my n8n instance. Clicking on “Sign in with Credentials” reconnects immediately, but it only stays connected for a couple of days before requiring me to reestablish the connection again.

I’m hosting n8n on a GCP instance but didn’t have these connection problems before. The OAuth tokens seem to be expiring frequently, requiring manual reconnection every few days.

I was prompted with this link: https://developers.google.com/identity/protocols/oauth2/service-account?hl=de to set up a service account I am not sure if this would solve the authentication desyncing problems that I am facing with N8N

Thanks for your question. This forum is mainly for Google Cloud Application Integration.

If your issue involves using Application Integration, tell us more! We’re here to help. :blush:

Otherwise, you might find quicker, more specific help in other Google Cloud forums - https://discuss.google.dev/

Good luck!

I am experiencing the same problem i am using a Virtual machine in GCP and still i have issues with my google sheet node or drive node asking for frequent reconnection if you found any solutions to this problem please tell me the solution because i cant seem to solve this on my own

Hi @GlobalFlowsPro, welcome to the community!

For the most effective support, I strongly encourage you to post this query in the n8n Community Forum. Alternatively, you can browse the wider Google Developer Program forums to see if other users have faced similar challenges.

If you ever have questions related to building workflows using Google Cloud Application Integration or our native Integration Connectors, we’d be more than happy to help you here.