Hi all,
I have OnlyOffice Workspace Community Edition running, with Community Server version 11.5.2.1542 and Control Panel v 3.0.0.381 (no Mail Server or Docs) via Docker on a Debian Buster (10) host.
I have been doing regular backups via the built-in backup-and-restore function of Control Panel. Unfortunately (entirely my fault) I waited quite long before testing a restore of the backups. Now I want to create a test environment to test a restore of the backups (and test an upgrade to the current version after that). Alas, I cannot by the life of me get it to run. (And a restore of the backup in an environment with the current version of all components fails as well.)
I install the docker containers via
sudo bash workspace-install.sh -cv 11.5.2.1542 -cpv 3.0.0.381 -mk MACHINE-KEY-OF-PRODUCTION-INSTANCE
on a separate Debian Buster host.
Result is a “500 Internal Server Error” response. It seems mono is constantly restarting inside the onlyoffice/communityserver container.
Tail of /app/onlyoffice/CommunityServer/logs/web.log on host:
2024-03-20 16:10:22,581 ERROR [5] ASC.Web - Warmup error System.Collections.Generic.KeyNotFoundException: The given key '3894' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at MySql.Data.MySqlClient.MySqlField.SetFieldEncoding () [0x00034] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlField.set_CharacterSetIndex (System.Int32 value) [0x00007] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.NativeDriver.GetColumnData (MySql.Data.MySqlClient.MySqlField field) [0x000ad] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.NativeDriver.GetColumnsData (MySql.Data.MySqlClient.MySqlField[] columns) [0x00004] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.Driver.GetColumns (System.Int32 count) [0x0001c] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.ResultSet.LoadColumns (System.Int32 numCols) [0x00000] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.ResultSet..ctor (MySql.Data.MySqlClient.Driver d, System.Int32 statementId, System.Int32 numCols) [0x0002a] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.Driver.NextResult (System.Int32 statementId, System.Boolean force) [0x00039] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlDataReader.NextResult () [0x000d5] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlDataReader.Close () [0x00039] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlDataReader.Dispose (System.Boolean disposing) [0x00003] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlDataReader.Dispose () [0x00000] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery () [0x0004b] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.Driver.Configure (MySql.Data.MySqlClient.MySqlConnection connection) [0x0017e] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x002c8] in <2fd3c7a64a4546cfbdfc4da289d6e0a8>:0
at ASC.Common.Data.AdoProxy.DbConnectionProxy.Open () [0x00012] in <aa72a3ad0a754725806c8a1beb2f98a3>:0
at ASC.Common.Data.DbManager.OpenConnection () [0x00006] in <aa72a3ad0a754725806c8a1beb2f98a3>:0
at ASC.Common.Data.DbManager.get_Command () [0x0000e] in <aa72a3ad0a754725806c8a1beb2f98a3>:0
at ASC.Common.Data.DbManager.ExecuteList (ASC.Common.Data.Sql.ISqlInstruction sql) [0x00000] in <aa72a3ad0a754725806c8a1beb2f98a3>:0
at ASC.Common.Data.DbManagerProxy.ExecuteList (ASC.Common.Data.Sql.ISqlInstruction sql) [0x00006] in <aa72a3ad0a754725806c8a1beb2f98a3>:0
at ASC.Core.Data.DbBaseService+<>c__DisplayClass8_0.<ExecList>b__0 (ASC.Common.Data.IDbManager db) [0x00000] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.Data.DbBaseService.Execute[T] (System.Func`2[T,TResult] action) [0x00007] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.Data.DbBaseService.ExecList (ASC.Common.Data.Sql.ISqlInstruction sql) [0x0000d] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.Data.DbTenantService.GetTenants (ASC.Common.Data.Sql.Expressions.Exp where) [0x00007] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.Data.DbTenantService.GetTenants (System.DateTime from, System.Boolean active) [0x00048] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.Caching.CachedTenantService.GetTenants (System.DateTime from, System.Boolean active) [0x00000] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Core.TenantManager.GetTenants (System.Boolean active) [0x00000] in <6c2b7679edd64973b811b6d5b86c5e26>:0
at ASC.Web.Studio.Core.WarmUp..ctor () [0x0006b] in <3882346827c645f59d36da72df1ab97f>:0
2024-03-20 16:10:22,581 ERROR [5] ASC - Start Warmup System.NullReferenceException: Object reference not set to an instance of an object
at ASC.Web.Studio.Core.WarmUp.Start () [0x00033] in <3882346827c645f59d36da72df1ab97f>:0
at ASC.Web.Studio.Startup.Configure () [0x000f4] in <3882346827c645f59d36da72df1ab97f>:0
Within the communityserver container, a “service monoserve status” returns:
monoserve.service - FastCGI Mono server
Loaded: loaded (/lib/systemd/system/monoserve.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) since Wed 2024-03-20 16:16:49 UTC; 499ms ago
Process: 7099 ExecStartPre=/bin/bash -c test -e /var/run/onlyoffice || install -m 755 -o onlyoffice -g nginx -d /var/run/onlyoffice; rm -f /var/run/onlyoffice
/onlyoffice.socket /var/www/onlyoffice/WebStudio/mono_crash* /var/www/onlyoffice/WebStudio/core.*; (code=exited, status=0/SUCCESS)
Main PID: 7101 (mono)
Tasks: 62 (limit: 4915)
CGroup: /docker/d4294e54f30c9dee94a45b24f1c216096b47fea5600b7a5d5602427b8d29ad8e/system.slice/monoserve.service
└─7101 /usr/bin/mono /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /config=/etc/hyperfastcgi/onlyoffice /logfile=/var/log/onlyoffice/onlyoffice.log /log
levels=Error
Mar 20 16:16:12 d4294e54f30c systemd[1]: Starting FastCGI Mono server...
Mar 20 16:16:12 d4294e54f30c systemd[1]: Started FastCGI Mono server.
Mar 20 16:16:13 d4294e54f30c hyperfastcgi4[7101]: WebConfigurationManager's LRUcache Size overriden to: 2000 (via MONO_ASPNET_WEBCONFIG_CACHESIZE)
Mar 20 16:16:49 d4294e54f30c systemd[1]: Stopping FastCGI Mono server...
I would highly appreciate any help. I do not want to risk the update procedure on the production instance without being able to test it first. Thanks!