Nginx.service crash by onlyoffice config

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: YunoHost 12.1.14 (stable)
What app is this about: onlyoffice

Describe your issue

nginx crashes if change the onlyoffice allow list in app dialog afterwards.
systemctl status nginx gives: unexpected “C” in line 67 (onlyoffice)
restart nginx doesn’t work, remove onlyoffice let nginx start again.

I try to change the list due to onlyoffice connector in nextcloud (https://mydomain/nextcloud) does not connect with: “Error while downloading the document file to be converted”. Connector is 9.10.0

Another Nextcloud extern domain, same version, same connector seems to connect, but firefox complains not allowed to show site. (cors problems?)

my humhub instanz works in this setting! domain is https://social.mydomain.de
Problems appear after update onlyoffice to 9, now it is 9.0.4~ynh4

Share relevant logs or error messages

systemctl status nginx unexpected “C” in line 67
“Error while downloading the document file to be converted”.

1 Like

Hello, i have the same problem after update onlyoffice and nextcloud.

I had reboot the server and now, nginx not start.

When i do nginx -t i have this message :

2025/08/24 19:48:30 [emerg] 193762#193762: unexpected “C” in /etc/nginx/conf.d/onlyoffice.protectora.fr.d/onlyoffice.conf:67
nginx: configuration file /etc/nginx/nginx.conf test failed

I resolved the issue by removing OnlyOffice from the SSH terminal :

yunohost app remove onlyoffice

I regained access to the web interface and was able to reinstall OnlyOffice, which no longer works with Nextcloud. But that’s another matter.

Hello,
I had the same problem, and when I corrected line 67, the message indicated an error on line 70… It never ends.

Uninstall using the command ‘yunohost app remove onlyoffice’.

Then reinstall cleanly.

Nextcloud no longer works with OnlyOffice, apparently access denied to edit a file.

Everything looks fine in /var/www/onlyoffice/config/local.json

and in /etc/yunohost/apps/onlyoffice/settings.yml

The authorised domains are listed there, the token is identical to the Nextcloud configuration interface (via the Nextcloud OnlyOffice app).

I am desperately searching through the nginx configurations.

In the meantime, the solution remains Collabora Office, but it is clearly inferior in my opinion (typing latency and features).

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

Thanks for reporting this, you can add "; at the end of the line 18.

This bug appears when you use the config panel to change the allowed url list.

I am writing a fix.

2 Likes

The fix is available in testing branch.

2 Likes

The fix is available in 9.0.4~ynh6

1 Like