tower-cli network error

Hi,

I’m trying to use tower-cli and seeing below error.

tower-cli job_template list

Error: There was a network error of some kind trying to connect to Tower.

The most common reason for this is a settings issue; is your “host” value in tower-cli config correct?
Right now it is: “xx.xxx.xxx.xxx:8052”.

Below is my config file:

tower-cli config

User options (set with tower-cli config; stored in ~/.tower_cli.cfg).

host: xx.xxx.xxx.xxx:8052
username: admin
password: *************
verify_ssl: False

Defaults.

use_token: False
verbose: False
certificate:
format: human
color: True
description_on: False

tower-cli --version
Tower CLI 3.2.1

Any help is appreciated!!!

Regards,
Sammi

Hi Sammi,

Does your username and password match that of a user on that AWX instance? Also, you may need to add ‘http://’ to the beginning of your host IP. For example:

User options (set with tower-cli config; stored in ~/.tower_cli.cfg).

username: cadams
password: password
verify_ssl: False
host: http://127.0.0.1:8013

Defaults. use_token: False

verbose: False
certificate:
format: human
color: True
description_on: False

Thank you,
Christian

Thanks Chris,

The username and password was correct. The issue was I didn’t put http:// and also had to set verify_ssl = False.

Regards,
Sammi

Great! I am glad to hear you got it working. Thanks for posting what fixed it.

Thank you,
Christian