Saving in old MS Office formats (.doc and .xls) with onlyoffice document server

After update the last document server in linux with “apt get update” “apt get upgrade” in a linux debian machine, we can’t edit .doc or .xls office format. Before the update worked perfectly.

We checked that the property in the default.json file is set to: “assemblyFormatAsOrigin”:false,
the update change the value to true.

The .doc files can be opened and changed, but when you close it, It doesn’t save the file.
With .docx or other format works fine everything.

Something has changed in the last update. Please, could you tell us how maintain the compatibility? Now our users that still works with old office format can’t save their documents with onlyoffice.

Hello, you can set assemblyFormatAsOrigin within default.json (/etc/onlyoffice/documentserver/) back to false, this way your doc files will be saved in docx format. Also, remember to restart ONLYOFFICE services afterwards: systemctl restart ds-*.

Hello, thanks for answer.
I’ve tried with true and false and restart. The issue continue.
If I open a .doc and edited, the document server can’t save it in the same format? in .doc and not in docx.
Perhaps is missing another parameter in the default.json?

Unfortunately, ONLYOFFICE Docs does not support saving in legacy formats such as .doc.
Please provide an example of the .doc file

Hello DmitriiV,

Thanks for your quick response.

It’s works fine in OnlyOffice v 7.4. When you open an old “doc” file with the editor, the server convert it to the new format, then when you close the file it is saved, internally this is in new (docx) format, users don’t care about this, the document was edited and successfully saved.

Now there is a bug in V8.0. I have tested it after an update to V8.0 and in a fresh Debian 12 installation.

When you close the document, it is not saved at all. I think save process is failing. If you can’t test it, we can send you the out logs from server.

Thanks.

Please provide the following info:

  1. Document Server logs (/var/log/onlyoffice/documentserver)
  2. So, the issue occurs with all .doc files? If it happens with some particular file, please send it to us
  3. What do you integrate Document Server with? (for example, ownCloud, Alfresco, etc.)

Hello DmitriiV,

Please, let me some time to deploy a new server in my cloud provider. The other server with fresh install Onlyoffice v8 was deleted.

I integrate Document server with own API. I use javascript and config.

One server Debian bullseye with Onlyoffice v7.4 works perfectly with “doc” documents. The file is saved with changes, it is internally converted to docx without problems.

The new Onlyoffice v8 do not save changes in documents “doc”, it works with “docx”. There is something wrong, some bug, I have change configuration several times with no success.

Thanks.

Alright, please take your time to deploy, after that reproduce the issue and send us Document Server logs

Hello DmitriiV,
docservice-out.log.docx (25.2 KB)
converter-out.log.docx (25.0 KB)

Attached I send the logs after open a “doc” and changes are not saved.

Thanks.

Please provide an example of .doc file with which you face the issue.

example word 97-2003.doc (25.5 KB)
Hello, here you are.
Thanks.

We checked the provided file using a built-in Test Example of Document Server in which preliminary conversion from legacy formats to ooxml formats was implemented and the problem was not reproduced.

Please provide full Document Server logs as you provided only a piece of them.

Hello, so, the file can be opened, the problem is when you modify and close it.
That it doesn’t save and remains like opened.

Give me some time to gather the records you need.
Thanks again.

Hello, alright

Same issue can be seen on: 8.0.1.31, with “assemblyFormatAsOrigin”: false. Also, I’ve found this in the log files trying to save .xls ( which may be useful ):

/var/log/onlyoffice/documentserver/converter/out.log

[2024-03-12T12:03:38.669] [ERROR] [localhost] [kZPg8d4OZ5U18OzZ8oSbZf7ff83e7631b6c2b55bdc88c8a4ebcc15f29dce1Z1710244784] [2Z4399121Z4Z17102447862] nodeJS - stdout:
[2024-03-12T12:03:38.671] [ERROR] [localhost] [kZPg8d4OZ5U18OzZ8oSbZf7ff83e7631b6c2b55bdc88c8a4ebcc15f29dce1Z1710244784] [2Z4399121Z4Z17102447862] nodeJS - stderr:
[2024-03-12T12:03:38.671] [ERROR] [localhost] [kZPg8d4OZ5U18OzZ8oSbZf7ff83e7631b6c2b55bdc88c8a4ebcc15f29dce1Z1710244784] [2Z4399121Z4Z17102447862] nodeJS - ExitCode (code=88;signal=null;error:-88)
[2024-03-12T12:05:59.087] [ERROR] [localhost] [kZdP2ocOZZL8zZc2f9fed891f68cebebcfdaf6136fadc30561a358Z1710242497] [2Z41859Z4Z17102451535] nodeJS - stdout:
[2024-03-12T12:05:59.089] [ERROR] [localhost] [kZdP2ocOZZL8zZc2f9fed891f68cebebcfdaf6136fadc30561a358Z1710242497] [2Z41859Z4Z17102451535] nodeJS - stderr:
[2024-03-12T12:05:59.090] [ERROR] [localhost] [kZdP2ocOZZL8zZc2f9fed891f68cebebcfdaf6136fadc30561a358Z1710242497] [2Z41859Z4Z17102451535] nodeJS - ExitCode (code=88;signal=null;error:-88)

Even worse, with “assemblyFormatAsOrigin”: false fails to save the newer formats as well.

Yes, the file assembly does not work with “false” presently, it is a bug. Please convert legacy formats before opening them for now as it is mentioned in our article here: ONLYOFFICE Api Documentation - Converting and Downloading File

But old version works perfectly. The error is in new 8.0.

Here you have the test made today.

[2024-03-13T17:40:26.061] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:40:26.065] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:40:26.076] [WARN] [localhost] [docId] [userId] nodeJS - worker 1069784 started.

[2024-03-13T17:40:26.085] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:40:26.087] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:40:41.976] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:40:41.978] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:40:41.988] [WARN] [localhost] [docId] [userId] nodeJS - worker 1070157 started.

[2024-03-13T17:40:42.006] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:40:42.006] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:41:17.837] [ERROR] [localhost] [75105306cb20ce461e] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stdout:

[2024-03-13T17:41:17.838] [ERROR] [localhost] [75105306cb20ce461e] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stderr:

[2024-03-13T17:41:17.838] [ERROR] [localhost] [75105306cb20ce461e] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - ExitCode (code=88;signal=null;error:-88)

[2024-03-13T17:50:42.509] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:50:42.511] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:50:42.534] [WARN] [localhost] [docId] [userId] nodeJS - worker 1073283 started.

[2024-03-13T17:50:42.549] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:50:42.550] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:51:17.427] [WARN] [localhost] [3e82ac146b092bb3b9] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - rollback to save changes to ooxml. See assemblyFormatAsOrigin param. formatTo=doc

[2024-03-13T17:51:17.474] [ERROR] [localhost] [3e82ac146b092bb3b9] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stdout:

[2024-03-13T17:51:17.474] [ERROR] [localhost] [3e82ac146b092bb3b9] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stderr:

[2024-03-13T17:51:17.474] [ERROR] [localhost] [3e82ac146b092bb3b9] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - ExitCode (code=88;signal=null;error:-88)

[2024-03-13T17:54:07.255] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:54:07.257] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:54:07.272] [WARN] [localhost] [docId] [userId] nodeJS - worker 1074303 started.

[2024-03-13T17:54:07.280] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T17:54:07.281] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T17:54:37.138] [ERROR] [localhost] [5ea9a924c8673018cb] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stdout:

[2024-03-13T17:54:37.138] [ERROR] [localhost] [5ea9a924c8673018cb] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stderr:

[2024-03-13T17:54:37.138] [ERROR] [localhost] [5ea9a924c8673018cb] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - ExitCode (code=88;signal=null;error:-88)

[2024-03-13T18:01:36.357] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T18:01:36.360] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T18:01:36.373] [WARN] [localhost] [docId] [userId] nodeJS - worker 1076781 started.

[2024-03-13T18:01:36.385] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined

[2024-03-13T18:01:36.385] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

[2024-03-13T18:03:18.289] [ERROR] [localhost] [4c3432e30dfcee7051] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stdout:

[2024-03-13T18:03:18.290] [ERROR] [localhost] [4c3432e30dfcee7051] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - stderr:

[2024-03-13T18:03:18.290] [ERROR] [localhost] [4c3432e30dfcee7051] [a4b1a2338596eb851f2da25a04fdab4e1] nodeJS - ExitCode (code=88;signal=null;error:-88)

Yes, I understand. I’ll inform you when the issue is fixed on a future version.

Thanks,

It’s important to maintain legacy. There a lot of people that have .doc or .xls files.
In fact when the server is updated, the /etc/onlyoffice/documentserver/default.json should maintanin or at least create a copy automatically. And not overwrite it loosing all previous configuration.
Regards