# AWX returning 401 on login intermittently

**URL:** <https://forum.ansible.com/t/awx-returning-401-on-login-intermittently/29935>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 21, 2019, 9:07am UTC](https://forum.ansible.com/t/awx-returning-401-on-login-intermittently/29935 "2019-03-21T09:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrk](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@nrk](https://forum.ansible.com/u/nrk)\
**Post date:** [March 21, 2019, 9:07am UTC](https://forum.ansible.com/t/awx-returning-401-on-login-intermittently/29935/1 "2019-03-21T09:07:14Z")

</div>

Hi there,

We are having some users experiencing this issue. Some times, when the user try to login, AWX returns a 401, as you can see below.

 ![Screen Shot 2019-03-21 at 10.03.22.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/5d9c4111f58a04227415b5f15fa6dd2ad040f43a.jpeg)

This is the information about our AWX.

AWX Version: 3.0.1  
OS: CentOS 7  
Authentication: Active Directory  
Deployed with docker-compose  
We connect to AWX through a load balancer.

Is this a known bug or there is any way to solve it?

Thanks in advance.

Cheers,  
nrk

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [March 21, 2019, 11:51am UTC](https://forum.ansible.com/t/awx-returning-401-on-login-intermittently/29935/2 "2019-03-21T11:51:19Z")

</div>

Can you give us any more detail? Please open chrome debug tools and click on the network tab and note the series of API requests when this happens.

> **(attachments)**
>
> ![Screen Shot 2019-03-21 at 10.03.22.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/5d9c4111f58a04227415b5f15fa6dd2ad040f43a.jpeg)

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [March 21, 2019, 4:13pm UTC](https://forum.ansible.com/t/awx-returning-401-on-login-intermittently/29935/3 "2019-03-21T16:13:00Z")

</div>

Your load balancer is probably not setting X-Forwarded-\* values appropriately.

> **(attachments)**
>
> ![Screen Shot 2019-03-21 at 10.03.22.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/5d9c4111f58a04227415b5f15fa6dd2ad040f43a.jpeg)
