increased config.json commandtimeout to 300 seconds to support erasing HUGE size db

also more subscription licensing support
This commit is contained in:
2022-08-19 23:45:48 +00:00
parent 3c5c608f3c
commit d560e4ef5a
12 changed files with 25 additions and 15 deletions

4
.vscode/launch.json vendored
View File

@@ -58,7 +58,7 @@
//"AYANOVA_LOG_LEVEL": "Debug",
//"AYANOVA_LOG_LEVEL": "Trace",
"AYANOVA_DEFAULT_TRANSLATION": "en",
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=120;",
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
"AYANOVA_USE_URLS": "http://*:7575;",
//"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",
@@ -112,7 +112,7 @@
//"AYANOVA_LOG_LEVEL": "Debug",
//"AYANOVA_LOG_LEVEL": "Trace",
"AYANOVA_DEFAULT_TRANSLATION": "en",
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=120;",
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
"AYANOVA_USE_URLS": "http://*:7575;",
//"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",

View File

@@ -6,7 +6,7 @@ If any packages have been changed in the release do a thorough security scan and
### Bump version numbers:
Search and replace 8.0.4
Search and replace 8.0.5
webapp,server,launcher, v8migrate (don't change v8migrate unless it has it's own code changes, it's version should be it's own thing other than major release changes etc)
Client end ayanova-version.js,

View File

@@ -139,7 +139,7 @@ TWO types makes the most sense after considering options:
- One time fee, user can use indefinitely
- self installed, hosted and maintained by customer
- least profitable for us long term if they don't buy a maint. subscription
- Without maintenance subscription, eligable for Minor updates only to fix bugs no new features so in other words they buy 8.0.4 they can upgrade to any 8.0.X version release, but not 8.1 as it will be new features added that don't break backward compatibility
- Without maintenance subscription, eligable for Minor updates only to fix bugs no new features so in other words they buy 8.0.5 they can upgrade to any 8.0.X version release, but not 8.1 as it will be new features added that don't break backward compatibility
- one-time payment, along with the option of a yearly maintenance fee.
- This is basically our current model but we allow upgrades for subscribers
- **HAS CODE IMPLICATIONS** upgrades need to check if allowed based on version number if no maintenance subscription _not_ on date of build.

View File

@@ -17,6 +17,12 @@ THINGS HOLDING UP PERPETUAL RELEASE
todo: bugbug?? Attempted migration to very full v8 server and erasing data took forever then bombed a bit later
Key bit here I think: System.TimeoutException: Timeout during reading attempt
Might need to bump up default timeout to work around this, test locally find the value that works
TO TRY: erase huge db locally see where it times out (keep timeout low)
to try: manually run the erase statements one at a time, try to find the slowest one and figure out if there is any improvement to be made
INFO: 300 second command timeout worked and it was able to erase the HUGE database, maybe the easy thing to do is just make the default command timeout 300 seconds and say fuck it for now
2022-08-19 14:54:39.8201|INFO|AyaNova.Api.Controllers.LicenseController|Erasing Database "AyaNova"
2022-08-19 14:55:43.5885|ERROR|SERVER|Error=>Npgsql.NpgsqlException (0x80004005): Exception while reading from stream
@@ -77,6 +83,10 @@ todo: bugbug?? Attempted migration to very full v8 server and erasing data took
todo: weird one, if the migration erase fails, I can login as superuser go to ops server state, it says it's Open but reason says "erasing database" and I can't run migration service unavailable as the server is stuck in erase mode or something
maybe it's still erasing? Weird
todo: erase can take forever, it should be a job maybe instead, I know it's rare to run it but it's going to be trouble down the road.
generate HUGE tracts o data and then jobify the delete job.
Unless this is all to do with a bug erasing so check that first
todo: fake sale of v8 to get license emails to update rockfish to auto read in the deets
FAKE CREDIT CARD
I have generated a test credit card number for your account. Please use the following as the credit card number making sure to use the word test and the 12 digit number with no spaces. You can use any valid information you would like for the other fields.
@@ -98,7 +108,7 @@ todo: fake sale of v8 to get license emails to update rockfish to auto read in t
todo: rockfish needs to be able to enter a shareit sale of raven licenses (all the features like paste in etc), product codes already added
todo: test with local dev rockfish a sale process end to end before moving on to posting it
todo: post rockfish if get to here and all ok
todo: Make sure doesn't fuck up existing testers - test existing version 8.0.3 with new rockfish BEFORE POSTING NEW 8.0.4 at server with new key generator for rockfish??
todo: Make sure doesn't fuck up existing testers - test existing version 8.0.3 with new rockfish BEFORE POSTING NEW 8.0.5 at server with new key generator for rockfish??
todo: if all goes well then post to test server and try both ways again and confirm it's ok
todo: ultimately at the end test as a fake sale right through to licensing so we know it's ready to go!!!! Very important, this is the last thing I need to be dealing with when get in the weeds close to release
@@ -1326,6 +1336,6 @@ https://www.ayanova.com/download/next/ayanova-linux-x64-server.zip
https://www.ayanova.com/download/next/ayanova-windows-x64-lan-setup.exe
Current v8 docs home: https://www.ayanova.com/docs/next
BUILD 8.0.4 CHANGES OF NOTE
BUILD 8.0.5 CHANGES OF NOTE
Subscription / perpetual license code and stuff

