Error on Deploying n8n

I'm trying to deploy n8n today, but I'm getting errors. n8n-worker quickly approves, but after a few minutes, it appears as failed. And the n8n takes about 5 minutes to deploy, and then the failure occurs. I've already tried deleting the project, deleting the repositories in my github account, and doing it all again. But the problem continues.
No description
46 Replies
Percy
Percy9mo ago
Project ID: N/A
jonathanc2177
jonathanc21779mo ago
I'm trying to use this template
No description
Brody
Brody9mo ago
it seems like both those templates need some love @Jack do you think you could update your template to deploy from docker images only and add a worker service to the template, then i will ask the team to unpublish the other template
jonathanc2177
jonathanc21779mo ago
❤️ Thanks Brody
Brody
Brody9mo ago
though i havent seen jack around for a while, he is going to be a pilot after all wait for a few days since id want jack to keep his template, but if they arent able to maintain it thats okay too, and in that case i think i could take over the n8n template and get it working
jonathanc2177
jonathanc21779mo ago
i will try to install the "regular" version, without workers
Brody
Brody9mo ago
dont think it would change anything, they basically use the same dockerfiles
jonathanc2177
jonathanc21779mo ago
It gets success on the deployment
No description
jonathanc2177
jonathanc21779mo ago
But when you access it
jonathanc2177
jonathanc21779mo ago
No description
Brody
Brody9mo ago
have a little patience please lol the domain hasnt propagated to railways router
jonathanc2177
jonathanc21779mo ago
🤣 You are right
jonathanc2177
jonathanc21779mo ago
No description
Brody
Brody9mo ago
cool
jonathanc2177
jonathanc21779mo ago
Thanks Brody!
Brody
Brody9mo ago
no problem
Jack
Jack9mo ago
of course, doesn’t seem overkill for performance and price though, no?
Brody
Brody9mo ago
you mean running a docker image or adding the worker?
Jack
Jack9mo ago
worker plus redis
Brody
Brody9mo ago
yes I think it would be worth it to be more feature complete
Jack
Jack9mo ago
on it 👍
Brody
Brody9mo ago
awesome, thank you
Jack
Jack8mo ago
Will get to ASAP, extremely busy with school lately, haha. My apologies.
Brody
Brody8mo ago
no worries
Jack
Jack8mo ago
Done! So proud of my changes, completely redid the template to use the docker image (doesn’t require repo anymore), sets exact variables, uses new variable features, and includes worker queue with Redis; zero-configuration necessary. @Brody @silent Not sure if it suppressed the ping correctly, apologies, besides the point, the other one, of which I noticed unreliability with, can be taken down now.
Brody
Brody8mo ago
haha the @silent has to be first in the message
Jack
Jack8mo ago
Ohh, haha, my bad.
Brody
Brody8mo ago
it's the thought that counts 🙂 but let me check this out
Jack
Jack8mo ago
Also noticed that you can’t edit two services in a template at a time, did so much work and made the same mistake twice, when you update one, it’ll erase the other’s changes.
Brody
Brody8mo ago
yeah I've ran into that too n8n doesn't require any volumes?
Jack
Jack8mo ago
Sorry I’ve been so busy lately too and away from the community, schools been so time consuming lately, trying to get back into it. Assumingely not, tried it once but was being problematic and haven’t had it in production. Every template has been performing without, so unless it comes up with someone needing it or showing a positive to make it worth it. Wouldn’t be opposed but if it’s not extremely necessary.
Brody
Brody8mo ago
would you be opposed to adding postgres and redis as services? that way you can disable external access and use the internal network for n8n to database communication?
Jack
Jack8mo ago
Can you edit that in templates? I’d love to, wasn’t sure if you could customize that.
Brody
Brody8mo ago
it would involve unchecking the default postgres and redis options and creating your own postgres and redis services like you did for both n8n services
Jack
Jack8mo ago
I can do that, would that “data” tab still be available on the project page? Would be nice to have an import and export for databases or volumes even actually.
Brody
Brody8mo ago
in my templates that use postgres or redis I'm pretty sure I disabled that, I never recommend using the data tab anyway
Jack
Jack8mo ago
Yeah that’s true. You can toggle that? Do you have a template I could reference as an example? That either includes both or one of each by the top of your head?
Brody
Brody8mo ago
not a toggle, but railway expects some variables set in order to use the data tab, and I just don't set them (disable was a bad term lol)
Jack
Jack8mo ago
Ohh, that’s helpful.
Brody
Brody8mo ago
typebot has a custom postgres service https://railway.app/template/CUZ7Dz it has the tcp proxy turned off, but all the variables are in place so that you could turn it back on and grab the credentials so that you can still connect to it externally
Jack
Jack8mo ago
One more wish, when deploying a docker image service, expecting similar functionality as a repo service, it’ll want you to click Modify and then Save, but if it doesn’t require configuration as a docker image, it’ll still have you do it.
Brody
Brody8mo ago
noticed that too, very annoying, but there will soon be a big template overhaul so I'm betting all these shortcomings will just be fixed my chatwoot template has both custom postgres and redis services, both of course with their TCP proxys disabled by default https://railway.app/template/ZBnDBU for postgres you need a custom start command
/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"
/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"
without this, when you disable the the tcp proxy the PGPORT environment variable is set to an empty string and postgres doesn't like that, even though the port flag is always used, then it crash loops, so that start command just unsets that variable
Jack
Jack8mo ago
I’ll need the TCP proxy though, right? And out of all the variables you have on your chatwoot Postgres, what are the only ones I need? Got it I believe, thought the TCP was the private internal dns. Huge bug though, sometimes services you’re editing in the template will replace others in the front end, so you won’t see one but it’ll still exist. Scared me so bad when I pressed save and noticed it wasn’t there, but it was when I went back. Just made the transition and tried deploying yours and got a database couldn’t be accessed or whatever error, tried mine and got the same with the same configuration. https://discord.com/channels/713503345364697088/1169725066439827516
Brody
Brody8mo ago
I think it's safe to say, all of them does the n8n image use alpine?
Jack
Jack8mo ago
Not sure, but others are experiencing it too, is it not a platform issue?
Brody
Brody8mo ago
DM me please