package nginx-extras (not installed) failed to install/upgrade: installed nginx-extras package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Bug encountered during distribution upgrade
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: nginx-extras (not installed)
ProcVersionSign
Uname: Linux 5.4.0-26-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
Date: Fri Apr 24 18:50:02 2020
ErrorMessage: installed nginx-extras package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2019-01-21 (459 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2
SourcePackage: nginx
Title: package nginx-extras (not installed) failed to install/upgrade: installed nginx-extras package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Looks like some other process was left behind listening on the socket thus preventing nginx from binding that IP/port:
Apr 24 18:49:59 xeonux systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 24 18:49:59 xeonux nginx[22466]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
...
Apr 24 18:50:02 xeonux nginx[22466]: nginx: [emerg] still could not bind()
Are you aware of any other web servers you might have been running at the time of the update? If not, it's possible it was an old instance of nginx that was not stopped properly and conflicted with the new one. This could happen if you had manually started nginx (without systemctl/service) for example. I'm mark the bug as incomplete while waiting for more details from you. Thanks!