Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4714

Failed to start HAProxy Load Balancer .Failed with result 'exit-code'

$
0
0

I am mounting an ssl certificate in load balancer, install haproxy and when starting it I get this error:
haproxy.service - HAProxy Load Balancer
Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-04-30 21:03:57 UTC; 7s ago
Docs: man:haproxy(1)
file:/usr/share/doc/haproxy/configuration.txt.gz
Process: 131066 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=1/FAIL>

Apr 30 21:03:57 3774-lb-01 systemd[1]: haproxy.service: Control process exited, code=exited, status=1/FAIL>
Apr 30 21:03:57 3774-lb-01 systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Apr 30 21:03:57 3774-lb-01 systemd[1]: Failed to start HAProxy Load Balancer.
Apr 30 21:03:57 3774-lb-01 systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Apr 30 21:03:57 3774-lb-01 systemd[1]: Stopped HAProxy Load Balancer.
Apr 30 21:03:57 3774-lb-01 systemd[1]: haproxy.service: Start request repeated too quickly.
Apr 30 21:03:57 3774-lb-01 systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Apr 30 21:03:57 3774-lb-01 systemd[1]: Failed to start HAProxy Load Balancer.

Este es mi archivo haproxy.cfg

# global
        log /dev/log    local0
        log /dev/log    local1 notice
        chroot /var/lib/haproxy
        stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
        stats timeout 30s
        user haproxy
        group haproxy
        daemon

        # Default SSL material locations
        ca-base /etc/ssl/certs
        crt-base /etc/ssl/private

        # See: https://ssl-config.mozilla.org/#server=haproxy&server-version=2.0.3&config=intermediate
        ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD>
        ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
        ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets

# defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        timeout connect 5000
        timeout client  50000
        timeout server  50000
        errorfile 400 /etc/haproxy/errors/400.http
        errorfile 403 /etc/haproxy/errors/403.http
        errorfile 408 /etc/haproxy/errors/408.http
        errorfile 500 /etc/haproxy/errors/500.http
        errorfile 502 /etc/haproxy/errors/502.http
        errorfile 503 /etc/haproxy/errors/503.http
        errorfile 504 /etc/haproxy/errors/504.http
# frontend http
        bind *:80
        mode http
        bind *:443 ssl crt /etc/letsencrypt/live/www.thecesar.tech/fullchain.pem
        http-request redirect scheme https unless { ssl_fc }
        default_backend web-server
# backend web-server
        balance roundrobin
        server 3774-web-01 34.75.79.52:80 check
        server 3774-web-02 54.85.108.121:80 check

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>