Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1348674 - [haproxy] frontend 'main' has no 'bind' directive in default configuration
Summary: [haproxy] frontend 'main' has no 'bind' directive in default configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: haproxy
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ryan O'Hara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-21 18:02 UTC by Carl George
Modified: 2016-07-27 18:55 UTC (History)
3 users (show)

Fixed In Version: haproxy-1.6.7-2.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 18:55:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fix syntax in haproxy.cfg (533 bytes, patch)
2016-06-21 18:14 UTC, Carl George
no flags Details | Diff

Description Carl George 2016-06-21 18:02:52 UTC
Description of problem:

The default HAProxy configuration file prevents the service from starting.

    # journalctl -u haproxy
    -- Logs begin at Tue 2016-06-21 14:47:31 UTC, end at Tue 2016-06-21 15:01:10 UTC. --
    Jun 21 15:01:10 f24.ius.io systemd[1]: Started HAProxy Load Balancer.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : parsing [/etc/haproxy/haproxy.cfg:67] : 'frontend' cannot handle unexpected argument '*:5000'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : parsing [/etc/haproxy/haproxy.cfg:67] : please use the 'bind' keyword for listening addresses.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [WARNING] 172/150110 (2054) : config : frontend 'main' has no 'bind' directive. Please declare it as a backend if this was intended.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [WARNING] 172/150110 (2054) : config : missing timeouts for frontend 'main'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | While not properly invalid, you will certainly encounter various problems
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | with such a configuration. To fix this, please ensure that all following
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : Fatal errors found in configuration.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: haproxy-systemd-wrapper: exit, haproxy RC=256

Version-Release number of selected component (if applicable):

haproxy-1.6.5-3.fc24.x86_64

Steps to Reproduce:

1. dnf install haproxy
2. systemctl start haproxy.service

Comment 1 Carl George 2016-06-21 18:14:10 UTC
Created attachment 1170352 [details]
fix syntax in haproxy.cfg

Comment 2 Fedora Update System 2016-07-15 17:22:46 UTC
haproxy-1.6.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d7ef3cba5d

Comment 3 Fedora Update System 2016-07-16 22:57:33 UTC
haproxy-1.6.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d7ef3cba5d

Comment 4 Fedora Update System 2016-07-27 18:55:41 UTC
haproxy-1.6.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.