NGINX configuration - `proxy_temp_file_write_size` must be equal or higher than `proxy_buffer_size`
Closed this issue · 1 comments
ale-cristofori commented
When building the Geoserver image (as it is right now), the NGINX reverse proxy container will build but it will fail to start with the following error message.
2023-07-25 12:54:52 2023/07/25 10:54:52 [emerg] 1#1: "proxy_temp_file_write_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /etc/nginx/nginx.conf:32
2023-07-25 12:54:52 nginx: [emerg] "proxy_temp_file_write_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /etc/nginx/nginx.conf:32
The proxy_temp_file_write_size
is now set to 32kb and according to the error message it should be raised to be at least 256kb, the current value.
boukandouramhamed commented
@randomorder I've increased an tested the proxy_temp_file_write_size.
- proxy_temp_file_write_size 256k: Was throwing same error
- proxy_temp_file_write_size 257k: Was throwing same error
- proxy_temp_file_write_size 300k: Was throwing same error
- proxy_temp_file_write_size 512k: fixed the issue.
proxy_temp_file_write_size: is the size of file where nginx will save response from reverse proxy incase proxy_buffer_size is not enough. The new 512k value should be fine.
![Screenshot 2023-07-26 112637](https://private-user-images.githubusercontent.com/24936890/256203378-316eba8c-b543-4ac7-800a-05ca749b4e83.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMTQ5MTksIm5iZiI6MTcyNTExNDYxOSwicGF0aCI6Ii8yNDkzNjg5MC8yNTYyMDMzNzgtMzE2ZWJhOGMtYjU0My00YWM3LTgwMGEtMDVjYTc0OWI0ZTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDE0MzAxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkODQ0N2U1ZDFmNjJkNTQxZmY0MzYwOWE1MWM5YjQzMDViYjE0NTVjNjhiODZjOTA4ZWFhMDk0Y2Y0ODg0NmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jHS50SHyzVUBt8eg97keM9kzgV5nIUP7GDLTYmJCPK8)
A PR is created.