ONLYOFFICE / Docker-DocumentServer

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
GNU Affero General Public License v3.0
1.37k stars 470 forks source link

Nginx logs hundreds of errors per day #750

Open solracsf opened 1 month ago

solracsf commented 1 month ago

Do you want to request a feature or report a bug?

Upstream errors

What is the current behavior?

Docker container nginx.error.log spits hundreds of errors per day

[error] recv() failed (104: Unknown error) while reading response header from upstream

or

[error] connect() failed (111: Unknown error) while connecting to upstream

or

[error] upstream timed out (110: Unknown error) while reading response header from upstream

What is the expected behavior?

These errors are handled by either the Nginx server or the Upstream (Converter service)

Did this work in previous versions of DocumentServer?

No

DocumentServer Docker tag:

sudo docker run -i -t -d -p 80:80 \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
    -v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  \
    onlyoffice/documentserver

Host Operating System:

Ubuntu 22.04

solracsf commented 1 month ago

I wonder if switching from Nginx to Caddy wouldn't be a good move since it handles everything out of the box (even Websockets).