Problem starting symfony application
agazzi
PROOP

9 days ago

Hi Railway Support,

I’m experiencing an issue deploying a PHP/Symfony application.

The build completes successfully and the deployment shows as successful, but the application does not respond once deployed. I consistently get a 502 Bad Gateway.

What’s strange is that this is not limited to my custom project — even official boilerplate/templates do not work on my side. The build logs show no errors, the deploy completes normally, but the app never responds.

Here is what I’ve already checked:

  • Build completes without errors

  • Deployment status shows “successful”

  • No obvious runtime crash in logs

  • Domain is generated properly

  • No custom start command (also tested with/without one)

  • Tried setting NIXPACKS_PHP_ROOT_DIR=/app/public

  • Tried default networking configuration

It seems like the app process is either not binding correctly to the expected port or not being proxied properly, but logs don’t clearly indicate why.

Additionally, parts of the Symfony documentation for Railway appear outdated compared to the current UI/settings, which makes troubleshooting difficult.

Could you please help identify:

  1. Whether the service is actually binding to the expected internal port

  2. If there is a known issue with PHP/Symfony deployments

  3. If there is an updated, working minimal example for Symfony on Railway

Thank you in advance — I’m currently blocked on deployment.

Best regards,
William

$20 Bounty

1 Replies

Railway
BOT

9 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 9 days ago


Are you sure that the port the URL is mapped to is the same port the application is listening to?

If that's already checked, something I'd do as a sanity check is to set both the application port and URL port to 3000 to see if that works.


Loading...