package nginx-core 1.14.0-0ubuntu1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1

Bug #1769430 reported by Gerald Brown
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

package nginx-core 1.14.0-0ubuntu1 failed to install

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: nginx-core 1.14.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Sun May 6 15:31:09 2018
ErrorMessage: installed nginx-core package post-installation script subprocess returned error exit status 1
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: nginx
Title: package nginx-core 1.14.0-0ubuntu1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-04-28 (8 days ago)

Revision history for this message
Gerald Brown (gerbreown43) wrote :
Revision history for this message
Gerald Brown (gerbreown43) wrote :

I was using synaptic to install Nginx and this bug was created.

tags: removed: need-duplicate-check
Revision history for this message
Thomas Ward (teward) wrote :

Did you ever have the upstream nginx installations on your system, either compiled from source or otherwise? Because this looks like something specific to your system, and likely because the actual nginx upstream 'default' location is in use.

These lines in the systemctl status output specifically indicate a configuration level issue on your end:

May 06 15:31:17 gerald-HP-Notebook nginx[13067]: nginx: [emerg] open() "/usr/share/nginx/logs/nginx.pid" failed (2: No such file or directory)
May 06 15:31:17 gerald-HP-Notebook nginx[13067]: nginx: configuration file /etc/nginx/nginx.conf test failed

The default NGINX configuration for Ubuntu's NGINX packages defines the following in /etc/nginx/nginx.conf:

pid /run/nginx.pid;

Your system is trying to use /usr/share/nginx/logs/nginx.pid. This is the default for NGINX when you are using the upstream defaults. This is atypical and can cause problems.

If you ever had NGINX on this system before, that configuration was likely never erased (unless you use 'purge' when removing the packages). This is the most likely cause of the problem (but ultimately is not really a bug in the package itself).

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

Marking the bug as "incomplete" given the feedback in comment #3

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

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

Changed in nginx (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.