Applicable to:
- Plesk for Linux
Symptoms
- After updating Plesk to Obsidian 18.0.72 Update 2, all domains nginx configuration files are broken.
-
The following error message appears on the Home page in Plesk:
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] could not build map_hash, you should increase map_hash_bucket_size: 32 nginx: configuration file /etc/nginx/nginx.conf test failed
- Domains show a http 404 error.
- IPv6 addresses are used on the server.
- The CPU with 32-bit cache size or
QEMU Virtual CPUis used.
Cause
This behavior was identified as bug PPPM-15110. In some virtualization setups that use QEMU-based virtual CPUs, Nginx can incorrectly detect the CPU cache line size. This misdetection often results in a default map_hash_bucket_size of 34, which may lead to configuration issues, particularly when processing long IPv6 addresses.
Resolution
Until the bug is fixed, refer to the following workaround to increase the map_hash_bucket_size parameter:
- Connect to the server via SSH.
-
Create a configuration file with the parameter added:
# echo 'map_hash_bucket_size 64;' >> /etc/nginx/conf.d/fix_hash_bucket.conf
-
Restart nginx:
# systemctl restart nginx
-
Rebuild the web server configuration:
# plesk sbin httpdmng --reconfigure-all
Comments
Please sign in to leave a comment.