From the logs:

Setting up nginx-core (1.18.0-6ubuntu14.7) ...
cat: /etc/nginx/nginx.conf: No such file or directory
 * Upgrading binary nginx       
(...)
Dec 14 08:46:02 v2202108153683159642 systemd[1]: Starting A high performance 
web server and a reverse proxy server...
Dec 14 08:46:02 v2202108153683159642 nginx[117290]: nginx: [emerg] open() 
"/etc/nginx/nginx.conf" failed (2: No such file or directory)
Dec 14 08:46:02 v2202108153683159642 nginx[117290]: nginx: configuration file 
/etc/nginx/nginx.conf test failed


So looks like you have a missing configuration file (/etc/nginx/nginx.conf). 
This cannot be explained with just the provided log files.

I do see this, however:
× nginx.service - A high performance web server and a reverse 
proxy server
     Loaded: loaded 
(]8;;file://v2202108153683159642/lib/systemd/system/nginx.service/lib/systemd/system/nginx.service]8;;;
 enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/nginx.service.d
             
└─]8;;file://v2202108153683159642/etc/systemd/system/nginx.service.d/cloudron.confcloudron.conf]8;;
     Active: failed (Result: exit-code) since Sun 2025-12-14 
08:46:02 UTC; 127ms ago
       Docs: ]8;;man:nginx(8)man:nginx(8)]8;;
    Process: 117290 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=1/FAILURE)

What caught my eye was this path, however:

file://v2202108153683159642/etc/systemd/system/nginx.service.d/cloudron.conf

That root directory (/v2202108153683159642/) indicates this is something
else and not a plain ubuntu system. Is this a chroot? Container?
Snapshot? It looks like whatever provisioned this system for you, and
created this systemd override file for nginx, did not expect you to
release-upgrade it to a newer release of ubuntu, or maybe there is just
a bug in this provisioning system that missed the nginx.conf config
file.

I'll mark this bug as incomplete for now, pending an explanation about
the above.


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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136014

Title:
  package nginx-core 1.18.0-6ubuntu14.7 failed to install/upgrade:
  installednginx-core package post-installation script subprocess
  returned error exit status 1

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to