This commit is contained in:
@@ -5,7 +5,7 @@ namespace AyaNova.Util
|
||||
/// </summary>
|
||||
internal static class AyaNovaVersion
|
||||
{
|
||||
public const string VersionString = "8.0.35";
|
||||
public const string VersionString = "8.0.36";
|
||||
public const string FullNameAndVersion = "AyaNova server " + VersionString;
|
||||
public const string CurrentApiVersion="v8";
|
||||
}//eoc
|
||||
|
||||
@@ -700,6 +700,9 @@ namespace AyaNova.Core
|
||||
try
|
||||
{
|
||||
//First fetch the schema db id for the servers database, the license must match
|
||||
//NOTE: if get error "Sequence contains more than one element" here
|
||||
//this is caused by a user restoring AyaNova DB without using the -c clean command line switch and
|
||||
//so it puts two records into the schemaversion table causing this line to bomb as it's expecting single record only
|
||||
var schema = await ct.SchemaVersion.AsNoTracking().SingleOrDefaultAsync();
|
||||
if (schema == null || string.IsNullOrWhiteSpace(schema.Id))
|
||||
{
|
||||
@@ -814,6 +817,10 @@ namespace AyaNova.Core
|
||||
{
|
||||
var msg = "E1020 - Error initializing license key";
|
||||
log.LogCritical(ex, msg);
|
||||
if (ex.Message.Contains("Sequence contains more than one element"))
|
||||
{
|
||||
log.LogCritical("The preceding error may have been caused by AyaNova database recently restored without using the -c CLEAN option in the restore command");
|
||||
}
|
||||
apiServerState.SetSystemLock(msg);
|
||||
throw new ApplicationException(msg, ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user