View File

@@ -1,6 +1,6 @@
{
"AYANOVA_USE_URLS": "http://*:7575",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DEFAULT_TRANSLATION":"en",
"AYANOVA_DATA_PATH":"%ProgramData%\\ayanova",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\Program Files\\PostgreSQL\\14\\bin",

View File

@@ -1,6 +1,6 @@
{
"AYANOVA_USE_URLS": "http://*:7575",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DEFAULT_TRANSLATION":"en",
"AYANOVA_DATA_PATH":"~/.ayanova-data",
"AYANOVA_LOG_LEVEL": "Info"

View File

@@ -1,6 +1,6 @@
{
"AYANOVA_USE_URLS": "http://*:7575",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;",
"AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;CommandTimeout=300;",
"AYANOVA_DEFAULT_TRANSLATION":"en",
"AYANOVA_DATA_PATH":"/var/ayanova/data/",
"AYANOVA_LOG_LEVEL": "Info"

View File

@@ -1,7 +1,7 @@
; LAN install for internal network use only
#define MyAppName "AyaNova server"
#define MyAppVersion "8.0.4"
#define MyAppVersion "8.0.5"
#define MyAppPublisher "Ground Zero Tech-Works, Inc."
#define MyAppURL "https://ayanova.com/"
#define MyAppLauncherExeName "ayanova-launcher.exe"

View File

@@ -3,7 +3,7 @@
; external to lan requires different config
#define MyAppName "AyaNova"
#define MyAppVersion "8.0.4"
#define MyAppVersion "8.0.5"
#define MyAppPublisher "Ground Zero Tech-Works, Inc."
#define MyAppURL "https://ayanova.com/"
#define MyAppLauncherExeName "ayanova-launcher.exe"

View File

@@ -4,8 +4,8 @@
</PropertyGroup>
<PropertyGroup>
<GenerateFullPaths>true</GenerateFullPaths>
<Version>8.0.4</Version>
<FileVersion>8.0.4.0</FileVersion>
<Version>8.0.5</Version>
<FileVersion>8.0.5.0</FileVersion>
<ApplicationIcon>ayanova.ico</ApplicationIcon>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<noWarn>1591</noWarn>

View File

@@ -1482,7 +1482,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//////////////////////////////////////////////////
//
// 8.0.4 Subscription license trans keys
// 8.0.5 Subscription license trans keys
//
if (currentSchema < 5)
{

View File

@@ -5,7 +5,7 @@ namespace AyaNova.Util
/// </summary>
internal static class AyaNovaVersion
{
public const string VersionString = "8.0.4";
public const string VersionString = "8.0.5";
public const string FullNameAndVersion = "AyaNova server " + VersionString;
public const string CurrentApiVersion="v8";
}//eoc