Lucaslc
Lucaslc
RRailway
Created by Lucaslc on 1/11/2024 in #✋|help
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 My project ID:a6e5862b-a641-4488-a57b-eff7949944a2 Thank you in advance for your help!
5 replies
RRailway
Created by Lucaslc on 1/11/2024 in #✋|help
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!
10 replies