I thought this sounded familiar…
The following is an excerpt from Ticket#2018041822002197, which I sent in about 20 months ago on 6.42rc…
I wrote up a script some time ago to run on our Dude server to save a backup of the Dude database, and scheduled it weekly. It has never run, so today I decided to see why.
The script ran fine if I triggered it by hand with the Run button. But the scheduler wouldn't run it. If I added a :log message at the beginning of the scheduler task, it would log, but nothing further would happen.
Eventually, I found several misbehaviors in ROS scripting and scheduling.
1) I saw that the Dude checkbox wasn't checked in the scheduler, so I checked it, thinking it was a permissions problem. When I hit the Apply button, the checkbox unchecked itself! It's like it's flipping me off. You cannot check this box and have it stay checked. As it turns out, this was not the cause of my problem, but it's a misbehavior.
2) The Dude checkbox also unchecks itself in the script, the same way. However, that doesn't seem to prevent it from running fine when I trigger it with the Run button.
3) Finally, I discovered the basic problem: the scheduler would not run the script if its contents were: script-name
…but it would run it fine if the contents were: /system script run script-name
Unfortunately, I have no idea what, if anything, support did with items #1 and #2. Perhaps nothing, since as #2 explained, the dude permission didn’t seem to be at all required to actually do dude stuff (at least at the time).
One thing to check: make sure the user you are logged in as has dude permission itself, otherwise you will not be able to set dude permission on scripts.
[EDIT]: Also, I should add, you should assume that the dude permission is not the one the error message is complaining about. Turn them all on, then turn them off bit by bit until the error comes back, then you’ve found the right one.