Git Product home page Git Product logo

Comments (15)

MrMEEE avatar MrMEEE commented on August 23, 2024

I think you need to upgrade to CentOS 7.4 to get this to work

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

Is there any solution available for CentOS 7.3, CentOS 6.9 or RHEL 7.3?

from awx-build.

MrMEEE avatar MrMEEE commented on August 23, 2024

My best idea would be that you download the src.rpm and a compile it yourself on a CentO7.3

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

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.

MrMEEE avatar MrMEEE commented on August 23, 2024

Please post the errors from systemctl status nginx, as well as the nginx.conf

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

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.

MrMEEE avatar MrMEEE commented on August 23, 2024

Try re-downloading the nginx.conf and try again...

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

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.

sammic30 avatar sammic30 commented on August 23, 2024

The issue is resolved by changing pid path
#pid /tmp/nginx.pid;
pid /var/run/nginx.pid;

from awx-build.

MrMEEE avatar MrMEEE commented on August 23, 2024

Thanks.. I have changed it in the file

Everything else working?

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

Thanks, everything else is working now.... :)

from awx-build.

MrMEEE avatar MrMEEE commented on August 23, 2024

Great.. Thanks for the feedback

from awx-build.

sammic30 avatar sammic30 commented on August 23, 2024

from awx-build.

MrMEEE avatar MrMEEE commented on August 23, 2024

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.

sammic30 avatar sammic30 commented on August 23, 2024

from awx-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.