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

yum install -y awx is failing #1

Closed
sammic30 opened this issue Dec 13, 2017 · 15 comments
Closed

yum install -y awx is failing #1

sammic30 opened this issue Dec 13, 2017 · 15 comments

Comments

@sammic30
Copy link

Hi,

I'm following the (https://github.com/MrMEEE/awx-build/blob/master/installguide) steps and getting below error:

Error: Package: awx-1.0.2.272-1.el7.centos.x86_64 (mrmeee-awx-dev)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

I'm using "CentOS Linux release 7.3.1611 (Core)" release

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 13, 2017

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

@sammic30
Copy link
Author

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

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 13, 2017

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

@sammic30
Copy link
Author

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

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 13, 2017

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

@sammic30
Copy link
Author

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;
    }
}

}

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 13, 2017

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

@sammic30
Copy link
Author

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;
    }
}

}

@sammic30
Copy link
Author

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

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 14, 2017

Thanks.. I have changed it in the file

Everything else working?

@sammic30
Copy link
Author

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

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 14, 2017

Great.. Thanks for the feedback

@MrMEEE MrMEEE closed this as completed Dec 14, 2017
@sammic30
Copy link
Author

sammic30 commented Dec 15, 2017 via email

@MrMEEE
Copy link
Owner

MrMEEE commented Dec 15, 2017

Could we move this to a new issue, please?

Also, do you mean outgoing http proxy or ssh proxy for accessing hosts???

@sammic30
Copy link
Author

sammic30 commented Dec 17, 2017 via email

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

2 participants