package nginx 1.26.0-2ubuntu3.2 failed to install/upgrade: el subproceso instalado paquete nginx script post-installation devolvió el código de salida de error 1

Bug #2099930 reported by holiveros

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

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

Bug Description

problema

ProblemType: Package
DistroRelease: Ubuntu 24.10
Package: nginx 1.26.0-2ubuntu3.2
ProcVersionSignature: Ubuntu 6.11.0-18.18-generic 6.11.11
Uname: Linux 6.11.0-18-generic x86_64
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon Feb 24 14:12:22 2025
ErrorMessage: el subproceso instalado paquete nginx script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2025-01-07 (48 days ago)
InstallationMedia: Ubuntu 24.10 "Oracular Oriole" - Release amd64 (20241009.4)
Python3Details: /usr/bin/python3.12, Python 3.12.7, python3-minimal, 3.12.6-0ubuntu1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.22.11ubuntu1
 apt 2.9.8
SourcePackage: nginx
Title: package nginx 1.26.0-2ubuntu3.2 failed to install/upgrade: el subproceso instalado paquete nginx script post-installation devolvió el código de salida de error 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
holiveros (hugo-oliveros) wrote :
Revision history for this message
Eduardo Barretto (ebarretto) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
Revision history for this message
John Chittum (jchittum) wrote :

On first reading, this looks like a configuration issue, possibly a misconfiguration / choice during an upgrade

* nginx is failing to start due to a missing file: feb 24 14:12:22 thinkPad-E58-2 nginx[142256]: 2025/02/24 14:12:22 [emerg] 142256#142256: open() "/etc/nginx/sites-enabled/sonarqube.thinkPad-E58-2.com.com" failed (2: No such file or directory) in /etc/nginx/nginx.conf:61
* by default, `nginx` will load all files in `/etc/nginx/sites-enabled/` (snip below)

 41 access_log /var/log/nginx/access.log;
 42
 43 ##
 44 # Gzip Settings
 45 ##
 46
 47 gzip on;
 48
 49 # gzip_vary on;
 50 # gzip_proxied any;
 51 # gzip_comp_level 6;
 52 # gzip_buffers 16 8k;
 53 # gzip_http_version 1.1;
 54 # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
 55
 56 ##
 57 # Virtual Host Configs
 58 ##
 59
 60 include /etc/nginx/conf.d/*.conf;
 61 include /etc/nginx/sites-enabled/*;
 62 }

* the file is unavailable -- it could be a dead link?

could you provide the following info:

1. any nginx config that is shareable and relevant
2. the contents of `/etc/nginx/sites-enabled/`
3. if there are any links in `/etc/nginx/sites-enabled/`, could you ensure that the links are not broken?

in a test setup i can reproduce this with a broken link

1. lxc launch ubuntu-daily:oracular
2. sudo apt install nginx
3. touch /tmp/nginx-site.com
4. ln -s /tmp/nginx-site.com /etc/nginx/sites-enabled/nginx-site.com
5. service nginx restart
<all is well>
6. rm /tmp/nginx-site.com
7. service nginx restart
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

Feb 26 15:36:29 fond-mutt nginx[1474]: 2025/02/26 15:36:29 [emerg] 1474#1474: open() "/etc/nginx/sites-enabled/nginx-site.com" failed (2: No such file or directory) in /etc/nginx/nginx.conf:61
Feb 26 15:36:29 fond-mutt nginx[1474]: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 26 15:36:29 fond-mutt systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.