2 months ago
Hello I added volume last night to my project thinking it was fine only to find out all my magic links, oath connections, and anything related to IP stopped working. I removed it and went to sleep. I tried again just now and its the same thing every time I turn volume my platform becomes useless. I really need this to store recordings. What can I do to fix it?
9 Replies
2 months ago
Your service uses SIP registrations and WebSocket connections to external servers, and attaching a volume disables zero-downtime deployments per our volumes documentation - meaning every deploy causes brief downtime since multiple deployments cannot be active simultaneously when a volume is mounted. This downtime would drop all active SIP registrations, WebRTC sessions, and WebSocket connections. Additionally, volumes are not mounted as overlays, so if your mount path overlaps with any existing application directory (e.g., mounting at /app or a subdirectory containing app files), the volume will replace those files with an empty directory, which could make the service non-functional. Could you share the mount path you configured for the volume?
Status changed to Awaiting User Response Railway • about 2 months ago
Railway
Your service uses SIP registrations and WebSocket connections to external servers, and attaching a volume disables zero-downtime deployments per our [volumes documentation](https://docs.railway.com/volumes/reference#caveats) - meaning every deploy causes brief downtime since multiple deployments cannot be active simultaneously when a volume is mounted. This downtime would drop all active SIP registrations, WebRTC sessions, and WebSocket connections. Additionally, volumes are not mounted as overlays, so if your mount path overlaps with any existing application directory (e.g., mounting at `/app` or a subdirectory containing app files), the volume will replace those files with an empty directory, which could make the service non-functional. Could you share the mount path you configured for the volume?
2 months ago
We used /app/uploads . We are needing this to store call recordings. Is. this possible without breaking anything?
Status changed to Awaiting Railway Response Railway • about 2 months ago
2 months ago
Mounting at /app/uploads is the correct path for your use case and should not overwrite any application files. The disruption you experienced is expected behavior: attaching a volume triggers a redeployment, and services with volumes cannot have zero-downtime deployments, so there is brief downtime during each deploy that drops active SIP registrations and WebSocket connections. Your current logs show the SIP status as registered and healthy, so the service does recover after the deploy completes - the outage is temporary, not permanent.
Status changed to Awaiting User Response Railway • about 2 months ago
Railway
Mounting at `/app/uploads` is the correct path for your use case and should not overwrite any application files. The disruption you experienced is expected behavior: attaching a volume triggers a redeployment, and services with volumes [cannot have zero-downtime deployments](https://docs.railway.com/volumes/reference#caveats), so there is brief downtime during each deploy that drops active SIP registrations and WebSocket connections. Your current logs show the SIP status as registered and healthy, so the service does recover after the deploy completes - the outage is temporary, not permanent.
2 months ago
You would think so I did this last night, went to sleep woke up 5 hours later tried again and everything was down. I had to change it back disconnect it before my clients woke up so they would not be disrupted. any ideas?
Status changed to Awaiting Railway Response Railway • about 2 months ago
2 months ago
Hello,
This may happen when your service has a volume, and since two deployments can not be mounted to the same volume at the same time, we must stop the previous deployment before starting the new deployment. This has always been the logic since we first introduced support for volumes.
Users have worked around this by offloading storage to a separate service such as MinIO so that their main application will not need a volume and thus is not subject to the mandatory downtime.
Status changed to Awaiting User Response Railway • about 2 months ago
sam-a
Hello, This may happen when your service has a volume, and since two deployments can not be mounted to the same volume at the same time, we must stop the previous deployment before starting the new deployment. This has always been the logic since we first introduced support for volumes. Users have worked around this by offloading storage to a separate service such as MinIO so that their main application will not need a volume and thus is not subject to the mandatory downtime.
2 months ago
That makes sense but my problem was complete loss of outbound networking — no external API calls working at all, for hours, across multiple rollbacks. I will look into external options though.
Status changed to Awaiting Railway Response Railway • about 2 months ago
2 months ago
That does sound like more than typical deploy downtime. We can see your service is currently healthy with outbound networking working fine, but we don't have network telemetry from last night's volume attachment to confirm what caused the prolonged outage. If you'd like to try attaching the volume again, let us know before you do and we can monitor the networking in real-time to determine whether it's a platform-side issue. In the meantime, using a separate service with a volume (like MinIO) for storing recordings is the most reliable path since it keeps your main SIP service free of the volume constraint.
Status changed to Awaiting User Response Railway • about 2 months ago
sam-a
That does sound like more than typical deploy downtime. We can see your service is currently healthy with outbound networking working fine, but we don't have network telemetry from last night's volume attachment to confirm what caused the prolonged outage. If you'd like to try attaching the volume again, let us know before you do and we can monitor the networking in real-time to determine whether it's a platform-side issue. In the meantime, using a separate service with a volume (like MinIO) for storing recordings is the most reliable path since it keeps your main SIP service free of the volume constraint.
2 months ago
I decided to go with AWS connected route as it seems to be a safer route can't afford downtime with clients. Thanks.
Status changed to Awaiting Railway Response Railway • about 2 months ago
2 months ago
Sounds good, glad you found a path forward. Let us know if you need anything else.
Status changed to Awaiting User Response Railway • about 2 months ago
Status changed to Solved sam-a • about 2 months ago