package haproxy 1.8.8-1ubuntu0.1 failed to install/upgrade: installed haproxy package post-installation script subprocess returned error exit status 1

Bug #1774765 reported by Abhishek Dubey
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
haproxy (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

While upgrading the packages I got this report.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: haproxy 1.8.8-1ubuntu0.1
ProcVersionSignature: Ubuntu 4.15.0-21.22-generic 4.15.17
Uname: Linux 4.15.0-21-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Sat Jun 2 12:56:12 2018
ErrorMessage: installed haproxy package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-06-24 (342 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-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.1
SourcePackage: haproxy
Title: package haproxy 1.8.8-1ubuntu0.1 failed to install/upgrade: installed haproxy package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-04-15 (47 days ago)
modified.conffile..etc.default.haproxy: [modified]
modified.conffile..etc.haproxy.haproxy.cfg: [modified]
mtime.conffile..etc.default.haproxy: 2018-03-03T20:50:28.580803
mtime.conffile..etc.haproxy.haproxy.cfg: 2018-03-03T23:41:14.936352

Revision history for this message
Abhishek Dubey (abhishekdubey666) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

This is the error log:
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/system/haproxy.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2018-06-02 12:55:58 IST; 5ms ago
     Docs: man:haproxy(1)
           file:/usr/share/doc/haproxy/configuration.txt.gz
  Process: 6482 ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS (code=exited, status=1/FAILURE)
  Process: 6481 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS)
 Main PID: 6482 (code=exited, status=1/FAILURE)

Jun 02 12:55:59 Dell haproxy[6495]: [ALERT] 152/125559 (6495) : Starting proxy mysql: cannot bind socket [127.0.0.1:3306]
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Main process exited, code=exited, status=1/FAILURE
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Failed with result 'exit-code'.
Jun 02 12:55:59 Dell systemd[1]: Failed to start HAProxy Load Balancer.
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Service hold-off time over, scheduling restart.
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Jun 02 12:55:59 Dell systemd[1]: Stopped HAProxy Load Balancer.
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Start request repeated too quickly.
Jun 02 12:55:59 Dell systemd[1]: haproxy.service: Failed with result 'exit-code'.
Jun 02 12:55:59 Dell systemd[1]: [0;

It looks like you have another service already listening on port 3306. Perhaps it's mysql itself?

Please attach these files:
/etc/default/haproxy
/etc/haproxy/haproxy.cfg

And show the output of this command:
sudo netstat -anp

Thanks!

Changed in haproxy (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for haproxy (Ubuntu) because there has been no activity for 60 days.]

Changed in haproxy (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.