How to solve the error: "The document could not be saved"

Questions/problems on Docker
Post Reply
olegburca
Posts: 3
Joined: Wed Aug 10, 2016 12:26 pm
Location: Moldova, Chisinau
Contact:

How to solve the error: "The document could not be saved"

Post by olegburca » Wed Aug 10, 2016 7:47 pm

Hi,

I installed OnlyOffice CommunityServer (Docker version) on a virtual machine (KVM, Xeon CPU, 8GB RAM for VM) via installation script, then configured it to WORK on HTTPS (updated the crt and key files as is wrote in documentation).
Everything is working fine, except an annoing Warning on Documents module:
The document could not be saved. Please check connection settings or contact your administrator.
When you click the 'OK' button, you will be prompted to download the document.
Find more information about connecting Document Server here.
onlyofficeerror.png
OnlyOffice Document module error
onlyofficeerror.png (10.25 KiB) Viewed 4200 times
After I click OK, document is closed and I'm redirected to my documents list. This warning appear 2 or 3 times, then does not show more. The changes are saved, but it is very annoing.

When that error occurs, I see the following logs in /var/log/onlyoffice/documentserver/CoAuthoringService/out.log:
[2016-08-10 19:38:34.150] [ERROR] nodeJS - postData error: docId = 6TyFHQHlW4zyi9PmJRI_;url = http://mydomain.com:80/products/files/h ... false;data = {"key":"6TyFHQHlW4zyi9PmJRI_","status":1,"users":["7c83e94a-f9a5-40d3-87a0-0315c69068aa"],"actions":[{"type":1,"userid":"7c83e94a-f9a5-40d3-87a0-0315c69068aa"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:213:18)
at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:187:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1044:10)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:965:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)

Eugenie
Posts: 134
Joined: Mon Aug 25, 2014 10:11 am

Re: How to solve the error: "The document could not be saved

Post by Eugenie » Thu Aug 11, 2016 11:24 am

Hello,

First of all, please go Settings>>Integration>>Document Service and change address in the line "Community Server Address" to your IP address (or to your domain address if IP is indicated at the moment).

If it does not solve the issue, please send us a screenshot showing Settings you have chosen.

olegburca
Posts: 3
Joined: Wed Aug 10, 2016 12:26 pm
Location: Moldova, Chisinau
Contact:

Re: How to solve the error: "The document could not be saved

Post by olegburca » Thu Aug 11, 2016 12:54 pm

Eugenie,
Thank you for replay!

I used these settings, but got the same errors.
onlyoffice-integration-settings.png
onlyoffice integration settings
onlyoffice-integration-settings.png (31.92 KiB) Viewed 4175 times
Does it require some other settings?
Logs show that it still try to connect via HTTP, even if URLs was changed to HTTPS.
[2016-08-11 12:45:38.612] [ERROR] nodeJS - postData error: docId = 6TyFHQHlW4zyi9PmJRI_;url = http://mydomain.work:80/products/files/ ... false;data = {"key":"6TyFHQHlW4zyi9PmJRI_","status":1,"users":["7c83e94a-f9a5-40d3-87a0-0315c69068aa"],"actions":[{"type":1,"userid":"7c83e94a-f9a5-40d3-87a0-0315c69068aa"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:213:18)
at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:187:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1044:10)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:965:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)

olegburca
Posts: 3
Joined: Wed Aug 10, 2016 12:26 pm
Location: Moldova, Chisinau
Contact:

Re: How to solve the error: "The document could not be saved

Post by olegburca » Thu Aug 11, 2016 3:01 pm

Eugenie, thank you for help!

The problem is solved.
Updating of domain name on settings page did the job, but that does not solve the error for the documents that was created/uploaded before changes.

If anyone have the same error: Change the domain name in settings then re-upload existing files.

Regards,
Oleg.

jhettler
Posts: 1
Joined: Mon Jun 19, 2017 10:13 pm

Re: How to solve the error: "The document could not be saved

Post by jhettler » Mon Jun 19, 2017 10:18 pm

Hi guys,

I have the same issue, I had to change the document server address in owncloud administration and since that time I have this issue. I can open, edit and save documents, but I have this message during opening of the document. If I reupload the document, everything works fine, but is there any different workaround? I can't imagine that I need to reupload all documents.

Thanks & regards, Jakub

JefferyR
Posts: 1
Joined: Mon Aug 14, 2017 1:03 pm

Re: How to solve the error: "The document could not be saved

Post by JefferyR » Sun Aug 20, 2017 5:18 pm

jhettler wrote:Hi guys,

I have the same issue, I had to change the document server address in owncloud administration and since that time I have this issue. I can open, edit and save documents, but I have this message during opening of the document. If I reupload the document, everything works fine, but is there any different workaround? I can't imagine that I need to reupload all documents.

Thanks & regards, Jakub
Hi Jakub, same here. Did you find a better solution?

Maxim
Posts: 1781
Joined: Tue Oct 11, 2016 2:34 pm

Re: How to solve the error: "The document could not be saved

Post by Maxim » Mon Aug 21, 2017 6:23 am

Hello JefferyR!
Describe your Onlyoffice configuration please.
This error appears when the document editing service cannot connect to the document storage service (see here).

Post Reply