Any special needs for credentials on cron?

Hi. Are there any special requirements for credentials on crons?
We have a workflow that includes at some points rocket chat notifications.
When we execute it manually it works fine but when executed via cron it fails with:

ERROR: Node has no access to credential

We’ve recreated the credentials with the main admin user but still the same.
Just wondering if we are missing something regarding the user that executes the cron and its access to credentials.

Information on your n8n setup

  • version 0.236.3
  • mysql
  • cron
  • Running n8n via Docker

Hey @luison,

That is an odd one as the node doesn’t have any credential requirements, Are you using workflow sharing at all and can you share the workflow?

No sharing. It’s created on the main user and the credentials too. Somehow while we are logged in no errors but cronned executions fail on the notification with that error (?)

We are going to move the notifications to a different workflow to see if anything changes.

By the way (unrelated), any way of testing the values received when a workflows calls another one? I mean like when you manually execute nodes and see the values being populated.


Hey @luison,

The way I do it with sub workflows is enable execution logging then check the log to see what it gets but really the sub workflow will get whatever the node before you call it outputs.

I can’t think of any reason for the error you are seeing, Does anything appear in either the browser console or the n8n output logs?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.