package haproxy (not installed) failed to install/upgrade: installed haproxy package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
haproxy (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have removed haproxy from my machine but still I am getting this issue.
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: haproxy (not installed)
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Tue Jun 26 19:31:19 2018
ErrorMessage: installed haproxy package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-06-24 (371 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.2
SourcePackage: haproxy
Title: package haproxy (not installed) failed to install/upgrade: installed haproxy package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-04-15 (77 days ago)
Thanks for filing this bug in Ubuntu.
This is the error reported in the logs: system/ haproxy. service; enabled; vendor preset: enabled)
file: /usr/share/ doc/haproxy/ configuration. txt.gz /usr/sbin/ haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS [0;1;31m( code=exited, status= 1/FAILURE) [0m /usr/sbin/ haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS)
Setting up haproxy (1.8.8-1ubuntu0.1) ...
Job for haproxy.service failed because the control process exited with error code.
See "systemctl status haproxy.service" and "journalctl -xe" for details.
invoke-rc.d: initscript haproxy, action "start" failed.
● haproxy.service - HAProxy Load Balancer
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-06-26 19:31:18 IST; 7ms ago
Docs: man:haproxy(1)
Process: 16621 ExecStart=
Process: 16619 ExecStartPre=
Main PID: 16621 (code=exited, status=1/FAILURE)
Jun 26 19:31:18 Dell systemd[1]: [0;1;39m [0;1;31m [0;1;39mhaproxy .service: Main process exited, code=exited, status= 1/FAILURE [0m [0;1;31m [0;1;39mhaproxy .service: Failed with result 'exit-code'.[0m [0;1;39m [0;1;31mFailed to start HAProxy Load Balancer.[0m
Jun 26 19:31:18 Dell systemd[1]: [0;1;39m
Jun 26 19:31:18 Dell systemd[1]: [0;1;31m
[1mdpkg:[0m error processing package haproxy (--configure):
installed haproxy package post-installation script subprocess returned error exit status 1
It doesn't tell us enough about why the service failed to start, though.
It also doesn't look like you removed haproxy, as the above shows it being setup.
What happens when you run these commands:
sudo apt update
sudo apt -f install
If it fails again, then please attach the haproxy configuration file (/etc/haproxy/ haproxy. cfg) and the logs, if any, from /var/log/ haproxy. log
Thanks