OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

Nginx: Won't start with default config #2923

Closed peter-power-594 closed 9 months ago

peter-power-594 commented 1 year ago

OpenMandriva version:
OpenMandriva Lx 23.06 6.3.5-desktop-3omv2390

Describe the bug: the default nginx's server.conf will try to enable the SSL version as well which is not available by default (The include module file "ssl.conf" does not exit)

Steps to reproduce:

sudo dnf install nginx
sudo systemctl start nginx

Observed behavior: Nginx won't start

Expected behavior: Nginx to start

Additional comment: Minor issue for me, just removing or commenting the SSL section in the /etc/nginx/sites-enabled/default.conf is enough.

Cheers

davidebeatrici commented 1 year ago

@berolinux https://github.com/OpenMandrivaAssociation/nginx-quic/commit/ca6899b086e8acae2091e2a6d13555d071322a70 should be moved into nginx.

tpgxyz commented 1 year ago

@peter-power-594 please provide the logs from nginx when you are starting the service

peter-power-594 commented 1 year ago

@tpgxyz :1234: Here it is :

juin 17 16:38:40 concorde nginx[8967]: nginx: [emerg] open() "/etc/nginx/ssl.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/default.conf:20
juin 17 16:38:40 concorde nginx[8967]: nginx: configuration file /etc/nginx/nginx.conf test failed
juin 17 16:38:40 concorde systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
davidebeatrici commented 1 year ago

I confirm https://github.com/OpenMandrivaAssociation/nginx-quic/commit/ca6899b086e8acae2091e2a6d13555d071322a70 fixes that.

peter-power-594 commented 1 year ago

@tpgxyz To follow on @davidebeatrici here is my current laptop screenshot'slogs :

Screenshot_20230617_231016

Screenshot_20230617_231340

benbullard79 commented 9 months ago

This seems to be fixed here.

Screenshot_20230926_084814