Railway Cron deployment crashing
bretzelio
PROOP

10 months 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

brody
EMPLOYEE

10 months 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

10 months 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

10 months ago

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


bretzelio
PROOP

10 months ago

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


brody
EMPLOYEE

10 months ago

Yep it needs the correct format


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...