OnlyOffice Community Edition without 20 connections limitation

I’ve spend two nights trying to get it running on 18.04, but without success. Decided to install on 16.04, and compiling from source following this: https://autoize.com/building-onlyoffice-document-server-from-source/ and have everything running without any problems. I had some trouble with SSL NGINX config cause I have own certs (not using certbot), but after some tries I did it.

I also managed to run that 3 processes automatically on system start. So if anybody need it, here is how:

  1. Create services files

sudo nano /etc/systemd/system/onlyoffice-docservice.service

[Unit]
Description=Onlyoffice documentserver
After=network.target

[Service]
User=onlyoffice
Type=simple
Environment="NODE_ENV=production-linux" "NODE_CONFIG_DIR=/etc/onlyoffice/documentserver"
ExecStart=/usr/bin/node /var/www/onlyoffice/documentserver/server/DocService/sources/server.js
WorkingDirectory=/etc/onlyoffice/documentserver
LimitNOFILE=1048576
LimitNPROC=64
PrivateTmp=true
PrivateDevices=true
ProtectHome=true

[Install]
WantedBy=multi-user.target

sudo nano /etc/systemd/system/onlyoffice-spellchecker.service

[Unit]
Description=Onlyoffice documentserver
After=network.target

[Service]
User=onlyoffice
Type=simple
Environment="NODE_ENV=production-linux" "NODE_CONFIG_DIR=/etc/onlyoffice/documentserver"
ExecStart=/usr/bin/node /var/www/onlyoffice/documentserver/server/SpellChecker/sources/server.js
WorkingDirectory=/etc/onlyoffice/documentserver
LimitNOFILE=1048576
LimitNPROC=64
PrivateTmp=true
PrivateDevices=true
ProtectHome=true

[Install]
WantedBy=multi-user.target

sudo nano /etc/systemd/system/onlyoffice-fileconverter.service

[Unit]
Description=Onlyoffice documentserver
After=network.target

[Service]
User=onlyoffice
Type=simple
Environment="NODE_ENV=production-linux" "NODE_CONFIG_DIR=/etc/onlyoffice/documentserver"
WorkingDirectory=/var/www/onlyoffice/documentserver/server/FileConverter/sources/
ExecStart=/usr/bin/node /var/www/onlyoffice/documentserver/server/FileConverter/sources/convertermaster.js
WorkingDirectory=/etc/onlyoffice/documentserver
LimitNOFILE=1048576
LimitNPROC=64
PrivateTmp=true
PrivateDevices=true
ProtectHome=true

[Install]
WantedBy=multi-user.target
  1. Make them load automatically on startup

cd /etc/systemd/system

sudo systemctl enable onlyoffice-spellchecker.service

sudo systemctl enable onlyoffice-fileconverter.service

sudo systemctl enable onlyoffice-docservice.service

  1. To start them you have to reboot your server or type

sudo systemctl start onlyoffice-spellchecker.service

sudo systemctl start onlyoffice-fileconverter.service

sudo systemctl start onlyoffice-docservice.service

  1. To check their status type

sudo systemctl status onlyoffice-spellchecker.service

sudo systemctl status onlyoffice-fileconverter.service

sudo systemctl status onlyoffice-docservice.service

5 Likes