improved log for license mismatch issues

This commit is contained in:
2022-08-27 20:27:13 +00:00
parent 55c3c373f7
commit 9bea20023a
3 changed files with 25 additions and 31 deletions

8
.vscode/launch.json vendored
View File

@@ -62,12 +62,12 @@
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=300;", "AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata", "AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
"AYANOVA_USE_URLS": "http://*:7575;", "AYANOVA_USE_URLS": "http://*:7575;",
"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true", //"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",
//"AYANOVA_REMOVE_LICENSE_FROM_DB":"true", //"AYANOVA_REMOVE_LICENSE_FROM_DB":"true",
//"AYANOVA_SERVER_TEST_MODE": "false", "AYANOVA_SERVER_TEST_MODE": "false",
//"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
//"AYANOVA_REPORT_RENDERING_TIMEOUT":"1", //"AYANOVA_REPORT_RENDERING_TIMEOUT":"1",
// "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin" "AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin"
}, },
"sourceFileMap": { "sourceFileMap": {

View File

@@ -31,43 +31,27 @@ THINGS HOLDING UP PERPETUAL RELEASE
WIP >>>>>>>>>>>>> WIP >>>>>>>>>>>>>
bugbug: migrate errorduring initial erase : subscription
xception has occurred: CLR/Npgsql.PostgresException
Exception thrown: 'Npgsql.PostgresException' in System.Private.CoreLib.dll: '23503: update or delete on table "apm" violates foreign key constraint "aworkorder_frompmid_fkey" on table "aworkorder"
DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.'
at Npgsql.Internal.NpgsqlConnector.<<ReadMessage>g__ReadMessageLong|211_0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlDataReader.<NextResult>d__47.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlCommand.<ExecuteReader>d__116.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Npgsql.NpgsqlCommand.<ExecuteReader>d__116.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
todo: move next release of v7 to downloads and update web page, reword to say it ensures there are no bare line feeds in messages to be on the safe side or something to that effect todo: move next release of v7 to downloads and update web page, reword to say it ensures there are no bare line feeds in messages to be on the safe side or something to that effect
TESTING NEXT UP V8MIGRATE.... TESTING NEXT UP V8MIGRATE....
todo: TEST subscription and perpetual license code
todo: TEST subscription and perpetual license code LOCALLY / then posted hosted
Does a trial request for sbuscription work? YES Does a trial request for sbuscription work? YES
Correct date range? YES Correct date range? YES
Generate data? YES Generate data? YES
v8migrate work? YES? v8migrate work? YES
Can generate HUGE data set on trial?
Does a trial request for perpetual work? YES Does a trial request for perpetual work? YES
correct date range? YES correct date range? YES
Generate data? YES Generate data? YES
v8migratework? v8migratework? YES
Can generate HUGE data set on trial?
Can I bump a trial subscription and / or perptual expiration date if a trialer needs more time!!! IMPORTANT, this way can keep it brief but allow for wiggle Can I bump a trial subscription and / or perptual expiration date if a trialer needs more time!!! IMPORTANT, this way can keep it brief but allow for wiggle
Does new boot code still work when no database? YES BUT it must not be a TRIAL key, it can be a full key that is time restricted but not flagged trial as raven prevents a trial key being used with a non empty db
Does new boot code still work when no database? YES
Does new boot code work to prevent running if wrong build or maint date expired vs build date? Does new boot code work to prevent running if wrong build or maint date expired vs build date?
Does it prevent changing a user to active? Does it prevent changing a user to active?
Does it prevent changing a user type? (direct db meddling) Does it prevent changing a user type? (direct db meddling)
@@ -75,6 +59,14 @@ todo: TEST subscription and perpetual license code
Does it communicate this well to the user? Does it communicate this well to the user?
Test the living fuck out of this from the NEXT deployment before any hint of live posting as there are so many changes it's necessary Test the living fuck out of this from the NEXT deployment before any hint of live posting as there are so many changes it's necessary
todo: SUPER IMPORTANT DO ASAP Need a raven licensing / hosting reference manual for my own use with sections on things like how to extend a trial properly, etc etc
Also for the use of an assistant potentially, a markdown document that is made into a web page available through rockfish itself!!!
start it early and add the bit about extending a trial above to get the ball rolling
a rockfish usage wiki so to speak
Go ahead with a full manual for this one using the same docs system as for ayanova qbi manual but hang it off of rockfish with a link
this way it will work on a phone or other small device if on the road etc
todo: *** IMPORTANT v8migrate, why is there no dire warning before it starts? I'm trying the licensed version and it's just diong it once teh selection is made, there's no warnings, nothing!!
todo: IMPORTANT UPDATE manual, screenshots regarding Customer contact user and regular user and AllowLogin property added!!! todo: IMPORTANT UPDATE manual, screenshots regarding Customer contact user and regular user and AllowLogin property added!!!
Also license related info about how to free up a user for licensing and how users consume licenses Also license related info about how to free up a user for licensing and how users consume licenses

View File

@@ -1068,7 +1068,7 @@ EQIDAQAB
if (MExBB(Util.FileUtil.GetLinkerTimestampUtc(System.Reflection.Assembly.GetExecutingAssembly()), key)) if (MExBB(Util.FileUtil.GetLinkerTimestampUtc(System.Reflection.Assembly.GetExecutingAssembly()), key))
{ {
Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR); Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR);
log.LogError("E1020 - build too new for license");
//NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR matched for in startup.cs DO NOT change this without fixing the side effects //NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR matched for in startup.cs DO NOT change this without fixing the side effects
throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR); throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR);
} }
@@ -1077,6 +1077,7 @@ EQIDAQAB
#if (SUBSCRIPTION_BUILD) #if (SUBSCRIPTION_BUILD)
if(key.Perpetual){ if(key.Perpetual){
Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR); Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR);
log.LogError("E1020 - subscription build but perpetual key");
//NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR bit below is checked for in startup.cs DO NOT remove this without fixing the side effects //NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR bit below is checked for in startup.cs DO NOT remove this without fixing the side effects
throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR); throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR);
} }
@@ -1084,6 +1085,7 @@ EQIDAQAB
if (!key.Perpetual) if (!key.Perpetual)
{ {
Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR); Console.WriteLine(LICENSE_MISMATCH_TO_BUILD_ERROR);
log.LogError("E1020 - perpetual build but subscription key");
//NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR bit below is checked for in startup.cs DO NOT remove this without fixing the side effects //NOTE: LICENSE_MISMATCH_TO_BUILD_ERROR bit below is checked for in startup.cs DO NOT remove this without fixing the side effects
throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR); throw new ApplicationException(LICENSE_MISMATCH_TO_BUILD_ERROR);
} }