-->

DEVOPSZONES

  • Recent blogs

    Haproxy errno=2 while starting in a docker image.

    HAproxy error while starting in a docker image.





    root@757660aceb1e:/# service haproxy restart
     * Restarting haproxy haproxy                                                                                                                      [ALERT] 026/111445 (309) : sendmsg logger #1 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #2 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #1 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #2 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #1 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #2 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #1 failed: No such file or directory (errno=2)
    [ALERT] 026/111445 (309) : sendmsg logger #2 failed: No such file or directory (errno=2)

    Solution:

    1. Install rsyslog.

    root@757660aceb1e:/var/lib/haproxy/dev# apt-get install -y  rsyslog
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      cron libestr0 libpopt0 logrotate

    2. Start rsyslog

    root@757660aceb1e:/var/lib/haproxy/dev# service rsyslog start
     * Starting enhanced syslogd rsyslogd                                                                                                       [ OK ]
    root@757660aceb1e:/var/lib/haproxy/dev#

    3. Restart haproxy.

    root@757660aceb1e:/var/lib/haproxy/dev# service haproxy restart
     * Restarting haproxy haproxy                                                                                                               [ OK ]
    root@757660aceb1e:/var/lib/haproxy/dev#


    No comments