The Wait Node is Not Executing

I have seen this mentioned before here, but topics are now closed.

Anytime I want to set a wait node with a longer time interval it just keeps running and does not execute. It is driving me a bit nuts.

This is the error response in the container log:

TypeError: execution.waitTill.getTime is not a function

I have tried in an empty workflow, restarted everything, set up correct timezones for both DB and N8N, and the schedule trigger node works as it should. I did set the timezones AFTER instantiating the DB though.

My setup is docker, via docker compose and I am using a Postgres DB.

Docker compose config is like so:


version: '3.8'

services:
  n8n:
    image: n8nio/n8n:ai-beta
    ports:
      - "5678:5678"
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=user
      - N8N_BASIC_AUTH_PASSWORD=password
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=db
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=redacted
      - DB_POSTGRESDB_PASSWORD=redacted
      - N8N_HOST=n8n.example.com
      - WEBHOOK_URL=https://n8n.example.com
      - N8N_PUSH_BACKEND=sse
      - TZ=Europe/Paris
      - GENERIC_TIMEZONE=Europe/Paris


    volumes:
     - /appdata/n8n/files:/files
     - /appdata/n8n/system:/home/node/.n8n
    depends_on:
      - db
    restart: unless-stopped

  db:
    image: postgres:12
    volumes:
      - /appdata/n8n/postgres:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=redacted
      - POSTGRES_PASSWORD=redacted
      - POSTGRES_DB=n8n
      - TZ=Europe/Paris
      - USER=1000:1000
    restart: unless-stopped

I am pulling my hair. I will have to try to release the wait node via a webhook and the schedule trigger node in from a separate workflow or something similar.

All time settings seem ok otherwise.

Any thoughts? Appreciate it <3

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Ok, I cleaned up this thread a bit.

Lesson learned: Do not fuss or mess around changing, either the db or n8n TZ settings after you have initialized ANY of them. Had to do a total fresh install - and now it seems to be working, fingers crossed.

Well I now learned how to export and import workflows and credentials via the CLI by the way. :smiley:

Thanks for making this awesome software! <3

1 Like

Ok I give up. Somehow one workflow is not liking the wait node, :confused:

TypeError: execution.waitTill.getTime is not a function

And it is still waiting in the executions list. I have fired off some more executions, also did get rid of the node and inserted a new wait node, to see if something is bugged out.

Sad! :frowning:

Hey @kanintesova,

That looks like a bug we had for a while but I thought it was fixed, Can you double check the version of n8n you are running? The ai-beta could be one of a few different versions of n8n.

2 Likes