Page 1 of 3

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

Posted: Fri Jan 25, 2019 10:08 am
by otroccaz
Hi all,
I have 2 separate servers: OC on Ubuntu and OO on Windows and both can communicate with wget.
When I try to save the configuration settings (no secret key), I get the error "an error occurred in the document service".
Here is the OC log:

Code: Select all

{"reqId":"8AolKKP90tahDXmKSi7N","level":0,"time":"2019-01-25T10:51:49+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"OC\\User\\Session::validateToken","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"token 8f17ee6287d51ee7474fc6c1b3d9f177edcbf81b0740a3b9e1032423ed2f39644aa496de58206f26a93901505a46790b03ee22f6106338a6140d20378bff5ab5 with token id 49763 found, validating"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":0,"time":"2019-01-25T10:51:49+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"OC\\User\\Session::validateToken","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"token 8f17ee6287d51ee7474fc6c1b3d9f177edcbf81b0740a3b9e1032423ed2f39644aa496de58206f26a93901505a46790b03ee22f6106338a6140d20378bff5ab5 with token id 49763 found, validating"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":0,"time":"2019-01-25T10:51:49+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"OC\\User\\Session::validateToken","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"token 8f17ee6287d51ee7474fc6c1b3d9f177edcbf81b0740a3b9e1032423ed2f39644aa496de58206f26a93901505a46790b03ee22f6106338a6140d20378bff5ab5 with token id 49763 found, validating"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:50+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"SetDocumentServerUrl: https:\/\/onlyoffice-osur.univ-rennes1.fr\/ds-vpath\/"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:50+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"SetDocumentServerInternalUrl: "}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:50+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"SetStorageUrl: "}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:50+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Clear secret key"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":3,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"PHP","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"file_get_contents(https:\/\/onlyoffice-osur.univ-rennes1.fr\/ds-vpath\/cache\/files\/conv_check_1220618989_docx\/output.docx\/empty%3Fdoc%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.docx?md5=7LEVSVnztpZsbIhKKnbe1w==&expires=1548410812&disposition=attachment&ooname=output.docx): failed to open stream: HTTP request failed! HTTP\/1.1 500 Internal Server Error\r\n at \/var\/www\/owncloud\/apps\/onlyoffice\/lib\/documentservice.php#385"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":3,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Request converted file on check error: https:\/\/onlyoffice-osur.univ-rennes1.fr\/ds-vpath\/cache\/files\/conv_check_1220618989_docx\/output.docx\/empty%3Fdoc%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.docx?md5=7LEVSVnztpZsbIhKKnbe1w==&expires=1548410812&disposition=attachment&ooname=output.docx Une erreur s'est produite dans le service de document"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Set default formats: {\"csv\":\"false\",\"doc\":\"false\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"false\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"false\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Set editing formats: {\"csv\":\"true\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"rtf\":\"false\",\"txt\":\"true\"}"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Set opening in a same tab: false"}
{"reqId":"8AolKKP90tahDXmKSi7N","level":1,"time":"2019-01-25T10:51:52+01:00","remoteAddr":"129.20.126.23","user":"Olivier Troccaz","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"Set groups: null"}
I think error 500 for file_get_content function is due to the fact that the test document to be converted is not accessible. However, the folder and file are well created but, with nginx logs on debug, I don't see any particular error.

Do you have any leads to share with me and any help is appreciated.

Olivier

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

Posted: Mon Jan 28, 2019 6:58 am
by Maxim
Hello Olivier!
OC on Ubuntu and OO on Windows
OC - Community Server?
OO - Document Server?

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

Posted: Mon Jan 28, 2019 8:30 am
by otroccaz
Hello Maxim!
Sorry : OC is for ownCloud and OO for onlyOffice (Community Edition)
Thanks in advance if you can help me.
Olivier

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

Posted: Tue Jan 29, 2019 7:53 am
by Maxim
Hello otroccaz!
Can you show OwnCloud Onlyoffice settings?

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

Posted: Tue Jan 29, 2019 8:40 am
by otroccaz
For owncloud, I entered https://onlyoffice-osur.univ-rennes1.fr/ds-vpath/ as the document editing service address (no advanced server settings) and that's it for onlyoffice for the 3 fields :
/ds-vpath/
http://localhost:8083/
https://onlyoffice-osur.univ-rennes1.fr/

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

Posted: Wed Jan 30, 2019 8:03 am
by otroccaz
Do you also need the default and local json files and the owncloud config.php?

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

Posted: Wed Jan 30, 2019 8:21 am
by Maxim
Hello!
1. In Onlyoffice you should put 'http://localhost/' instead of 'https://onlyoffice-osur.univ-rennes1.fr/'
2. run command from the Ubuntu server (owncloud)

Code: Select all

wget https://onlyoffice-osur.univ-rennes1.fr
Will you get index.html?
3. What message do you get when you try to save settings of Onlyoffice app in OwnCloud?

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

Posted: Wed Jan 30, 2019 8:45 am
by otroccaz
Hello!
Thanks for your answer!
1. If I put http://localhost/, I have an error message : "Community server url: download,[object Object]"
2. Yes, I can connect with wget and get the index.html file
3. The message is "Error during connection attempt (An error occurred in the document service)" (perhaps not exactly the same in english but I translated it from french)

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

Posted: Fri Feb 01, 2019 2:58 pm
by otroccaz
Hello!
I did some more tests.
In 1., if I restore https://onlyoffice-osur.univ-rennes1.fr/, I can save Onlyoffice's configuration settings and I have access to the test files under /products/files (which is not the case if I put http://localhost). So it's the right configuration, don't you think?
In addition, https://onlyoffice-osur.univ-rennes1.fr ... ealthcheck returns me well "true".

I continued with other similar topics seen on forums: I also have access to https://onlyoffice-osur.univ-rennes1.fr ... nts/api.js. but not to https://owncloud-osur.univ-rennes1.fr/i ... fice/empty. So it seems to me that the problem comes from Onlyoffice app in OwnCloud, but where?

I keep looking for...

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

Posted: Mon Feb 04, 2019 7:20 am
by Carl
Hello,

This error (an error occurred in the document service) is on the document server's side so we need its logs to analyze the issue. The logs can be found here: C:\Program Files\ONLYOFFICE\DocumentServer\Log

Also specify the versions of Document Server and ONLYOFFICE connector for Owncloud.