Unable to save settings: an error occurred in the document service

Issues during installation, usage and configuring
Carl
Posts: 172
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to save settings: an error occurred in the document service

Post by Carl » Wed Feb 06, 2019 11:38 am

Hi otroccaz,
I updated the Document Server and had to change the "community server address for requests from the document service" to "http://onlyoffice-osur.univ-rennes1.fr/" (no https) of the document service location because otherwise the portal did not work (the converter out.log file showed a self signed certificate error) .
Document Server does not support self-signed certificates by default. I'd recommend using Let's Encrypt certificates, they are fully trusted by Document Server. You can also disable certificate verification in Document Server config default.json (set rejectUnauthorized to false and restart all Document Server services).

otroccaz
Posts: 17
Joined: Wed Jan 16, 2019 4:57 pm

Re: Unable to save settings: an error occurred in the document service

Post by otroccaz » Wed Feb 06, 2019 12:48 pm

Carl,
The certificates are issued to me by the central IT department and I cannot use others. I was able to set up the rejectUnauthorized to false option, fill in the https url and save without any problem.
On ownCloud, I now have the option to create documents, spreadsheets or presentations. But, when I want to edit one of these new files, I don't have the "open in ONLYOFFIVE" menu option. When I click on the name, a new window opens like for editing but there is no tool. At this point, I think it's more related to ownCloud but if you have an idea, I'm interested. Otherwise, you can mark this topic as resolved (I don't think I can do it myself).
Many thanks again for your patience!

otroccaz
Posts: 17
Joined: Wed Jan 16, 2019 4:57 pm

Re: Unable to save settings: an error occurred in the document service

Post by otroccaz » Wed Feb 06, 2019 4:26 pm

It's definitely ownCloud with Apache adding an X-Frame-Options header: SAMEORIGIN

Carl
Posts: 172
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to save settings: an error occurred in the document service

Post by Carl » Thu Feb 07, 2019 9:24 am

Hi,

Please try to add

Code: Select all

add_header X-Frame-Options "ALLOW-FROM https://document_server_address";
to Apache config.

otroccaz
Posts: 17
Joined: Wed Jan 16, 2019 4:57 pm

Re: Unable to save settings: an error occurred in the document service

Post by otroccaz » Thu Feb 07, 2019 9:42 am

Hello Carl!

The problem was to find where this header was inserted: for information, it's ownCloud itself in the.htaccess file under /var/www/owncloud/
I modified the line... and everything works :D !!!!!

Thank you, thank you very much for your help.

Olivier

Carl
Posts: 172
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to save settings: an error occurred in the document service

Post by Carl » Thu Feb 07, 2019 11:48 am

Olivier,

I am glad you've managed to solve the issue. If you have any other questions, feel free to ask.

Post Reply