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
Project ID:
8ef45fb1-e385-4327-bfae-67817a6b9cde
8ef45fb1-e385-4327-bfae-67817a6b9cde
send the railway domain please
deploymentrail-production-5988.up.railway.app
here it is
connects just fine, you just dont have a route for
/
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
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?
that seems like an out of memory issue (trial plan only has 512mb), please upgrade to the hobby plan
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
sorry there is not, so let's make sure this is definitely a memory issue. send me a screenshot of your service metrics please
Thanks for the assistance, here are the metrics for the last few tests
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
Very well, does the hobby plan include engineer's assistance, if it does not work out?
it includes my assistance
half joking, hobby plan users get discord support
Your assistance was very fruitful sir! But what is the discord support, isn't it what we are currently on?
this is discord support, hello