PY| Sending direct execution command to 1 nodes...
PY| Failed: RR Server blocked the command. Check rrConfig User Permissions!
I've already setup my user as part of rrAdmin group, and haven't been able to find anything in the docs? Anybody knows how to get this working?
Thanks,
H
Hi
The message “Check rrConfig User Permissions” does not seem to be a message of RR.
Which function do you execute? Do you have some more script lines?
Was rrControl restarted after you changed the user permissions?
regards,
Holger Schönberger
Craftsman and Keeper of the Royal Render Flame
Please use the rrKnights Tavern
or our support system for new questions.
import rr
import rrGlobal
# Path to batch file (UNC Network Path)
BAT_FILE = r"\\xxx.xxx.xxx\pipeline\RR\RR_helperscripts\Init_P4_Nodes.bat"
def main():
selected_clients = []
# Gather highlighted nodes
for c in range(0, rr.clientAll_count()):
client = rr.clientAll_get(c)
if client.isSelected():
selected_clients.append(client)
if not selected_clients:
print("Error: No render nodes selected!")
return
# Wrap in cmd.exe so the node runs it silently
cmd_line = f'cmd.exe /c "{BAT_FILE}"'
print(f"Sending direct execution command to {len(selected_clients)} nodes...")
# Send directly to the clients (bypassing the job queue completely)
success = rr.clientSendCommand(selected_clients, rrGlobal._ClientCommand.cCommandLine, cmd_line)
if success:
print("Success! Command fired directly to the nodes.")
else:
print("Failed: RR Server blocked the command. Check rrConfig User Permissions!")
main()
Hi
Which RR version do you use?
If my user does not have the right to run that command, then rrControl asks for an admin PW.
And it should show an error message box if there is some other error sending the command.
What happens if you right-click and send a “Restart Machine” command?
The command uses the same user rights.
Hi
I found it.
Please use
selected_clients.append(client.listIdx)
to send the ID of the client, not the whole client class.
I will take a look why python did not throw an exception that the type does not match.