question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when saving Onlyoffice settings

See original GitHub issue

Nextcloud 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:

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:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
alexanderonlyofficecommented, Sep 11, 2017

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, )

0reactions
austinsdoecommented, May 20, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot save file · Issue #1094 · ONLYOFFICE/DocumentServer
After installing OnlyOffice on Nextcloud, I got this error every time I open a document : Translation : Cannot save the document.
Read more >
Warning message about not being able to save the changes
1 into the same folder. Go to Nextcloud => Apps => find ONLYOFFICE in the list and there you will see the version....
Read more >
The document could not saved. Please check connection ...
The document could not saved. Please check connection setting or contact system admistration ... ieve in detail. For bug reports, provide the ...
Read more >
Saving issue in ONLYOFFICE desktop
If you got an error message when trying to save your document, spreadsheet, or presentation, check if it's being edited in another app....
Read more >
OnlyOffice integration with NextCloud fails when trying to save ...
When I say that the connectivity seems to exist, that is just for the wget commands. The error still shows when I try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found