Skip to content

Instantly share code, notes, and snippets.

@ygorth
Last active February 21, 2017 10:31
Show Gist options
  • Save ygorth/6780a78fa038c1550733 to your computer and use it in GitHub Desktop.
Save ygorth/6780a78fa038c1550733 to your computer and use it in GitHub Desktop.
Troubleshooting: Ansible Tower - Cross-Origin Request Blocked (CentOS 7.2.1511 - Python 2.7.5)
# CentOS Linux release 7.2.1511 (Core)
# Python 2.7.5
# Ansible Version
# 1.9.4
# Ansible Installation Method
# yum
# Tower Version
# 2.4.3
# Troubleshooting: Ansible Tower - Cross-Origin Request Blocked (CentOS 7.2.1511 - Python 2.7.5)
# Error messages: "Live events: error connecting to the Tower server." OR "Socket error: connection refused by host"
# That's a known issue, and you can do the following to step back python's ssl handling package:
$ rpm -Uvh --oldpackage http://bo.mirror.garr.it/1/slc/centos/7.1.1503/updates/x86_64/Packages/python-2.7.5-18.el7_1.1.x86_64.rpm \
http://bo.mirror.garr.it/1/slc/centos/7.1.1503/updates/x86_64/Packages/python-devel-2.7.5-18.el7_1.1.x86_64.rpm \
http://bo.mirror.garr.it/1/slc/centos/7.1.1503/updates/x86_64/Packages/python-libs-2.7.5-18.el7_1.1.x86_64.rpm
# Once you do that, restart the tower services:
$ ansible-tower-service restart
@vnalam
Copy link

vnalam commented Nov 9, 2016

Is it resolved?

@phanikumar1210
Copy link

phanikumar1210 commented Nov 16, 2016

I am still facing the same issue with my Ansible tower after installing the packages. I have installed the latest version of Ansible on centos-7

Copy link

ghost commented Feb 21, 2017

Same here. Downgrading the packages didnt help. Centos7 with latest Ansible Tower

It seems to be an issue with the sslcert when using self signed certs.
Connect with your browser to: https://ansibletower......:8080/ and add a rule to your browser to accept the self signed cert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment