gislab-npo / gislab

GIS.lab - total reduction of deployment and maintenance costs for complete free and open source geospatial infrastructure
http://gislab-npo.github.io/gislab/
GNU General Public License v3.0
40 stars 14 forks source link

haproxy.service: Unit cannot be reloaded because it is inactive. #523

Closed landam closed 6 years ago

landam commented 6 years ago

Booted desktop client has problem with haproxy service:

Oct 14 22:26:14 server systemd[1]: haproxy.service: Unit cannot be reloaded because it is inactive.
Oct 14 22:26:14 server serf[2377]:     2018/10/14 22:26:14 [ERR] agent: Error invoking script '/opt/gislab/system/cluster/handlers/member-join-lb.sh': exit status 1
Oct 14 22:26:14 server serf[2377]: agent: Error invoking script '/opt/gislab/system/cluster/handlers/member-join-lb.sh': exit status 1
landam commented 6 years ago
sudo systemctl status haproxy

says

● haproxy.service - HAProxy Load Balancer
   Loaded: loaded (/etc/systemd/system/haproxy.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-10-28 20:54:42 UTC; 16min ago
     Docs: man:haproxy(1)
           file:/usr/share/doc/haproxy/configuration.txt.gz
  Process: 2543 ExecStart=/usr/sbin/haproxy-systemd-wrapper -f ${CONFIG} -p /run/haproxy.pid $EXTRAOPTS (code=exited, status=203/EXEC)
  Process: 2540 ExecStartPre=/usr/sbin/haproxy -f ${CONFIG} -c -q (code=exited, status=0/SUCCESS)
  Process: 2509 ExecStartPre=/bin/bash -c cat ${CONFIG}.templ > ${CONFIG};                             for c in $($SERF $SERF_ARGS | awk '{print $2}' | awk -F ":" '{print $1}'); do          
 Main PID: 2543 (code=exited, status=203/EXEC)

Oct 28 20:54:42 server systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Oct 28 20:54:42 server systemd[1]: Stopped HAProxy Load Balancer.
Oct 28 20:54:42 server systemd[1]: haproxy.service: Start request repeated too quickly.
Oct 28 20:54:42 server systemd[1]: haproxy.service: Failed with result 'exit-code'.
Oct 28 20:54:42 server systemd[1]: Failed to start HAProxy Load Balancer.
landam commented 6 years ago

Reason: haproxy-systemd-wrapper is not available in bionic

landam commented 6 years ago

See related: https://github.com/DBezemer/rpm-haproxy/issues/7