When I start a container with “n8nio/n8n worker”, I get this error in GCP Cloud Run:
Cloud Run error: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
- n8n version: 0.191.0
- Database you’re using: PostgreSQL
- Running n8n with the execution process [own(default), main]: own/queue
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: Official Docker images on Google Cloud Run.
Recently Google Cloud Run started supporting always-on CPU allocated.
So, I plan use n8n in queue mode there with this setup:
One container running Official Docker image “n8nio/n8n” with command “n8n” in queue mode.
One container with auto-scaling running Official Docker image “n8nio/n8n” with command “n8n worker”.
The first container is running ok.
The second container for workers start running and executing jobs ok too.
But, before deployment finish, GCP Cloud Run show a error about failed on listen PORT indicated.
I’ve tried with different ports (5678, 8080) without succes.
Is there any port to listen when start n8n in worker mode?