#First time deploying with railway - issues

68 messages · Page 1 of 1 (latest)

red tide
steep carbonBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

azure rockBOT
#

Project ID: N/A

vale kite
magic pulsar
#

@red tide that does not look like the complete build logs

red tide
magic pulsar
#

You can use the link that Fragly provided to get the complete log

red tide
#

oh..

vale kite
#

Seems like a version conflict

magic pulsar
#

That will definitely do it

red tide
#

Oh i see that. Thank You so much! Im checking back

#

Now i was able to deploy but i only get Application failed to respond..
My Procfile reads web: gunicorn main:app

#

Tryiying with "web: npm run start"; atleast it won't crash, but still; Application failed to respond.
EDIT: It just crashed

magic pulsar
#

Why are you running npm run start?

#

npm is for node, not python

#

And gunicorn main:app won't work with the contents of your main.py file anyway. You don't have an app class

#

Your start command should be gunicorn webpage:app

red tide
#

Oh yeah i see... Thank you for your help! Its running now! Appreciate it alot!

red tide
still lotus
#

this isnt an issue with railway, are you trying to use gmail?

red tide
#

How so? It worked on my local development server. Yes I am.

still lotus
#

it works on my machine does not rule out code issues, and from experience i can say for certain this isnt an issue with railway itself.

#

can you click the eye icon on the gmail related service variables, do they render and display properly?

red tide
#

hmm weird. Thanks for checking too!

still lotus
#

okay then that just leaves gmail itself, gmail has been known to disallow login attempts that come from online hosts/clouds like railway or vps. id recommend buying a domain and going with zoho as the email host

red tide
#

Ok. I do have a domain via godaddy which is hosted through microsoft 365, think this could work too?

still lotus
#

yeah youd have a far better chance with that then a free email like gmail

red tide
#

Sweet. Thank you very much for your dedication. I'll check that out. Love

red tide
#

So funny thing i switched to microsoft 365, spent hours yesterday trying to figure out why it didn't work, turned off security defaults and all. But i can't seem to solve the problem. Could openssl 1.1* be an issue? I was not able to download it thou.. and on my localhost it works just fine, only on railway it doesn't..

still lotus
#

Authentication unsuccessful

#

I don't see anything about openssl?

red tide
still lotus
#

personally I'd focus on the answer that has 9 upvotes instead of 0

red tide
#

I tried that approach, SMTP Auth in the pwsh didnt work neither..

void summit
still lotus
#

Zoho is the answer

void summit
still lotus
#

huh why? I have my Zoho email on the root domain

void summit
still lotus
#

switch 🙂

void summit
still lotus
#

I'm sorry to hear that

void summit
#

It’s alright, would prefer it over Google, they both have their positives and negatives, just like Microsoft as a company more.

#

Zoho has really nice services too, like their overall administrative tools and invoice things.

still lotus
#

their tools are decent, yeah

red tide
#

Thank you very much! So if i read right, they are not really encouraging to keep going with Oauth2.0, or SMTP in general? What about using a completely separate e-mail address for the sole purpose of this contact form, what providers would be a good for SMTP? I read Zoho as a paid option, are there reliable free options? Or are they not worth it. Love

#

Or would you still go with Oauth2.0?

#

Don't feel too comfortable going that path as they already discourage people to use it

still lotus
#

Zoho has a free plan and supports plain auth, and when you need to upgrade to a paid plan they are very reasonable price wise

red tide
#

oh i see. Thanks alot folks for your help! Truly appreciated ❤️

still lotus
#

no problem!

void summit
#

Zoho and Brevo are really nice, Zoho being more of a mailbox service and Brevo being more of a email-campaign SMTP focused service.

red tide
#

I still can't get it up and running, i get 535 authentication error with zoho. Brevo i can't get it to run neigher.. I contacted zoho to see what other authentications are missing. What really bugs me is that it works locally but not when i upload it to railway. What issue could that be? Shouldn't authentication errors also be raised locally?

void summit
#

Are you trying to deploy a template, public repo/image, or custom infrastructure?

red tide
#

I am not aware of any whitelist..

red tide
#

So I FINALLY solved the issue, and railway was the issue, i tried brevo, zoho, microsoft 365, tried it all nothing worked.. I ended up using SMTP2Go, and their amazing support helped me out quite a bit. I tried to do the whole thing on render.com and it worked, no idea where the issue was.. but it works now. Thanks alot for all you folks' help, i won't forget how much of a hassle it was to setup my first ever website, but i finally did it. Love codian

still lotus
#

im sorry but i have to say that railway was not the issue, i have used zoho countless times on railway without issue

#

but nevertheless i am happy you got this working!

void summit