Railway Cron deployment crashing
bretzelio
PROOP

a year ago

Hi, i'm trying to deploy the Railway Cron template (https://github.com/brody192/railway-cron) but it keeps crashing at deployment.
Could you help me find the problem please ?

Project ID : e9543b97-9bac-4ee2-824a-0b1df6a7ed98

Solved

6 Replies

a year ago

Hello,

Have you checked the deploy logs?

That service uses JSON logging so you can click the log line to see more information.


bretzelio
PROOP

a year ago

{
"severity": "error",
"timestamp": "2025-04-08T07:17:51.468495663Z",
"message": "error parsing schedules from environment",
"tags": {
"deploymentId": "c99a8cd6-ba49-4f86-8bfb-ce05241ba403",
"deploymentInstanceId": "df2ff7a1-e3db-45b8-a0a7-580e285f77ec",
"environmentId": "4b9bdca2-a929-4ba6-b677-b7801b77d591",
"pluginId": null,
"projectId": "e9543b97-9bac-4ee2-824a-0b1df6a7ed98",
"serviceId": "60087748-d883-4853-be8c-dd2028bf617c",
"snapshotId": null
},
"attributes": {
"err": "schedule key value pair: \"0 4 * * 7\" invalid; expected k=V format",
"level": "error",
"time": "2025-04-08T07:17:50.943314237Z"
}
}


bretzelio
PROOP

a year ago

I tried replacing 7 by 0 for sunday in my cron expression, but it still crashes


bretzelio
PROOP

a year ago

It's ok, the schedule must be something like : serviceID=[serviceID]&projectID=[projectID]&environmentID=[environmentID]&action=redeploy&expression=0 4 * * 0


a year ago

Yep it needs the correct format


a year ago

!s


Status changed to Solved brody 11 months ago


Loading...