This commit is contained in:
2
dist/install/windows/x64/lan.iss
vendored
2
dist/install/windows/x64/lan.iss
vendored
@@ -1,7 +1,7 @@
|
||||
; LAN install for internal network use only
|
||||
|
||||
#define MyAppName "AyaNova server"
|
||||
#define MyAppVersion "8.0.35"
|
||||
#define MyAppVersion "8.0.36"
|
||||
#define MyAppPublisher "Ground Zero Tech-Works, Inc."
|
||||
#define MyAppURL "https://ayanova.com/"
|
||||
#define MyAppLauncherExeName "ayanova-launcher.exe"
|
||||
|
||||
2
dist/install/windows/x64/standalone.iss
vendored
2
dist/install/windows/x64/standalone.iss
vendored
@@ -3,7 +3,7 @@
|
||||
; external to lan requires different config
|
||||
|
||||
#define MyAppName "AyaNova"
|
||||
#define MyAppVersion "8.0.35"
|
||||
#define MyAppVersion "8.0.36"
|
||||
#define MyAppPublisher "Ground Zero Tech-Works, Inc."
|
||||
#define MyAppURL "https://ayanova.com/"
|
||||
#define MyAppLauncherExeName "ayanova-launcher.exe"
|
||||
|
||||
@@ -101,7 +101,7 @@ The PostgreSQL utility pg_restore is used to restore the `.backup` file containi
|
||||
The command format is:
|
||||
`pg_restore -U postgres -c [PATH_TO_THE_AYANOVA_BACKUP_FILE_TO_BE_RESTORED.backup]`
|
||||
|
||||
Run the restore command from the console substituting your backup file path in the examples below:
|
||||
Run the restore command from a command prompt substituting your backup file path in the examples below:
|
||||
|
||||
Windows server:
|
||||
|
||||
@@ -116,6 +116,14 @@ Windows self contained "single" user installation:
|
||||
"C:/Program Files/ayanova/local-postgres/bin/pg_restore" -U postgres -c -d AyaNova "C:\temp\db-20211212195504569.backup"
|
||||
```
|
||||
|
||||
Windows Powershell terminal with quoted path:
|
||||
|
||||
Powershell needs an ampersand character at the start of a quoted path to a command to correctly interpret the input as a command:
|
||||
|
||||
```bat
|
||||
& "C:/Program Files/ayanova/local-postgres/bin/pg_restore" -U postgres -c -d AyaNova "C:\temp\db-20211212195504569.backup"
|
||||
```
|
||||
|
||||
Linux server:
|
||||
|
||||
The database backup file must be placed in a location that the 'postgres' user has permission to read from.
|
||||
@@ -141,7 +149,7 @@ Repeat the Linux server installation instruction step [Set ownership and permiss
|
||||
|
||||
AyaNova can be re-started at this point, for server type installations restart through the IIS 'site' in Windows or the Service in Linux.
|
||||
|
||||
If using the desktop single Windows installation, stop the PostgreSQL started in the earlier restore step by typing `ctrl-c` in the PostgreSQL console window then start AyaNova from the desktop launcher as normally.
|
||||
If using the desktop single Windows installation, stop the PostgreSQL started in the earlier restore step by typing `ctrl-c` in the PostgreSQL window then start AyaNova from the desktop launcher as normally.
|
||||
|
||||
### Verify the data
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ theme:
|
||||
site_name: AyaNova manual
|
||||
site_dir: '../../../server/AyaNova/wwwroot/docs'
|
||||
strict: true
|
||||
copyright: Copyright © 2023 Ground Zero Tech-Works Inc. REV-2023-01-27
|
||||
copyright: Copyright © 2023 Ground Zero Tech-Works Inc. REV-2023-02-10
|
||||
extra:
|
||||
generator: false
|
||||
# Extensions
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<GenerateFullPaths>true</GenerateFullPaths>
|
||||
<Version>8.0.35</Version>
|
||||
<FileVersion>8.0.35.0</FileVersion>
|
||||
<Version>8.0.36</Version>
|
||||
<FileVersion>8.0.36.0</FileVersion>
|
||||
<ApplicationIcon>ayanova.ico</ApplicationIcon>
|
||||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||
<noWarn>1591</noWarn>
|
||||
|
||||
@@ -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