Connection Issue with Flask/Selenium

Hello dear Railway community, I am currently facing an issue when trying to connect to the server that my project is deployed into, it is a Flask application that works when ran through a Docker image (Docker Desktop), however I have trouble accessing it through railway. It might be due to the docker run map porting command, that I haven't figured how to implement on Railway yet: Docker file; ARG PORT=443 FROM cypress/browsers:latest RUN apt-get install python3 -y RUN echo $(python3 -m site --user-base) COPY requirements.txt . ENV PATH /home/root/.local/bin:${PATH} RUN apt-get update && apt-get install -y python3-pip && pip install -r requirements.txt COPY . . CMD uvicorn main:app --host 0.0.0.0 --port $PORT Thanks in advance for your kind help
17 Replies
Percy
Percy17mo ago
Project ID: 8ef45fb1-e385-4327-bfae-67817a6b9cde
anasabid.
anasabid.OP17mo ago
8ef45fb1-e385-4327-bfae-67817a6b9cde
Brody
Brody17mo ago
send the railway domain please
anasabid.
anasabid.OP17mo ago
deploymentrail-production-5988.up.railway.app here it is
Brody
Brody17mo ago
connects just fine, you just dont have a route for /
anasabid.
anasabid.OP17mo ago
You are correct, it does work, I didn't know this was the URL to use and tried accessing with the 0.0.0.0 address, thank you sir
anasabid.
anasabid.OP17mo ago
I am facing another issue, the code starts working and then abruptly aborts, would you have an idea for what is the reason this happens?
Brody
Brody17mo ago
that seems like an out of memory issue (trial plan only has 512mb), please upgrade to the hobby plan
anasabid.
anasabid.OP17mo ago
Is there an option to try out the hobby plan? I'd be happy to upgrade to it if I can try it first to see if it works
Brody
Brody17mo ago
sorry there is not, so let's make sure this is definitely a memory issue. send me a screenshot of your service metrics please
anasabid.
anasabid.OP17mo ago
Thanks for the assistance, here are the metrics for the last few tests
Brody
Brody17mo ago
definitely looks like you are running into the memory limits of the trial plan there can also be quick spikes above 512mb that aren't captured by the graph, but would still cause your app to crash with signal 9
anasabid.
anasabid.OP17mo ago
Very well, does the hobby plan include engineer's assistance, if it does not work out?
Brody
Brody17mo ago
it includes my assistance half joking, hobby plan users get discord support
anasabid.
anasabid.OP17mo ago
Your assistance was very fruitful sir! But what is the discord support, isn't it what we are currently on?
Brody
Brody17mo ago
this is discord support, hello
Brody
Brody17mo ago
Want results from more Discord servers?
Add your server