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
Percy14mo ago
Project ID: N/A
jonathanc2177
jonathanc2177OP14mo ago
I'm trying to use this template
No description
Brody
Brody14mo 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
jonathanc2177OP14mo ago
❤️ Thanks Brody
Brody
Brody14mo 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
jonathanc2177OP14mo ago
i will try to install the "regular" version, without workers
Brody
Brody14mo ago
dont think it would change anything, they basically use the same dockerfiles
jonathanc2177
jonathanc2177OP14mo ago
It gets success on the deployment
No description
jonathanc2177
jonathanc2177OP14mo ago
But when you access it
jonathanc2177
jonathanc2177OP14mo ago
No description
Brody
Brody14mo ago
have a little patience please lol the domain hasnt propagated to railways router
jonathanc2177
jonathanc2177OP14mo ago
🤣 You are right
jonathanc2177
jonathanc2177OP14mo ago
No description
Brody
Brody14mo ago
cool
jonathanc2177
jonathanc2177OP14mo ago
Thanks Brody!
Brody
Brody14mo ago
no problem
Jack
Jack14mo ago
of course, doesn’t seem overkill for performance and price though, no?
Brody
Brody14mo ago
you mean running a docker image or adding the worker?
Jack
Jack14mo ago
worker plus redis
Brody
Brody14mo ago
yes I think it would be worth it to be more feature complete
Jack
Jack14mo ago
on it 👍
Brody
Brody14mo ago
awesome, thank you
Jack
Jack14mo ago
Will get to ASAP, extremely busy with school lately, haha. My apologies.
Brody
Brody14mo ago
no worries
Jack
Jack13mo 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
Brody13mo ago
haha the @silent has to be first in the message
Jack
Jack13mo ago
Ohh, haha, my bad.
Brody
Brody13mo ago
it's the thought that counts 🙂 but let me check this out
Jack
Jack13mo 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
Brody13mo ago
yeah I've ran into that too n8n doesn't require any volumes?
Jack
Jack13mo 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
Brody13mo 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
Jack13mo ago
Can you edit that in templates? I’d love to, wasn’t sure if you could customize that.
Brody
Brody13mo 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
Jack13mo 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
Brody13mo 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
Jack13mo 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
Brody13mo 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
Jack13mo ago
Ohh, that’s helpful.
Brody
Brody13mo 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
Jack13mo 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
Brody13mo 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
Jack13mo 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
Brody13mo ago
I think it's safe to say, all of them does the n8n image use alpine?
Jack
Jack13mo ago
Not sure, but others are experiencing it too, is it not a platform issue?
Brody
Brody13mo ago
DM me please
Want results from more Discord servers?
Add your server