Skip to content

error restarting haproxy -- ./haproxy_reload: line 26: syntax error: unexpected redirection #137

@steve-wormley

Description

@steve-wormley

error restarting haproxy -- ./haproxy_reload: line 26: syntax error: unexpected redirection

I'm seeing the above error when trying to setup the loadbalancer service, I'm not sure if this is the only problem but it's the easiest one to fix.

It appears to be coming because the image kubernetesonarm/loadbalancer is based on busybox but the haproxy_reload script is using the <<< redirect which busybox does not support.

26: socat /tmp/haproxy - <<< "show servers state" > /var/state/haproxy/global

I'm not sure where the source of the kubernetesonarm/loadbalancer image is, so I'm unable to provide a pull request to fix it. but it should be as easy as

echo "show servers state" | socat /tmp/haproxy - >/var/state/haproxy/global

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions