FS#67339 - [nginx] File mime.types not found after package installation

Attached to Project: Arch Linux
Opened by Patricio Ascencio (pascencio) - Monday, 20 July 2020, 21:58 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 20 July 2020, 22:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

File mime.types not found after package installation.

Additional info:
Package version: nginx-1.18.0-1

Error in nginx.conf when execute nginx -t command:
2020/07/20 17:50:25 [emerg] 29789#29789: open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:18
nginx: configuration file /etc/nginx/nginx.conf test failed

Steps to reproduce:
First:
yay -S nginx

Then:
systemctl start nginx

When check nginx service status:
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-07-20 17:57:11 -04; 26s ago
Process: 30621 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; error_log stderr; (code=exited, status=1/FAILURE)

jul 20 17:57:11 patricio-hp systemd[1]: Starting A high performance web server and a reverse proxy server...
jul 20 17:57:11 patricio-hp nginx[30621]: 2020/07/20 17:57:11 [emerg] 30621#30621: open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /etc/nginx/ng>
jul 20 17:57:11 patricio-hp systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
jul 20 17:57:11 patricio-hp systemd[1]: nginx.service: Failed with result 'exit-code'.
jul 20 17:57:11 patricio-hp systemd[1]: Failed to start A high performance web server and a reverse proxy server.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 20 July 2020, 22:38 GMT
Reason for closing:  Not a bug
Additional comments about closing:  nginx depends on mailcap

Loading...