5 months ago
Hi,
I'm currently experiencing an issue with one of my cron jobs. It appears to be running indefinitely, but I'm unable to see any relevant logs under the “Cron Runs” section or anywhere else in the dashboard.
Could you please advise where I can access the logs specific to my cron job executions? I need to understand what’s going wrong, but the deploy logs don’t seem to reflect the cron job’s activity either.
Thanks in advance for your help!
6 Replies
5 months ago
When you click on a specific deployment, you can see build, deploy, and http logs: https://railway.com/project/bdcac01a-feb4-49b5-a918-938c5cd0d0b6/service/b16cbcbe-2d1a-48d0-b97a-1a589e6ac868?environmentId=720b872d-3c13-422c-87a6-77659feb2864&id=042d93ca-e59b-4bc8-8ea0-315432e71b25#deploy
Status changed to Awaiting User Response Railway • 5 months ago
Status changed to Solved sarahkb125 • 5 months ago
5 months ago
No when I click on my cron task I don't get the logs of it. And I can't stop it also.
Attachments
Status changed to Awaiting Railway Response Railway • 5 months ago
5 months ago
What's happening is the task is still running, which is why the next task won't run until this one stops. I think this is how your n8n task is configured. Opening up to the community
Status changed to Awaiting User Response Railway • 5 months ago
sarahkb125
What's happening is the task is still running, which is why the next task won't run until this one stops. I think this is how your n8n task is configured. Opening up to the community
5 months ago
It is not my n8n server it is my other project! And i can't see logs.
tirones-123
It is not my n8n server it is my other project! And i can't see logs.
5 months ago
The photos that you attached are showing some logs - are you missing some? n8n is in a sandbox so the logs may not be showing. I saw this on another question https://station.railway.com/questions/n8n-function-code-node-console-log-outpu-9fedf886
5 months ago
As per their community, that is where the logs show up https://community.n8n.io/t/not-seeing-logs-added-in-code-node-in-server-logs/125849
They have detailed documentation available on how logging in n8n works https://docs.n8n.io/code/cookbook/code-node/console-log/