coldgroove
coldgroove
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
After successfully deploying my Laravel application with Dockerfile to Railway, I am encountering a 503 error when trying to access the application using the provided URL below. Deployment Details: Project Id: 5eff00b6-887c-4fb9-9f2f-02c7fb94d78c Deployment URL: https://innoscripta-assessment-backend-production.up.railway.app/ Steps Taken So Far: 1 - Checked Nginx Configuration: I reviewed the Nginx configuration file and ensured that it is properly set up to route traffic to the Laravel PHP-FPM container. 2 - Verified Environment Variables: I have confirmed that all the required environment variables, such as DB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD, and others, are correctly set in the railway environment. 3 - Restarted the Containers: I tried restarting all the containers, but the issue persists. 4 - Verified Port Mapping: I have confirmed that the Nginx container is correctly mapped to port 80 on the host machine, and the Laravel PHP-FPM container is mapped to port 9000. 5 - Reviewed Application Logs: The logs for the app-1 container do not show any errors. It only displays the following message: "[03-Aug-2023 23:47:00] NOTICE: fpm is running, pid 1 [03-Aug-2023 23:47:00] NOTICE: ready to handle connections." and I do not see any error logs related to Nginx in the railway dashboard logs (I only see the app container logs). Request for Assistance: I kindly request your support in identifying and resolving the root cause of the issue. Please investigate the Nginx container's logs and any other relevant logs that may help pinpoint the problem. Any insights or guidance to resolve this matter would be greatly appreciated. Please let me know if you require any further information to assist in resolving this issue.
88 replies
RRailway
Created by coldgroove on 8/2/2023 in #✋|help
Laravel with MySQL and Dockerfile deployment
Hey I'm trying to deploy my laravel app from the Github repository. My question is, does railway automatically deploys a MySQL database and configure the required env vars related to db when working with github repo (I saw something regarding DB plugin but I haven't used it) or I need to create a MySQL provision, get the vars and manually put them in the variables tab?
5 replies