2 months ago
I'm working on hosting an MCP server in railway (either SSE or Streamable HTTP work) and I'm having some trouble connecting to the resource. Railway is finding the port I have everything running on, but I'm getting 502
errors that look like something isn't getting forwarded right.
Project ID: a62bb88c-af36-44db-8f53-2550a5f80cb5
Service ID: 7299e3cd-30ce-4fdd-956b-22f3ca2ea2d3
Current Dockerfile I'm running:
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y curl
RUN curl -sSL https://mcp.apollo.dev/download/nix/latest | sh
RUN curl -sS https://webi.sh/jq | sh
COPY entrypoint.sh /entrypoint.sh
COPY watch_for_operation_collection.sh /watch_for_operation_collection.sh
COPY api.graphql /api.graphql
EXPOSE 5000
ENTRYPOINT ["/entrypoint.sh"]
and then I have the PORT
environment variable in railway set to 5000
0 Replies
2 months ago
hey, before we proceed with any troubleshooting, can you try the following documentation?
https://docs.railway.com/reference/errors/application-failed-to-respond
For anyone else having this issue, my local instance was binding to 127.0.0.1
and when I deployed I'm using a Dockerfile it is going to require binding the host to 0.0.0.0
which I changed for my binary in my bash script
2 months ago
Glad that you have solved the issue, I'll go ahead and mark this thread as solved.
2 months ago
!s
Status changed to Solved uxuz • 2 months ago