Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error during task [enable nginx connections to upstream] - CentOS 7 #45

Open
resonator opened this issue Sep 18, 2018 · 4 comments

Comments

@resonator
Copy link

TASK [minemeld : enable nginx connections to upstream] **************************************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["setsebool", "-P", "httpd_can_network_connect", "1"], "delta": "0:00:00.004103", "end": "2018-09-18 19:11:44.522664", "msg": "non-zero return code", "rc": 1, "start": "2018-09-18 19:11:44.518561", "stderr": "setsebool: SELinux is disabled.", "stderr_lines": ["setsebool: SELinux is disabled."], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/home/xdrobox/minemeld-ansible/local.retry

@jtschichold
Copy link
Member

@jtravlosjr
Copy link

I'm getting the same error. When you say comment out, what file is being edit and what is being comment out?

@jtravlosjr
Copy link

I'm running:
Operating System: Red Hat Enterprise Linux
redhat-release-server-7.6-4.el7.x86_64
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.6:GA:server
Kernel: Linux 3.10.0-957.10.1.el7.x86_64
Architecture: x86-64

@christian-taillon
Copy link

christian-taillon commented Sep 27, 2019

I was having this problem as well.

fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["setsebool", "-P", "httpd_can_network_connect", "1"], "delta": "0:00:00.006452", "end": "2019-09-26 17:03:39.459971", "msg": "non-zero return code", "rc": 1, "start": "2019-09-26 17:03:39.453519", "stderr": "setsebool: SELinux is disabled.", "stderr_lines": ["setsebool: SELinux is disabled."], "stdout": "", "stdout_lines": []}

It is because SELinux is disabled. Comment out the following lines so they will not be run.
- name: enable nginx connections to upstream
command: setsebool -P httpd_can_network_connect 1

CentOS Linux release 7.6.1810 (Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants