[Bug 1479477] Re: package nginx-light 1.6.2-5ubuntu3.1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

Thomas Ward teward at trekweb.org
Wed Jul 29 20:00:50 UTC 2015


Your apt history shows the following:

Start-Date: 2015-07-19  20:43:33
Commandline: /usr/sbin/synaptic
Install: ... nginx- core:amd64 (1.6.2-5ubuntu3, automatic), ... nginx-common:amd64 (1.6.2-5ubuntu3, automatic), nginx:amd64 (1.6.2-5ubuntu3), ...
Upgrade: tzdata:amd64 (2015c-1, 2015d-0ubuntu0.15.04)
End-Date: 2015-07-19  20:45:30

...

Start-Date: 2015-07-29  00:29:54
Commandline: /usr/sbin/synaptic
Remove: nginx-core:amd64 (1.6.2-5ubuntu3.1), nginx-common:amd64 (1.6.2-5ubuntu3.1), nginx:amd64 (1.6.2-5ubuntu3.1)
End-Date: 2015-07-29  00:29:58

Start-Date: 2015-07-29  00:32:21
Commandline: /usr/sbin/synaptic
Install: nginx-common:amd64 (1.6.2-5ubuntu3.1, automatic), nginx:amd64 (1.6.2-5ubuntu3.1), nginx-light:amd64 (1.6.2-5ubuntu3.1)


On July 19th: you installed the `nginx` metapackage, which installed nginx-common and nginx-core.  Ten days later, on the 29th, you removed nginx-core, nginx-common, and nginx.  You then installed nginx-common, nginx-light, and nginx.


With the bug, this is the error you are failing to install with (i.e. the service can't start because of - see the SystemctlStatusFull_Nginx.txt.txt attachment):

Jul 29 20:08:06 nn nginx[976]: nginx: [emerg] open() "/etc/nginx/fastcgi.config" failed (2: No such file or directory) in /etc/nginx/sites-enabled/default:49
Jul 29 20:08:06 nn nginx[976]: nginx: configuration file /etc/nginx/nginx.conf test failed


This indicates that somewhere in your configuration, an `include` was added to include the `fastcgi.config` file.  However, that file doesn't exist even in a standard installation.  It's actually called 'fastcgi.conf'.

Also, when you 'remove' a package, it doesn't actually erase the
configuration files - it just removes the binary executables, so it left
whatever configurations you had intact.

This is not a bug in the nginx package.  This is an issue with the
configuration file being left behind (it is NOT removed during an `apt-
get remove` or a 'Remove package' command from Synaptic, only when you
say 'Completely Remove' or run `apt-get remove --purge` to totally
remove the package AND configuration files) having an incorrect
configuration argument.

I can only surmise that during the ten days you had nginx-core
installed, you messed around with the configuration files and mistyped
the include line in the default sites-available file.  This is, however,
not a bug.

** Changed in: nginx (Ubuntu)
       Status: New => Invalid

** Summary changed:

- package nginx-light 1.6.2-5ubuntu3.1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
+ package nginx-light 1.6.2-5ubuntu3.1 failed to install/upgrade - postinstallation script failed due to bad configuration directive in left over configuration files from prior installation tasks

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1479477

Title:
  package nginx-light 1.6.2-5ubuntu3.1 failed to install/upgrade -
  postinstallation script failed due to bad configuration directive in
  left over configuration files from prior installation tasks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1479477/+subscriptions



More information about the Ubuntu-server-bugs mailing list