Describe the problem/error/question
I’m trying out n8n self hosted version using the docker compose to set it up (Docker Compose | n8n Docs)
I’m trying to read new rows from a Google sheet, I have successfully added credentials to the Google Sheets Trigger. I was able to also select the Document and the Sheet form the list with the credentials. So the credentials seem to be in order and the document in question is shared to those credentials. However when I press the Fetch Test Event button and add rows the the selected Google Sheet nothing happens in n8n.
It just says:
This node is looking for an event in Google Sheets that is similar to the one you defined”
And also the stop fetching button doesn’t do anything.
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
This is the first node
Information on your n8n setup
n8n version: 1.0.5
Database (default: SQLite): Whatever is used by the default docker compose setup
n8n EXECUTIONS_PROCESS setting (default: own, main): ?
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
Operating system: Ubuntu 22.04
Hi @pete, welcome to the community!
I just tested your example workflow on my end (after updating only the Document and Sheet fields), but was able to execute the trigger just fine.
In a first step I’d like to understand if this is a problem just with Google Sheets or a general problem.
Are you able to successfully execute any other workflows, including workflows not relying on the Google Sheets trigger node? Perhaps something simple not relying on any 3rd party services like below?
This just output some dummy data after running, like so:
The Google Sheets workflow is the first workflow i’ve created. I set up a workflow like yours on the screenshot and it doesn’t work either.
When clicking on Execute node it just keeps executing the previous node and nothing happens
Thanks for confirming @pete! At least we know it’s not a problem specific to Google Sheets
The behaviour you’re seeing typically means that your n8n instance can’t send any messages with execution status updates to your browser. Do you have any reverse proxy, load balancer or other component sitting between your n8n instance and your browser? Since version 1 n8n uses the websocket protocol for this, and some servers might need a little extra configuration to allow websockets.
I’m using the default docker compose setup from the official instructions so there is traefik in use, I have modified the setup only the get the ssl certificate using dns-01 challenge and rfc216 provider for it.
So i would assume if websockets is used the configuration for traefik takes this into account in the provided docker-compose.yml file
traefik should indeed handle websockets just fine, though I don’t have any real experience with it.
For science, can you try running your workflow in n8n through an SSH tunnel, without using traefik? Just to see if that makes any difference here.
running the simple set workflow from command line seems to work
$ docker compose exec n8n n8n execute --id SVBYFSRc9tGzGikk
Execution was successful:
"When clicking \"Execute Workflow\"": [
"previousNode": "When clicking \"Execute Workflow\""
So I suspect the execution will also work fine if you use your browser, it’s just that the live status updates don’t reach your browser due to websockets trouble. Assuming you are storing execution data you should still see the finished executions in your executions list.
When using the SSH tunnel, can you try accessing n8n via your browser directly on port 5678 (and thus avoiding traefik), just to confirm whether it’s indeed traefik causing this problem?
After changing these values in the docker-compose.yml file i was able to connect directly to the n8n container without https
and the both workflows can be executed on the browser.
(I am not using an ssh tunnel in this)