Package: nginx-common
Version: 1.6.2-5+deb8u1
Severity: important

Dear Maintainer,

On upgrading to the latest nginx-common, all configuration files in /etc/nginx 
are deleted.
The directory structure is left intact, but no files exist in the tree - not 
even the
package originals. Nginx then (understandably) refuses to start.

Andrew.



0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/86.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 169364 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.6.2-5+deb8u1_all.deb ...
Unpacking nginx-common (1.6.2-5+deb8u1) over (1.6.2-5+deb8u1) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up nginx-common (1.6.2-5+deb8u1) ...
Setting up nginx-full (1.6.2-5+deb8u1) ...
Job for nginx.service failed. See 'systemctl status nginx.service' and 
'journalctl -xn' for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-full (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
andrewg@whippet:~$ sudo systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since Tue 2016-02-16 14:48:53 GMT; 31s ago
  Process: 6282 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process 
on; (code=exited, status=1/FAILURE)

Feb 16 14:48:53 whippet nginx[6282]: nginx: [emerg] open() 
"/etc/nginx/nginx.conf" failed (2: No such file or directory)
Feb 16 14:48:53 whippet nginx[6282]: nginx: configuration file 
/etc/nginx/nginx.conf test failed
Feb 16 14:48:53 whippet systemd[1]: nginx.service: control process exited, 
code=exited status=1
Feb 16 14:48:53 whippet systemd[1]: Failed to start A high performance web 
server and a reverse proxy server.
Feb 16 14:48:53 whippet systemd[1]: Unit nginx.service entered failed state.
andrewg@whippet:~$ ls -alR /etc/nginx/
/etc/nginx/:
total 32
drwxr-xr-x   6 root root  4096 Feb 16 14:48 .
drwxr-xr-x 155 root root 12288 Feb 16 14:43 ..
drwxr-xr-x   2 root root  4096 Feb 10 21:54 conf.d
drwxr-xr-x   2 root root  4096 Feb 16 14:48 sites-available
drwxr-xr-x   2 root root  4096 Feb 10 21:54 sites-enabled
drwxr-xr-x   2 root root  4096 Feb 16 14:48 snippets

/etc/nginx/conf.d:
total 8
drwxr-xr-x 2 root root 4096 Feb 10 21:54 .
drwxr-xr-x 6 root root 4096 Feb 16 14:48 ..

/etc/nginx/sites-available:
total 8
drwxr-xr-x 2 root root 4096 Feb 16 14:48 .
drwxr-xr-x 6 root root 4096 Feb 16 14:48 ..

/etc/nginx/sites-enabled:
total 8
drwxr-xr-x 2 root root 4096 Feb 10 21:54 .
drwxr-xr-x 6 root root 4096 Feb 16 14:48 ..

/etc/nginx/snippets:
total 8
drwxr-xr-x 2 root root 4096 Feb 16 14:48 .
drwxr-xr-x 6 root root 4096 Feb 16 14:48 ..



-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable'), (800, 'testing'), (700, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nginx-common depends on:
ii  init-system-helpers  1.22
ii  lsb-base             4.1+Debian13+nmu1

nginx-common recommends no packages.

Versions of packages nginx-common suggests:
pn  fcgiwrap   <none>
pn  nginx-doc  <none>
ii  ssl-cert   1.0.35

-- Configuration Files:
/etc/nginx/fastcgi.conf [Errno 2] No such file or directory: 
u'/etc/nginx/fastcgi.conf'
/etc/nginx/fastcgi_params [Errno 2] No such file or directory: 
u'/etc/nginx/fastcgi_params'
/etc/nginx/koi-utf [Errno 2] No such file or directory: u'/etc/nginx/koi-utf'
/etc/nginx/koi-win [Errno 2] No such file or directory: u'/etc/nginx/koi-win'
/etc/nginx/mime.types [Errno 2] No such file or directory: 
u'/etc/nginx/mime.types'
/etc/nginx/nginx.conf [Errno 2] No such file or directory: 
u'/etc/nginx/nginx.conf'
/etc/nginx/proxy_params [Errno 2] No such file or directory: 
u'/etc/nginx/proxy_params'
/etc/nginx/scgi_params [Errno 2] No such file or directory: 
u'/etc/nginx/scgi_params'
/etc/nginx/sites-available/default [Errno 2] No such file or directory: 
u'/etc/nginx/sites-available/default'
/etc/nginx/snippets/fastcgi-php.conf [Errno 2] No such file or directory: 
u'/etc/nginx/snippets/fastcgi-php.conf'
/etc/nginx/snippets/snakeoil.conf [Errno 2] No such file or directory: 
u'/etc/nginx/snippets/snakeoil.conf'
/etc/nginx/uwsgi_params [Errno 2] No such file or directory: 
u'/etc/nginx/uwsgi_params'
/etc/nginx/win-utf [Errno 2] No such file or directory: u'/etc/nginx/win-utf'

-- no debconf information

Reply via email to