Deployment Crashed
dev-moa
TRIALOP

2 years ago

my app keeps crushing although i did every step is this railway.app problem

53 Replies

dev-moa
TRIALOP

2 years ago

2b8a7d9a-d2eb-4e7b-9094-052aa0dbe7fb


2 years ago

i'm going to need some more information, why is it crashing?


dev-moa
TRIALOP

2 years ago

the problem was my was django but the project service provider was nodejs i changed to python but why did this happened


dev-moa
TRIALOP

2 years ago

the problem was my "app" was django


2 years ago

node is detected when you have a package.json file


2 years ago

plenty of reasons why a django app could have a package.json, and nixpacks does it best to attempt to deploy a wide variety of apps, but unfortunately that means it wont be able to deploy every kind of project, some projects would need a little bit of extra config


dev-moa
TRIALOP

2 years ago

i am getting FileNotFoundError: [Errno 2] No such file or directory: '/app/media/archives/AatoGadidSaami.docx', when i upload media file and i want to download it , is there extra steps i need to do to make sure file upload is served correctly on railway , on my django app everything is setup correctly


2 years ago

how big is that docx file?


dev-moa
TRIALOP

2 years ago

its notary docx files mostly 200kb


dev-moa
TRIALOP

2 years ago

up to ~200 kb not always


2 years ago

this would be a config issue with your app, do you have a url handler setup to serve that file?


dev-moa
TRIALOP

2 years ago

yes media files is being handled


2 years ago

lets see your urls.py file please


dev-moa
TRIALOP

2 years ago

here is urls.py project level

1260119546006864000


2 years ago

what is the MEDIA_URL set to?


dev-moa
TRIALOP

2 years ago

1260121947765997600


2 years ago

you likely need to use a regex path as shown here -


dev-moa
TRIALOP

2 years ago

like this and then i will push to github and see if it solves right ?

1260123334486786000


2 years ago

looks good at first glace, let me know if that works


dev-moa
TRIALOP

2 years ago

do i need to create volume or anything else


2 years ago

if you want the files to persist between deployments, yes


dev-moa
TRIALOP

2 years ago

of course i need the files to be persistant can you guide how to do it please


2 years ago

try mounting a volume to /app/media


dev-moa
TRIALOP

2 years ago

what is volume ? i dk how to create it in railway


2 years ago


dev-moa
TRIALOP

2 years ago

i can't move a way from here i click the volume and i paste /app/media/ it just skips back to this same screen

1260129814980067300


2 years ago

have you tried typing out the text?


dev-moa
TRIALOP

2 years ago

i just copy pasted /app/media


dev-moa
TRIALOP

2 years ago

also when i tried typing while i am typing it just skips back


2 years ago

i am unable to reproduce, right click your service to attach a volume


dev-moa
TRIALOP

2 years ago

which url path should i be may be i am in the wrong screen


2 years ago

you are in the project canvas, that is correct


dev-moa
TRIALOP

2 years ago

first when i right click it show my project is this right

1260134246836600800


2 years ago

that is called a service, click it and then enter the path


dev-moa
TRIALOP

2 years ago

it did worked for me now it created volume but it just loading till now

1260136547169075200


2 years ago

there is no volume there?


dev-moa
TRIALOP

2 years ago

you see that applying changes …..


dev-moa
TRIALOP

2 years ago

its done right ?

1260138118259019800


2 years ago

assuming it was mounted at the correct location, yes


dev-moa
TRIALOP

2 years ago

Access to XMLHttpRequest at 'https://notary-api-v2.up.railway.app/auth/token/login/' from origin 'https://notary-ui-v2.up.railway.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource., sorry new error , before everything was working


dev-moa
TRIALOP

2 years ago

its cors i know but idk why it happening although i set everything correct


dev-moa
TRIALOP

2 years ago

1260139606846734600


2 years ago


dev-moa
TRIALOP

2 years ago

seems the api is down


dev-moa
TRIALOP

2 years ago

do you think its cause of the media path we gave to the volume ?

1260140272071741400


2 years ago

no, try to redeploy


dev-moa
TRIALOP

2 years ago

i think its time to wait untill its up ?

1260141097502507000


2 years ago

are you sure that is the correct domain?


dev-moa
TRIALOP

2 years ago

network settings

1260141667130806300


dev-moa
TRIALOP

2 years ago

why its still in progress deployment although its active

1260142171458375700


2 years ago

just a ui bug


dev-moa
TRIALOP

2 years ago

still error : Not Found
The train has not arrived at the station.

Please check your network settings to confirm that your domain has provisioned.

If you are a visitor, please let the owner know you're stuck at the station.

Request ID:
GokiIyUCRge7xm82vdQx4Q_2823689937, what is wrong


dev-moa
TRIALOP

2 years ago

still problem not solved

1260143216817213400


Loading...