I’m experiencing an issue with my workflow that interacts with GitLab using a personal access token. Here’s the scenario:
Day N: The workflow runs perfectly, and all GitLab nodes successfully commit without any issues.
Day N+1 (morning): The workflow is triggered, but no commits are made to GitLab. In the execution history, I see there’s an issue with the GitLab node. but when i immediately re execute the node or the whole workflow, everything works fine
What is the error message (if any)?
Couldn’t connect with these settings
The DNS server returned an error, perhaps the server is offline
Please share your workflow
sorry can't share my workflow but it is a workflow triggered after a form submission, I receive via webhook teams a notification to approve continuity of the workflow, and I have gitlab nodes that connects to a gitlab intern repo with a personal access token.
I recommend restarting your instance, and also as it works when manually triggered try refreshing your credentials and also make sure the things you are trying to commit using that should not fry the API, let me know if this helps!
Just wanted to add some context on why this happens - it’s a quirk of running n8n on Cloud Run.
Basically: Cloud Run scales to zero when idle. So when your workflow hasn’t run for a while, the container shuts down completely. Next morning when it triggers, Cloud Run spins up a fresh container. The problem is Node.js doesn’t cache DNS by default, and during that cold start the first DNS lookup can fail before everything is fully initialized.
That’s why re-executing immediately works - the container is already warm at that point and DNS resolves fine.
Retry on failure should definitely help for most cases. If you’re still seeing issues after that, the nuclear option is setting min_instances: 1 in Cloud Run, keeps one container always warm. Costs a bit more but completely eliminates the cold start problem.