Upgrading system with a new GN4 update

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:35

Each now and then Miles 33 releases GN4 updates. See About GN4 updates and GN4 updates summary.

To get bug fixes, you need to update the GN4 system with the latest update.

The upgrading steps depend on the system layout, and on displacement of GN4 folders.

This topic assumes that there are more IIS servers, one Exalead server, one Back4 server and ClickOnce deploying set up; the server's OS is 64-bit, but the ClickOnce deployment is 32-bit. Your system may have a different layout and different steps may be needed.

Follow the specified order of operations.

Note: if you often update your system with the daily versions, and want to automate the installation of patches, you may want to use custom batch files, downloaders and unzippers. An example of a good scriptable downloader is NCFTP client while a 7z unzipper has a good command line.

More generic information are in Upgrade GN4 server and in Upgrade GN4 clients. See also Command file for IIS server upgrade with ClickOnce regeneration.

Upgrading steps

The following steps ASSUME YOU ALREADY DID THE SUCCESSFUL UPGRADE OF THE TEST SYSTEM! If you did not try to upgrade a test system first, do it before proceeding here!

Step

Comments



Create a test bed server to test the upgrade before installing it on the production servers. It can be a GN4 server clone (optionally require a temporary license).

Use a Windows 10 or Windows 7/8 laptop with SQL Express for such testing.

Install all required prerequisites. Look at the Download GN4 files and prerequisites chapter to find the files and prerequisites.

This step is optional, but highly recommended.

In a temporary folder, download new applications, system and custom add-ins.


Expand the applications and system add-ins in appropriate folders on the test bed.


Expand the standard custom add-ins in a temporary set of folders.

This is to avoid overwriting of your custom add-ins

Compare standard custom add-ins with your custom add-ins, and make sure that all the Imports correspond.

Do other changes if needed.


Attempt to compile add-ins.


OPTIONAL STEP

Turn on the Option Strict for the custom add-ins projects and then recompile.

If there are errors, fix them before proceeding. See Add-ins and upgrades for further info.

This protects you again bad surprises during production.

The Strict option will catch many errors during compile time.

Compare your custom workflows, XSLs and other configurations with the standard ones, understand the differences and make necessary changes.

This applies especially on the data import and export.

Compare your schema with the standard one and merge yours with the standard one.


Compare your Editorial_UpdateConfig with the standard Editorial_InstallConfig and merge changes

DO NOT ADD THE DATA IMPORT SECTION of the standard Editorial_InstallConfig to your Editorial_UpdateConfig.


Perform the system upgrade, using the merged Editorial_UpdateConfig.

Do not use the EDITORIAL_INSTALLCONFIG for an upgrade. It will wipe out your custom items!

Perform the thorough test of the basic functionalities on the test system, especially and at least:

Create a new edition from template.

Import ads to new edition.

Merge wires to an article, one wire for each special type you normally use (plain text wire, sport table, TV program, stock exchange), etc.

Publish an article to Web (if applies).

Create a sample page in Fred using the usual page designer steps and check everything works.

Print to PDF.

Perform final printing and make sure that the naming convention of the output files is still ok.

Test all your custom scripts, e.g. page jump scripts etc, to make sure they still work as before.

Add more tests here related to the main operations in your system

When all previous is done and ok, you're ready to upgrade the production system to the new build.


Click to toggle expandMake sure that you understood all breaking changes
Click to toggle expandDownload system updates and install all prerequisites
Click to toggle expandMerge your customized files with the system files
Click to toggle expandDeploy system update files on all servers
Click to toggle expandExtract 32-bit and 64-bit system files to the folders where you compile add-ins
Click to toggle expandExtract system add-ins files to the folder where you keep add-ins sources
Click to toggle expandCopy your custom add-ins files to the folder where you keep add-ins sources
Click to toggle expandCompile add-ins
Click to toggle expandCopy folder with compiled add-ins and executables in the ClickOnce generator source folder

FROM THIS STEP YOU NEED TO LOG OUT ALL USERS FROM THE SYSTEM!

Click to toggle expandStop IIS servers
Click to toggle expandStop BACK4 servers
Click to toggle expandUpgrade the system to the new version running a procedure prepared in advance
Click to toggle expandGenerate updated ClickOnce package on the server with ClickOnce generator
Click to toggle expandDeploy updated ClickOnce package on all IIS servers
Click to toggle expandExtract Web server files on all IIS servers
Click to toggle expandExtract GN4 files on all IIS servers and on BACK4 server
Click to toggle expandRe-register COM files on all IIS servers and on BACK4 servers
Click to toggle expandRebuild GAC files on all IIS servers
Click to toggle expandStart IIS servers
Click to toggle expandStart BACK4 servers
Click to toggle expandLoad add-ins in database

INFORM ALL USERS THAT THEY CAN LOG ON TO THE SYSTEM.

Click to toggle expandExample