Error when saving Onlyoffice settings
See original GitHub issueNextcloud 11.0.3 (stable), running on Ubuntu server 16.04.2 OnlyOffice integration app 1.0.4 OnlyOffice Document Server 4.3.4, running on Ubuntu server 16.04.2
Onlyoffice settings:
- Document Editing Service address: https://onlyoffice.abc.com/
- Document Editing Service address for internal requests from the server: https://192.168.1.179/
- Server address for internal requests from the Document Editing Service: https://192.168.1.178/
Error displayed at top of Nextcloud administrative page when saving settings:
Error when trying to connect (Bad Request or timeout error)
Messages in Nextcloud log when saving settings:
{"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"SetDocumentServerUrl: https:\/\/onlyoffice.abc.com\/","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"SetDocumentServerInternalUrl: http:\/\/192.168.1.179\/","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"SetStorageUrl: https:\/\/192.168.1.178:12443\/","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"Clear secret key","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"PHP","message":"file_get_contents(): Peer certificate CN=
onlyoffice.abc.com’ did not match expected CN=192.168.1.179' at \/var\/www\/nextcloud\/apps\/onlyoffice\/lib\/documentservice.php#305","level":3,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"PHP","message":"file_get_contents(): Failed to enable crypto at \/var\/www\/nextcloud\/apps\/onlyoffice\/lib\/documentservice.php#305","level":3,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"PHP","message":"file_get_contents(http:\/\/192.168.1.179\/coauthoring\/CommandService.ashx): failed to open stream: operation failed at \/var\/www\/nextcloud\/apps\/onlyoffice\/lib\/documentservice.php#305","level":3,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"CommandRequest on check error: Bad Request or timeout error","level":3,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"Set default formats: {\"docx\":\"true\",\"xlsx\":\"true\",\"pptx\":\"true\",\"ppsx\":\"true\",\"txt\":\"false\"}","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"} {"reqId":"om5OE3nHeC7HSSttERzM","remoteAddr":"192.168.1.161","app":"onlyoffice","message":"Set opening in a same tab: true","level":1,"time":"2017-05-30 18:42:45","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings","user":"user","version":"11.0.3.2"}
Further and related to this office documents can be created in Nexcloud but not updated.
Messages in Nextcloud log when creating and then attempting to update a document:
{"reqId":"vjyb0kF6AhrKKJfCIHc1","remoteAddr":"185.153.179.5","app":"admin_audit","message":"File created: \"\/Test OO\/test1.xlsx\"","level":1,"time":"2017-05-30 17:36:40","method":"POST","url":"\/index.php\/apps\/onlyoffice\/ajax\/new","user":"user","version":"11.0.3.2"} {"reqId":"vjyb0kF6AhrKKJfCIHc1","remoteAddr":"185.153.179.5","app":"admin_audit","message":"File written to: \"\/Test OO\/test1.xlsx\"","level":1,"time":"2017-05-30 17:36:40","method":"POST","url":"\/index.php\/apps\/onlyoffice\/ajax\/new","user":"user","version":"11.0.3.2"} {"reqId":"MDDK5ARAN3mNuCaNZFcN","remoteAddr":"185.153.179.5","app":"admin_audit","message":"File accessed: \"\/Test OO\/test1.xlsx\"","level":1,"time":"2017-05-30 17:37:06","method":"GET","url":"\/remote.php\/webdav\/Test%20OO\/test1.xlsx","user":"user","version":"11.0.3.2"} {"reqId":"HkQy8b99ph8xrhzQENrI","remoteAddr":"192.168.1.179","app":"PHP","message":"file_get_contents(): Peer certificate CN=
onlyoffice.abc.com’ did not match expected CN=192.168.1.179' at \/var\/www\/nextcloud\/apps\/onlyoffice\/controller\/callbackcontroller.php#315","level":3,"time":"2017-05-30 17:37:25","method":"POST","url":"\/index.php\/apps\/onlyoffice\/track?doc=NG9wc1VoR1ByOENwQVc1cDVmSU1Nci9YaHdwWHFKNHhoSDJrM3VCbDFsST0\/eyJmaWxlSWQiOjExNTc3LCJvd25lcklkIjoiZGJ1Y2siLCJhY3Rpb24iOiJ0cmFjayJ9","user":"--","version":"11.0.3.2"} {"reqId":"HkQy8b99ph8xrhzQENrI","remoteAddr":"192.168.1.179","app":"PHP","message":"file_get_contents(): Failed to enable crypto at \/var\/www\/nextcloud\/apps\/onlyoffice\/controller\/callbackcontroller.php#315","level":3,"time":"2017-05-30 17:37:25","method":"POST","url":"\/index.php\/apps\/onlyoffice\/track?doc=NG9wc1VoR1ByOENwQVc1cDVmSU1Nci9YaHdwWHFKNHhoSDJrM3VCbDFsST0\/eyJmaWxlSWQiOjExNTc3LCJvd25lcklkIjoiZGJ1Y2siLCJhY3Rpb24iOiJ0cmFjayJ9","user":"--","version":"11.0.3.2"} {"reqId":"HkQy8b99ph8xrhzQENrI","remoteAddr":"192.168.1.179","app":"PHP","message":"file_get_contents(https:\/\/192.168.1.179\/cache\/files\/115771496165800_187\/output.xlsx\/output.xlsx?md5=BlciLZ-1XnMtHmQhydNwiQ==&expires=1498757846&disposition=attachment&ooname=output.xlsx): failed to open stream: operation failed at \/var\/www\/nextcloud\/apps\/onlyoffice\/controller\/callbackcontroller.php#315","level":3,"time":"2017-05-30 17:37:25","method":"POST","url":"\/index.php\/apps\/onlyoffice\/track?doc=NG9wc1VoR1ByOENwQVc1cDVmSU1Nci9YaHdwWHFKNHhoSDJrM3VCbDFsST0\/eyJmaWxlSWQiOjExNTc3LCJvd25lcklkIjoiZGJ1Y2siLCJhY3Rpb24iOiJ0cmFjayJ9","user":"--","version":"11.0.3.2"}
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Hello @Dave-REBL
Please do the following to resolve the issue: open the NextCloud config file /nextcloud/config/config.php => and add a section to it:
‘onlyoffice’ => array ( ‘verify_peer_off’ => TRUE, )
Was facing the same problem. The way It was solve was to use the fully qualify domain name instead of IP address. eg. https://xe.jit.intranet/onlyoffice-documentserver/. The fully qualify domain name can be found in /etc/hosts