Comments (15)
I think you need to upgrade to CentOS 7.4 to get this to work
from awx-build.
Is there any solution available for CentOS 7.3, CentOS 6.9 or RHEL 7.3?
from awx-build.
My best idea would be that you download the src.rpm and a compile it yourself on a CentO7.3
from awx-build.
Previous openssl errors are resolved with CentOS 7.4 but now nginx is not starting up....
systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
nginx.service: control process exited, code=exited status=1
systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
systemd[1]: Unit nginx.service entered failed state.
systemd[1]: nginx.service failed.
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 22874/memcached
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 22738/epmd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 12714/sshd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 22839/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1046/master
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 22723/beam.smp
tcp6 0 0 :::11211 :::* LISTEN 22874/memcached
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::4369 :::* LISTEN 22738/epmd
tcp6 0 0 :::22 :::* LISTEN 12714/sshd
tcp6 0 0 ::1:5432 :::* LISTEN 22839/postmaster
tcp6 0 0 ::1:25 :::* LISTEN 1046/master
tcp6 0 0 :::5672 :::* LISTEN 22723/beam.smp
udp 0 0 0.0.0.0:11211 0.0.0.0:* 22874/memcached
udp 0 0 0.0.0.0:15311 0.0.0.0:* 814/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:* 814/dhclient
udp 0 0 10.227.250.173:123 0.0.0.0:* 501/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 501/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 501/ntpd
udp6 0 0 :::11211 :::* 22874/memcached
udp6 0 0 fe80::f816:3eff:fe5:123 :::* 501/ntpd
udp6 0 0 ::1:123 :::* 501/ntpd
udp6 0 0 :::123 :::* 501/ntpd
udp6 0 0 :::30525 :::* 814/dhclient
from awx-build.
Please post the errors from systemctl status nginx, as well as the nginx.conf
from awx-build.
systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-12-13 23:09:17 UTC; 10s ago
Process: 23916 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 23914 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Dec 13 23:09:17 systemd[1]: Starting The nginx HTTP and reverse proxy server...
Dec 13 23:09:17 nginx[23916]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Dec 13 23:09:17 nginx[23916]: nginx: [emerg] open() "/dev/stdout" failed (6: No such device or address)
Dec 13 23:09:17 nginx[23916]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec 13 23:09:17 systemd[1]: nginx.service: control process exited, code=exited status=1
Dec 13 23:09:17 systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Dec 13 23:09:17 systemd[1]: Unit nginx.service entered failed state.
Dec 13 23:09:17 systemd[1]: nginx.service failed.
Conf:
cat /etc/nginx/nginx.conf
#user awx;
worker_processes 1;
error_log /dev/stdout warn;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
sendfile on;
#tcp_nopush on;
#gzip on;
upstream uwsgi {
server 127.0.0.1:8050;
}
upstream daphne {
server 127.0.0.1:8051;
}
server {
listen 8052 default_server;
# If you have a domain name, this is where to add it
server_name _;
keepalive_timeout 65;
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header Strict-Transport-Security max-age=15768000;
location /static/ {
alias /opt/awx/static/;
}
location /favicon.ico { alias /opt/awx/static/favicon.ico; }
location /websocket {
# Pass request to the upstream alias
proxy_pass http://daphne;
# Require http version 1.1 to allow for upgrade requests
proxy_http_version 1.1;
# We want proxy_buffering off for proxying to websockets.
proxy_buffering off;
# http://en.wikipedia.org/wiki/X-Forwarded-For
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# enable this if you use HTTPS:
proxy_set_header X-Forwarded-Proto https;
# pass the Host: header from the client for the sake of redirects
proxy_set_header Host $http_host;
# We've set the Host header, so we don't need Nginx to muddle
# about with redirects
proxy_redirect off;
# Depending on the request value, set the Upgrade and
# connection headers
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location / {
# Add trailing / if missing
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
}
}
}
from awx-build.
Try re-downloading the nginx.conf and try again...
from awx-build.
reinstalled ngnix and downloaded the nginx.conf again but still failing. test is fine now but it's timing out.
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Wed 2017-12-13 23:38:17 UTC; 19s ago
Process: 6764 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 6761 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 6759 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nginx.service
├─6766 nginx: master process /usr/sbin/nginx
└─6767 nginx: worker process
Dec 13 23:36:47 systemd[1]: Starting The nginx HTTP and reverse proxy server...
Dec 13 23:36:47 nginx[6761]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Dec 13 23:36:47 nginx[6761]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Dec 13 23:36:47 systemd[1]: PID file /run/nginx.pid not readable (yet?) after start.
Dec 13 23:38:17 systemd[1]: nginx.service start operation timed out. Terminating.
Dec 13 23:38:17 systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Dec 13 23:38:17 systemd[1]: Unit nginx.service entered failed state.
Dec 13 23:38:17 systemd[1]: nginx.service failed.
Conf:
cat /etc/nginx/nginx.conf
#user awx;
worker_processes 1;
error_log /var/log/nginx/error_log warn;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access_log main;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
sendfile on;
#tcp_nopush on;
#gzip on;
upstream uwsgi {
server 127.0.0.1:8050;
}
upstream daphne {
server 127.0.0.1:8051;
}
server {
listen 8052 default_server;
# If you have a domain name, this is where to add it
server_name _;
keepalive_timeout 65;
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header Strict-Transport-Security max-age=15768000;
location /static/ {
alias /opt/awx/static/;
}
location /favicon.ico { alias /opt/awx/static/favicon.ico; }
location /websocket {
# Pass request to the upstream alias
proxy_pass http://daphne;
# Require http version 1.1 to allow for upgrade requests
proxy_http_version 1.1;
# We want proxy_buffering off for proxying to websockets.
proxy_buffering off;
# http://en.wikipedia.org/wiki/X-Forwarded-For
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# enable this if you use HTTPS:
proxy_set_header X-Forwarded-Proto https;
# pass the Host: header from the client for the sake of redirects
proxy_set_header Host $http_host;
# We've set the Host header, so we don't need Nginx to muddle
# about with redirects
proxy_redirect off;
# Depending on the request value, set the Upgrade and
# connection headers
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location / {
# Add trailing / if missing
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
}
}
}
from awx-build.
The issue is resolved by changing pid path
#pid /tmp/nginx.pid;
pid /var/run/nginx.pid;
from awx-build.
Thanks.. I have changed it in the file
Everything else working?
from awx-build.
Thanks, everything else is working now.... :)
from awx-build.
Great.. Thanks for the feedback
from awx-build.
from awx-build.
Could we move this to a new issue, please?
Also, do you mean outgoing http proxy or ssh proxy for accessing hosts???
from awx-build.
from awx-build.
Related Issues (20)
- Centos 7 build fail azure-storage HOT 1
- ar
- Upgrade from 9.1.1 to the latest version HOT 2
- Project awx-build HOT 3
- rpm.miracle.dk unavailable. HOT 8
- install rabbitmq-server - HTTPS Error 403 - Forbidden HOT 1
- No directory for Centos7 on https://rpm.miracle.dk/AWX-RPM HOT 2
- The CentOS_7 repo has x86_64, noarch, and source all in the same repodata HOT 3
- .spec files from SRPMs use "python3-" rather than "python%{python3_pkgversion}" HOT 3
- Stop setting "%release" twice HOT 1
- Name .spec files consistently HOT 1
- .spec files lack %license and %doc files, and lack '%check' or documenting stanzas HOT 1
- Add '%{?dist}' to "Release:" line on all .spec files HOT 1
- AWX Installation on RHEL 8.X HOT 1
- Status of awx-rpm project ? HOT 1
- Repo not working HOT 3
- Unable to update projects in AWX-RPM HOT 1
- Latest release not quite ready for RHEL7 out of the box
- Issues during install "awx-manage not found" HOT 2
- error while install centos8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-build.