R
Railway8mo ago
Faolain

ServiceInstanceRedeploys Failing via GraphQL Endpoint

I recently had my CI begin to fail as a result of a failing service instance redeploy. As a quick tldr I've been using this github action https://github.com/Faolain/railway-pr-deploy/blob/main/index.js for many months now unchanged. However I recently added a new service and it appears after adding this new service, the serviceInstanceRedeploys fail via the CI (which uses the graphql endpoint). I tried on my local graphql GUI and see the same issue. Is there any reason why this serviceInstanceRedeploy is failing/how to find more information about this?
GitHub
railway-pr-deploy/index.js at main · Faolain/railway-pr-deploy
Contribute to Faolain/railway-pr-deploy development by creating an account on GitHub.
16 Replies
Percy
Percy8mo ago
Project ID: 7b1d4989-a0d3-4bb1-98de-a5372becb82d
Faolain
FaolainOP8mo ago
7b1d4989-a0d3-4bb1-98de-a5372becb82d
Faolain
FaolainOP8mo ago
Github Action Logs
No description
Faolain
FaolainOP8mo ago
Replicated in GraphQL GUI
No description
Faolain
FaolainOP8mo ago
Something to note is that this particular service which is encountering an issue is based on a template but I'm not sure if that is the reason for the failure Unsure why I wouldn't be able to redeploy the service like any other. There doesn't seem to be much information either about the error other than
{
"errors": [
{
"message": "Problem processing request"
}
],
"data": null
}
{
"errors": [
{
"message": "Problem processing request"
}
],
"data": null
}
Brody
Brody8mo ago
mind sending the query and variables over?
Faolain
FaolainOP8mo ago
yep!
mutation serviceInstanceRedeploy($environmentId: String!, $serviceId: String!) {
serviceInstanceRedeploy(environmentId: $environmentId, serviceId: $serviceId)
}
mutation serviceInstanceRedeploy($environmentId: String!, $serviceId: String!) {
serviceInstanceRedeploy(environmentId: $environmentId, serviceId: $serviceId)
}
{
"environmentId": "3ec1dd8f-4c44-415b-988b-955288e47bec",
"serviceId": "e63f96dd-c01f-45a5-ba40-a9f024aaa3bb"
}
{
"environmentId": "3ec1dd8f-4c44-415b-988b-955288e47bec",
"serviceId": "e63f96dd-c01f-45a5-ba40-a9f024aaa3bb"
}
the other 2 services are redeploying just fine, it's just this service which is the problematic one (it's programmatic so no change in the syntax just a loop which passes the different serviceIds through, the one based on the template is the one that's failing)
Brody
Brody8mo ago
what is the state of the service?
Faolain
FaolainOP8mo ago
Running/Active without error no issue/same as rest
Brody
Brody8mo ago
that is not a valid state though, im talking about in the context of railway
Faolain
FaolainOP8mo ago
Active The Github Action logs
Environment variables updated for all services.
Waiting 15 seconds for deployment to initialize and become available
Deployment is still in progress. Status: BUILDING . Waiting 20 seconds and trying again...
Deployment is still in progress. Status: DEPLOYING . Waiting 20 seconds and trying again...
Deployment is still in progress. Status: DEPLOYING . Waiting 20 seconds and trying again...
Updating Deploying Trigger to new Branch Name
Updating Deploying Trigger to new Branch Name
Updating Deploying Trigger to new Branch Name
All deployment triggers updated successfully.
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: e3273da5-c840-4faf-8a15-8bb12c0e43d5
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: e63f96dd-c01f-45a5-ba40-a9f024aaa3bb
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: 4fd3601c-fd90-4195-997d-051be3ff145f
Error: Action failed with error: Error: Problem processing request: {"response":{"errors":[{"message":"Problem processing request"}],"data":null,"status":200,"headers":{}},"request":{"query":"\n mutation serviceInstanceRedeploy($environmentId: String!, $serviceId: String!) {\n serviceInstanceRedeploy(environmentId: $environmentId, serviceId: $serviceId)\n }\n ","variables":{"environmentId":"3ec1dd8f-4c44-415b-988b-955288e47bec","serviceId":"e63f96dd-c01f-45a5-ba40-a9f024aaa3bb"}}}
Environment variables updated for all services.
Waiting 15 seconds for deployment to initialize and become available
Deployment is still in progress. Status: BUILDING . Waiting 20 seconds and trying again...
Deployment is still in progress. Status: DEPLOYING . Waiting 20 seconds and trying again...
Deployment is still in progress. Status: DEPLOYING . Waiting 20 seconds and trying again...
Updating Deploying Trigger to new Branch Name
Updating Deploying Trigger to new Branch Name
Updating Deploying Trigger to new Branch Name
All deployment triggers updated successfully.
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: e3273da5-c840-4faf-8a15-8bb12c0e43d5
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: e63f96dd-c01f-45a5-ba40-a9f024aaa3bb
Redeploying Service...
Environment ID: 3ec1dd8f-4c44-415b-988b-955288e47bec
Service ID: 4fd3601c-fd90-4195-997d-051be3ff145f
Error: Action failed with error: Error: Problem processing request: {"response":{"errors":[{"message":"Problem processing request"}],"data":null,"status":200,"headers":{}},"request":{"query":"\n mutation serviceInstanceRedeploy($environmentId: String!, $serviceId: String!) {\n serviceInstanceRedeploy(environmentId: $environmentId, serviceId: $serviceId)\n }\n ","variables":{"environmentId":"3ec1dd8f-4c44-415b-988b-955288e47bec","serviceId":"e63f96dd-c01f-45a5-ba40-a9f024aaa3bb"}}}
The state of the other services are the same as the one that's failing
Brody
Brody8mo ago
I think you should take this as a sign to update the action to use staged changes
Faolain
FaolainOP8mo ago
I believe at the time when I was looking at this it was not feasible due to a lack of support of certain features that we needed hence the railway team undeprecating one of the endpoints to maintain continued support in any case that seems a bit over the top for what seems to be a serviceInstanceRedeploy which we may have to do later programatically in any case
Brody
Brody8mo ago
it was possible i did it in the dashboard just fine, and i think jr even recommended you used staged changes too
Faolain
FaolainOP8mo ago
^ , is there any way railway can investigate why this serviceInstance is not deploying whereas the others are deploying just fine? Maybe an edge case with how templates are managed? Especially considering the error message isn't really helpful
Brody
Brody8mo ago
closing in favor of your private thread!
Want results from more Discord servers?
Add your server