R
Railway10mo ago
Lucaslc

Subject: 503 Service Unavailable Error on Laravel Application Hosted on Railway

Hello everyone, I’m currently facing an issue with my Laravel application hosted on Railway. Despite successfully setting the application key and caching the configuration and routes, I’m encountering a “503 Service Unavailable” error when trying to access my website. The console indicates a failure to load resources with a status of 503. Here are some specifics about my setup: Language/Framework: PHP/Laravel Configuration Files: .env, Dockerfile, start-production.sh, nginx.conf Hosting: Railway The application key was set without any errors, and both the configuration and routes were cached successfully. However, when I visit the site’s URL, it displays “Application failed to respond,” and the browser console shows “Failed to load resource: the server responded with a status of 503 ()”. I do not have direct access to the Docker container since I’m using Railway’s hosting services. I’ve checked the .dockerignore file to ensure the .env file is not excluded from the Docker build context. I’ve also tried defining the necessary settings as environment variables in the Railway dashboard. I would appreciate any insights or suggestions on how to resolve this issue. Has anyone else experienced something similar on Railway, and if so, how did you manage to fix it? Link from my service:https://starpobreplus.up.railway.app/filmes Thank you in advance for your help!
8 Replies
Percy
Percy10mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy10mo ago
No project ID was provided. Closing thread.
Lucaslc
Lucaslc10mo ago
Hello everyone, I’m currently facing an issue with my Laravel application hosted on Railway. Despite successfully setting the application key and caching the configuration and routes, I’m encountering a “503 Service Unavailable” error when trying to access my website. The console indicates a failure to load resources with a status of 503. Here are some specifics about my setup: Language/Framework: PHP/Laravel Configuration Files: .env, Dockerfile, start-production.sh, nginx.conf Hosting: Railway The application key was set without any errors, and both the configuration and routes were cached successfully. However, when I visit the site’s URL, it displays “Application failed to respond,” and the browser console shows “Failed to load resource: the server responded with a status of 503 ()”. I do not have direct access to the Docker container since I’m using Railway’s hosting services. I’ve checked the .dockerignore file to ensure the .env file is not excluded from the Docker build context. I’ve also tried defining the necessary settings as environment variables in the Railway dashboard. I would appreciate any insights or suggestions on how to resolve this issue. Has anyone else experienced something similar on Railway, and if so, how did you manage to fix it? Link from my service:https://starpobreplus.up.railway.app/filmes My project ID:a6e5862b-a641-4488-a57b-eff7949944a2 Thank you in advance for your help!
Adam
Adam10mo ago
First off, please take a scroll through this docs page and see if it’s solutions help you out
Adam
Adam10mo ago
If that doesn’t work, we’ll need to see logs
Lucaslc
Lucaslc10mo ago
In the logs I don't have any error information or anything like that, just the page has an error and the site doesn't load. As if at some point the server did not run successfully, but there were no errors in the log
Adam
Adam10mo ago
Have you followed the docs I sent above?
Want results from more Discord servers?
Add your server