The remote command scheduled from Satellite 5.x fails to run with "'<type 'exceptions.OSError'>: [Errno 22] Invalid argument"
Issue
- Scheduling remote command fails and in /var/log/up2date below errors are displayed,
[Thu Dec 15 15:46:25 2016] up2date D: do_call script.run(238015, {'username': 'root', 'groupname': 'root', 'now': '2016-12-15 15:46:25', 'timeout': 600, 'script': '#!/bin/sh\n# Add your shell script below\ndate > /tmp/log.txt'}){'cache_only': None}
[Thu Dec 15 15:46:45 2016] up2date
Traceback (most recent call last):
File "/sbin/rhn_check", line 347, in __run_action
(status, message, data) = CheckCli.__do_call(method, params, kwargs)
File "/sbin/rhn_check", line 340, in __do_call
retval = method(*params, **kwargs)
File "/usr/share/rhn/actions/script.py", line 200, in run
os.setgroups(groups)
<type 'exceptions.OSError'>: [Errno 22] Invalid argument
Environment
- Red Hat Satellite 5.x
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.