Nginx exit with error code

Hello kingii.

Please note that we strongly recommend to use our official guides.

For Docker: Installing ONLYOFFICE Docs for Docker on a local server - ONLYOFFICE

For package: Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives - ONLYOFFICE

Document Server version: How do I check it?

Please run apt list --installed | grep onlyoffice and show us the result.

Also please provide us with some additional information about your installation. Are you using clean OS? I mean no other apps are installed on the server.

As for the issue in general. Please execute this command unlink /etc/nginx/modules-enabled/50-mod-http-perl.conf. After that execute service nginx restart and check if the issue is reproduced again.