Google Drive Trigger only works when I manually click Execute — does not auto-trigger on file upload

Google Drive Trigger Not Auto-Triggering on File Upload

Hi everyone,

I have a self-hosted n8n workflow called Automatic Invoice Notifier.

It uses a Google Drive Trigger that watches a folder called “Invoice”
for new PDF files (polls every minute, event: File Created).


:red_circle: The Problem

When I publish the workflow and upload a new PDF to the watched folder —
nothing happens automatically.

The only way I can get an execution to run is by manually clicking the
“Execute Workflow” button
first. After I do that, THEN upload a file — it works.

But that defeats the purpose of automation. I want it to trigger automatically
when a new file is uploaded, without me having to click anything.


:gear: My Setup

Setting Value
Trigger Google Drive Trigger
Poll Frequency Every minute
Event File Created
Workflow Status Published
Hosting Self-hosted on VPS

:red_question_mark: My Question

Is there a setting I am missing that makes the trigger run automatically
without needing to manually click Execute first?

Any help is appreciated. Thank you! :folded_hands:

1 Like

Hi @nkaka Welcome!
Google services only track latest events in n8n only when the workflow is published not in testing or unpublished flow as then it fetches old info, so basically any file added before or even in the middle of activation would not be detected, so just publish your flow wait for some time then try to test things using the published trigger, refer these for more info about this:

also let me know if that works.

Hi @Anshul_Namdev, thank you for your response!

I tried your suggestion. My workflow is Published and I waited before uploading the file.

But the trigger is still not firing automatically.

Here is exactly what I did:

  1. Made sure the workflow was Published :white_check_mark:

  2. Waited 2 minutes :white_check_mark:

  3. Uploaded a brand new PDF directly from my computer into the watched folder :white_check_mark:

  4. Waited another 2 minutes :white_check_mark:

  5. Checked the Executions tab — no new execution appeared :cross_mark:

My setup:

  • n8n is self-hosted on a VPS

  • Trigger: Google Drive Trigger

  • Poll: Every minute

  • Event: File Created

  • Workflow status: Published :green_circle:

I suspect the issue might be related to how n8n is running on my VPS. It may not be running continuously in the background using something like PM2.

Could this be the reason the polling is not happening automatically? And if so, what is the best way to fix it for a self-hosted setup?

Thank you! :folded_hands:

1 Like

Hi, thank you for your response!

However I have already tested this and confirmed that PM2 is not the issue.

Here is my proof:

I added a Schedule Trigger to a test workflow and it fired automatically every minute without me clicking anything. :white_check_mark:

This means n8n is already running in the background correctly on my VPS.

The problem is specifically with the Google Drive Trigger.

When I upload a new file to the watched folder — the Google Drive Trigger does not fire automatically even though the workflow is Published and Active.

But a Schedule Trigger in the same workflow fires perfectly.

Is this a known bug with the Google Drive Trigger node in self-hosted n8n?

Is there a workaround?

Thank you! :folded_hands:

@nkaka your google credentials did not expired they are just in testing mode which usually expires in 7 days, set that to Production and they would not expire, Yes i mentioned the right thing in my previous response, that you need the flows to be published and google cloud console app in production mode, consider doing that and let me know if that works.

It seems your n8n instance is running fine since Schedule triggers are firing. The issue is likely how the Google Drive Trigger detects new files.

The Drive trigger relies on polling and only sees the files that appear after the polling window. If a file is uploaded when the workflow is inactive, during credential refresh, or before the first successful poll cycle completes, it may be treated as an “existing” file and not a “Created” event.

A few things you can check:

-Make sure the workflow stays “Active continuously” (do not turn off for testing)

-Wait one full poll interval after activating before uploading something

-Confirm the file is uploaded directly to the folder you are watching and not moved afterward.

-If you are using a Shared Drive, make sure the Drive is explicitly selected in the node.

If you want to make it more reliable to detect file changes, switch the trigger to “File Updated” which can sometimes catch uploads that are missed by “File Created”.

Hi @nkaka , welcome to the n8n community :tada:

how the PDF is being added to the folder (uploaded directly in the Google Drive web UI vs synced via Drive for Desktop vs moved/copied in from another folder)? because that difference often correlates with the Drive Trigger not firing reliably.