package nginx-extras 1.18.0-6ubuntu2 failed to install/upgrade: installed nginx-extras package post-installation script subprocess returned error exit status 1

Bug #1901969 reported by Paul Dorman on 2020-10-29

This bug report will be marked for expiration in 31 days if no further activity occurs. (find out why)

10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Undecided
Unassigned

Bug Description

Occurred when upgrading from Focal to Groovy

ProblemType: Package
DistroRelease: Ubuntu 20.10
Package: nginx-extras 1.18.0-6ubuntu2
ProcVersionSignature: Ubuntu 5.8.0-26.27-generic 5.8.14
Uname: Linux 5.8.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu Oct 29 09:54:42 2020
ErrorMessage: installed nginx-extras package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2019-01-21 (646 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Python3Details: /usr/bin/python3.8, Python 3.8.6, python3-minimal, 3.8.6-0ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.20.5ubuntu2
 apt 2.1.10
SourcePackage: nginx
Title: package nginx-extras 1.18.0-6ubuntu2 failed to install/upgrade: installed nginx-extras package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to groovy on 2020-10-28 (0 days ago)

Paul Dorman (paul-dorman) wrote :
tags: removed: need-duplicate-check
Simon Déziel (sdeziel) wrote :

@Paul, this looks like a locall issue according to the logs:

Oct 29 09:54:41 xeonux systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 29 09:54:41 xeonux nginx[3643287]: nginx: [emerg] "load_module" directive is specified too late in /etc/nginx/modules-enabled/70-mod-stream-geoip.conf:1
Oct 29 09:54:41 xeonux nginx[3643287]: nginx: configuration file /etc/nginx/nginx.conf test failed

I suspect that maybe "/etc/nginx/nginx.conf" was edited and the "include /etc/nginx/modules-enabled/*.conf;" line is no longer near the top before the other "{...}" sections.

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

Other bug subscribers