Hello everyone Thank you for this amazing product.
I have cloned n8n repo in order to re-map the N8N_PORT to 8080, for the need to deploy it on Cloud Run. Although the deployment is successful, after building a new Docker image, I get the following message at the headerās top right: āConnection lostā.
I am not quite sure why this is happening. Any insights would be helpful!
This is a bit old but I have managed to set up the n8n on Cloud Run via Docker / Terraform.
Happy to share the TF templates etc.
I have so far had two issues;
CloudRun will kill my Docker when it is not being utilized (obviously you are charged for running seconds so no requests mean that the docker gets taken down. I have managed to resolve it with Cloud Scheduler that triggers a keep-alive request every 60 seconds - to webhook with noOp.
Iām using SQL Proxy (that GCP requires) for me to connect to Postgres thatās hosted on GCP. I couldnāt get MySQL working at all with n8n so I have given up.
Iām having Memory Leak issues (currently maxing out at 4GB and crashing). Trying to figure out what might be causing it.
Thank you for sharing the information. May I know which version of n8n are you using? The memory leaks issue was solved by one of the community members in an earlier version. If youāre using the latest version, and still having Memory Leak issues, can you please share more details?
@harshil1712 - I have created an example repository that deploys n8n onto CloudRun. Iām using the latest docker image of n8n.
After changing the n8n_execution_process to main I seem to have resolved the issue with docker crashing. However, I have found another issue which I havenāt yet found the cause of.
Some of my webhook triggered workflows seem to be returning after a while of being active. This is even though they have been activated.
{"code":404,"message":"The requested webhook \"GET keep-alive\" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"}