urllib3 issue

70 views
Skip to first unread message

Guy Knights

unread,
Aug 27, 2018, 7:01:38 PM8/27/18
to ansible...@googlegroups.com
Using Ansible 2.4, we suddenly started getting an error on a random assortment of our servers today:

ERROR! Unexpected Exception, this is probably a bug: Requests dependency 'urllib3' must be version >= 1.21.1, < 1.22!

Some servers running exactly the same task and also with version 1.23 of urllib3 installed worked fine. I rolled back urllib3 to 1.22 on the failing servers and it fixed the issue. Anyone know what the problem is and why only some of the servers are failing with this error?

Thanks,
Guy

Bharath Kumar

unread,
Aug 27, 2018, 10:30:50 PM8/27/18
to ansible...@googlegroups.com
Hi Guy,

Where this servers patched recently?

"yum update/upgrade"

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANNH9mv%3Ds%2BAgfgjj_%2BVj-DztMYF_2d6kwk8NwN8BmMTJVZc6EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Guy Knights

unread,
Aug 28, 2018, 1:23:15 PM8/28/18
to Ansible Project
We're using Ubuntu (14.04) but yes, we do weekly upgrades.

Guy Knights

unread,
Aug 30, 2018, 2:00:18 PM8/30/18
to Ansible Project
Is no-one else seeing this issue? It keeps coming up for me.

Kai Stian Olstad

unread,
Aug 30, 2018, 3:07:47 PM8/30/18
to ansible...@googlegroups.com
On Thursday, 30 August 2018 20.00.18 CEST Guy Knights wrote:
> Is no-one else seeing this issue? It keeps coming up for me.

No, from which part are you getting this error message?


> >> On Mon, Aug 27, 2018 at 7:01 PM Guy Knights <guy.k...@gmail.com> wrote:
> >>
> >>> Using Ansible 2.4, we suddenly started getting an error on a random
> >>> assortment of our servers today:
> >>>
> >>> ERROR! Unexpected Exception, this is probably a bug: Requests dependency
> >>> 'urllib3' must be version >= 1.21.1, < 1.22!

Are you sure you don't have any third party stuff installed?
When I grep the source code I can not find this message anywhere.

--
Kai Stian Olstad


Matt Martz

unread,
Aug 30, 2018, 3:15:52 PM8/30/18
to ansible...@googlegroups.com
That error would seem to be coming from requests.  Based on that, it seems that you have upgraded urllib3 out of band of upgrading requests, and the dependency is insufficient.

Requests is used throughout a few modules/plugins, either directly, or as a dependency, as well as by the winrm connection plugin. 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages