[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
Thanks Simon. Yes, the nginx package probably failed to upgrade because the service didn't start. And it didn't start because of a missing certificate: -- Boot 0baea423fe7d453f9d1f6091bc398839 -- Starting A high performance web server and a reverse proxy server... nginx: [emerg] cannot load certificate "/etc/ssl/certs/heliosd.crt": BIO_new_file() failed (SSL: error:8002:system library::No such file or directory:calling fopen(/etc/ssl/certs/heliosd.crt, r) error:1080:BIO rou> nginx: configuration file /etc/nginx/nginx.conf test failed nginx.service: Control process exited, code=exited, status=1/FAILURE nginx.service: Failed with result 'exit-code'. Failed to start A high performance web server and a reverse proxy server. But as I mentioned previously, that should not have crashed the installer. And to be clear, by installer I'm not talking about the nginx package maintainer scripts, but during upgrade from Impish to Jammy via do-release-upgrade(8). Sorry if that wasn't clear before. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
@kip, it seems the problem was merely a configuration issue on your machine (missing SSL cert file), not a bug in NGINX or NGINX's package. As such, we probably don't need to look further into your logs but if you want to take a look, they should still be available for you to consult with `journalctl -u nginx`. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
Unfortunately I think the log is gone now because I "completed" the installation, made sure all packages completed installation with `sudo dpkg --configure -a` and then rebooted. So what we've got above is all we've got. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
"failed to install/upgrade" also means that a package failed to configure. If as Simon says the packages were left unconfigured, then that means the package is "Installed but failed to restart on upgrade" which is an action the postinst scripts execute. So it may not be an 'installer' failure but the configuration failure which led to a false 'installer failed' situation because postinst is configured to reload/restart the NGINX processes on an upgrade. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
@kip, it should in theory not have crashed the installer. Only the nginx(-*) package(s) should be left unconfigured. You can check that with "dpkg -l | grep -v ^ii", it should show you which packages need attention. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
Not quite. It's true that the certificates nginx was looking for weren't present, but that should not have crashed the installer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1977667] Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
Looks like during your upgrade a certificate went awry, but this isn't an NGINX issue, it's the maintenance of your system on your end. From the journalctl data: Jun 04 14:21:05 heliopolis-aws nginx[44002]: nginx: [emerg] cannot load certificate "/etc/ssl/certs/heliosd.crt": BIO_new_file() failed (SSL: error:8002:system library::No such file or directory:calling fopen(/etc/ssl/certs/heliosd.crt, r) error:1080:BIO routines::no such file) Jun 04 14:21:05 heliopolis-aws nginx[44002]: nginx: configuration file /etc/nginx/nginx.conf test failed The required certificate file is missing and can't be found. ** Changed in: nginx (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977667 Title: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-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/1977667/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs