ASC - System.Runtime.Serialization.SerializationException

I see and error in web.log that is new since my upgrade

ii onlyoffice-communityserver
ii onlyoffice-controlpanel
ii onlyoffice-documentserver 7.3.3-49~stretch
ii onlyoffice-xmppserver

Any ideas ? JWT related?

2023-05-23 18:51:02,411 ERROR [19] localhost - ASC - System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type ASC.Core.Tenants.TenantCookieSettings. The token '"' was expected but found 'â'. ---> System.Xml.XmlException: The token '"' was expected but found 'â'.
  at System.Xml.XmlExceptionHelper.ThrowXmlException (System.Xml.XmlDictionaryReader reader, System.String res, System.String arg1, System.String arg2, System.String arg3) [0x0007c] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Xml.XmlExceptionHelper.ThrowXmlException (System.Xml.XmlDictionaryReader reader, System.String res, System.String arg1, System.String arg2) [0x00000] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Xml.XmlExceptionHelper.ThrowTokenExpected (System.Xml.XmlDictionaryReader reader, System.String expected, System.Char found) [0x0000e] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.XmlJsonReader.ReadServerTypeAttribute (System.Boolean consumedObjectChar) [0x00027] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.XmlJsonReader.ReadAttributes () [0x000d1] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.XmlJsonReader.ReadNonExistentElementName (System.Xml.StringHandleConstStringType elementName) [0x0005c] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.XmlJsonReader.Read () [0x00118] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Xml.XmlBaseReader.IsStartElement () [0x0001c] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Xml.XmlBaseReader.IsStartElement (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri) [0x0002a] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.XmlReaderDelegator.IsStartElement (System.Xml.XmlDictionaryString localname, System.Xml.XmlDictionaryString ns) [0x00032] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement (System.Runtime.Serialization.XmlReaderDelegator reader, System.Runtime.Serialization.DataContract contract, System.Xml.XmlDictionaryString name, System.Xml.XmlDictionaryString ns) [0x0000a] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalIsStartObject (System.Runtime.Serialization.XmlReaderDelegator reader) [0x00013] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject (System.Runtime.Serialization.XmlReaderDelegator xmlReader, System.Boolean verifyObjectName) [0x00034] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject (System.Runtime.Serialization.XmlReaderDelegator reader, System.Boolean verifyObjectName, System.Runtime.Serialization.DataContractResolver dataContractResolver) [0x00000] in <5276c6fdd550403cbd27611ca6f2592a>:0
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions (System.Runtime.Serialization.XmlReaderDelegator reader, System.Boolean verifyObjectName, System.Runtime.Serialization.DataContractResolver dataContractResolver) [0x00072] in <5276c6fdd550403cbd27611ca6f2592a>:0

type or paste code here

type or paste code here

Looks like this old .NET issue

Hi @ivan

Are there any consequences of this error?

1 Like

When loading “excel” sheets I see a lag as web.log gets written to heavily on this “soft” error.

It’s NON fatal Nikolas - so NOT high priority. But, its indicative of some SERDES issue.


Can I ask you to provide an example of the Excel file that causes an error when uploading?

1 Like

Hi Nikolas…

This issue is back again…

Leads to VERY VERY slow appearance of the document for edit in browser (chrome or firefox)
making editing very tedious :frowning:

Ubuntu 22.04 + latest patches
NEW kernel 6.2.0-26-generic #26~22.04.1-Ubuntu

dpkg --list|grep onlyoffice|awk '{print $2 i" " $3 " " $4}'

onlyoffice-documentserver 7.4.1-36

errors here…
web.log and XLSX file attachedweb.docx (7.1 KB)

XL file used here
COPY-DONT-EDIT-Day-Month-Year-HUBNAME.xlsx (8.7 KB)

dotnet-apphost-pack-6.0 6.0.21-1
dotnet-apphost-pack-7.0 7.0.10-1
dotnet-host 7.0.10-1
dotnet-hostfxr-6.0 6.0.21-1
dotnet-hostfxr-7.0 7.0.10-1
dotnet-runtime-6.0 6.0.21-1
dotnet-runtime-7.0 7.0.10-1
dotnet-runtime-deps-6.0 6.0.21-1
dotnet-runtime-deps-7.0 7.0.10-1
dotnet-sdk-6.0 6.0.413-1
dotnet-sdk-7.0 7.0.400-1
dotnet-targeting-pack-6.0 6.0.21-1
dotnet-targeting-pack-7.0 7.0.10-1

Interesting I have 6 and 7 here !

Hi @ivan

Let’s be clear.

  • Does the problem only occur when opening a certain file?
  • Send the output of the command: dotnet --info
  • Did the problem occur after the update?

Ah… It seems to be ONE file (embarassed to admit)

It was generated from excel on windows I think. I can track that down,

But it did happen after dotnet 7
That may be a coincidence.


PS I feel you canm put this to low priority for now unless something obvious shows up in the XLS file I uploaded. I can “santize” them perhaps before uploading them into OO.

root@onlyoffice:~# dotnet --info
Version: 7.0.400
Commit: 73bf45718d

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/7.0.400/

Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4

.NET SDKs installed:
6.0.413 [/usr/share/dotnet/sdk]
7.0.400 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21 [/usr/share/dotnet/shared/Microsoft.AspNetCore .App]
Microsoft.AspNetCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore .App]
Microsoft.NETCore.App 6.0.21 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:

Environment variables:
Not set

global.json file:
Not found

Learn more:
dotnet command - .NET CLI | Microsoft Learn

Download .NET:
.NET Downloads (Linux, macOS, and Windows)

1 Like