# F5 UCS Fetch module

**URL:** <https://forum.ansible.com/t/f5-ucs-fetch-module/30432>\
**Category:** Ansible Project\
**Created:** [May 28, 2019, 3:30am UTC](https://forum.ansible.com/t/f5-ucs-fetch-module/30432 "2019-05-28T03:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Obie](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@Barry\_Obie](https://forum.ansible.com/u/Barry_Obie)\
**Post date:** [May 28, 2019, 3:30am UTC](https://forum.ansible.com/t/f5-ucs-fetch-module/30432/1 "2019-05-28T03:30:30Z")

</div>

I’m getting an error on just a couple of F5 appliances when I’m running the bigip\_ucs\_fetch module. This works fine on four other appliances, but fails on two with the below error.  
The UCS file is created on the appliance, but never shows up in the share and eventually I get the error.

“msg”: “502 Unexpected Error: Bad Gateway for uri: [https://10.10.10.10:443/mgmt/tm/sys/ucs/\nText:](https://10.10.10.10:443/mgmt/tm/sys/ucs/%5CnText:) u’\<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?\>\n\n\<html xmlns="[http://www.w3.org/1999/xhtml\](http://www.w3.org/1999/xhtml%5C)” lang="en" xml:lang="en"\>\n\nBad Gateway!\n\<link rev="made" href="mailto:support@f5.com" /\>\n\<style type="text/css"\>

---

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [May 28, 2019, 3:54am UTC](https://forum.ansible.com/t/f5-ucs-fetch-module/30432/2 "2019-05-28T03:54:51Z")

</div>

In the past this would usually occur when the restjavad daemon had  
crashed on the box. Does this happen with other modules? Can you run  
`bigstart restart restjavad` and try again? The other thing I can  
think of is that in the process of taking the UCS file, the restjavad  
daemon is restarting or crashing and this is resulting in an error  
being bubbled up to the apache frontend and sent back to the module.  
In this case the module should probably handle \*some\* of these cases,  
but I wouldn't know without further looking.

Suggest that if the aforementioned does not help that you consider  
opening an issue on the F5Networks/f5-ansible github repo

[https://github.com/F5Networks/f5-ansible](https://github.com/F5Networks/f5-ansible)

My former colleague Wojciech, who maintains these modules today, may  
be able to assist further.

-tim

---

<div class="post-metadata">

**Author:** ![Barry\_Obie](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@Barry\_Obie](https://forum.ansible.com/u/Barry_Obie)\
**Post date:** [May 28, 2019, 8:15pm UTC](https://forum.ansible.com/t/f5-ucs-fetch-module/30432/3 "2019-05-28T20:15:58Z")

</div>

I tried bigip\_device\_facts and it was successful. I opened a GitHub issue, but it was closed as likely an issue with the F5. So I have a ticket with F5 support. I saw some timeout errors in httpd and restjavad logs.

Thanks,  
Barry
