# rhn\_channel task failing - internal error 500 returned from Satellite server

**URL:** <https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [February 10, 2014, 2:04pm UTC](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531 "2014-02-10T14:04:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Fox](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@David\_Fox](https://forum.ansible.com/u/David_Fox)\
**Post date:** [February 10, 2014, 2:04pm UTC](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531/1 "2014-02-10T14:04:37Z")

</div>

I’m having problems using rhn\_channel to subscribe to channels

- name: enable rhn chans  
rhn\_channel: name={{ item }} url=[https://internal.sat.server/rpc/api](https://internal.sat.server/rpc/api) user=xxx password=xxx sysname={{ ansible\_hostname }}  
with\_items:
- els-packages
- epel-6-x86\_64
- rhel-x86\_64-server-optional-6
- rhel-x86\_64-server-supplementary-6
- rhn-tools-rhel-x86\_64-server-6

When I run the playbook, I get:

TASK: [enable rhn chans] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [rhel6vm3] =\> failed to parse: Traceback (most recent call last):  
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn\_channel”, line 1176, in   
main()  
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn\_channel”, line 137, in main  
subscribe\_channels(channelname, client, session, systname, sys\_id)  
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn\_channel”, line 79, in subscribe\_channels  
return client.channel.software.setSystemChannels(session, sys\_id, c)  
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1199, in **call**  
return self.\_\_send(self.\_\_name, args)  
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1489, in \_\_request  
verbose=self.\_\_verbose  
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1243, in request  
headers  
xmlrpclib.ProtocolError: \<ProtocolError for internal.sat.server/rpc/api: 500 Internal Server Error\>

FATAL: all hosts have already failed – aborting

When the system is already subscribed to a channel that’s in the listed items, the return result is “OK” - this is expected. The user does have appropriate credentials to modify channel subscriptions - I login to Satellite to do this manually as needed. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [February 10, 2014, 3:27pm UTC](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531/2 "2014-02-10T15:27:37Z")

</div>

Can you find out anything from the Satellite logs about what the 500 error was?

---

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [February 10, 2014, 6:22pm UTC](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531/3 "2014-02-10T18:22:34Z")

</div>

Have tried restarting satellite? Some updates require this.  
Which version of satellite is this?
