Difference between revisions of "Upgrade ACP to a new release"

Line 73: Line 73:
 
* Press the output node Required alterations
 
* Press the output node Required alterations
 
* Look at the result for  number of alterations to be applied. If more than 0 press the button Apply Alterations. Once you get a message the the alterations have been applied, of If no alterations need to be applied just close the model.
 
* Look at the result for  number of alterations to be applied. If more than 0 press the button Apply Alterations. Once you get a message the the alterations have been applied, of If no alterations need to be applied just close the model.
 +
 +
===Add a Subscription Administrator===
 +
If you have not added a Subscription administrator, this one time update needs to be performed. This feature was introduced in ACP beta build 0.41. Starting in build 0.41, only subscription administrators can add or delete projects. See more on his page [[ACP_Group_Accounts|ACP Group accounts]].
 +
*If you do not have a subscription administrator , perform these steps.
 +
**Copy the latest version of
 +
 +
<code>d:\acp\ui\assets\suan account admin.ana</code><br />
 +
 +
and
 +
 +
<code>d:\acp\ui\assets\db driver info.ana</code><br />
 +
 +
to:<br />
 +
<code>d:\acp\accounts\suan account admin.ana</code><br />
 +
 +
and
 +
 +
<code>d:\acp\accounts\db driver info.ana</code><br />
 +
 +
(overwrite any existing files).
 +
**In a command prompt
 +
<code>cd c:\"Program Files\Lumina\Analytica 6.0"</code><br />
 +
<code>.\suan.exe /config:d:\acp\ui\assets\singleinstance.config "d:\acp\accounts\suan account admin.ana"</code><br />
 +
 +
When prompted to create a subscription administrator, click yes.
 +
 +
**Open the module Manage existing Group subscription.
 +
***In the pulldown menu for Subscription Admin, ensure that at least one user is selected as the subscription admin.
 +
***Close the suan account admin.ana model for now.
 +
'''Expected: You should have a subscription manager for the Group account on your server, the user(s) whose email address you entered'''
 +
**Notify the Subscription Administrator. They can add or delete projects, and manage other subscription administrators by using the Subscription Administration project. See more on the ACP Group accounts page [[ACP_Group_Accounts|here]].
  
 
=== Restart Apache ===
 
=== Restart Apache ===

Revision as of 00:01, 16 November 2021

Activate a new license for ACP3

If you are just activating a new subscription license for ACP3 then you can skip the downloading and installing. But you need to ensure that the database user can use the new license. The easiest way will normally be to launch Analytica as that user in a command prompt.

In a non admin command prompt cd to your Analytica install folder.

  • CD "C:\Program Files\Lumina\Analytica 6.0"

Launch Desktop Analytica...

  • .\Analytica

Activate your new license - you can refer to this page License Information dialog

  • In the Help menu, select Update license and enter the license - Activation key you received from Lumina into the license field and press Enter.

Now Activate this license for your database user - substitute the user name on your server for ACPUser if necessary.

  • RunAs /user:ACPUser .\Analytica
  • When prompted, enter the password for ACPUser
  • When Analytica launches, accept the terms and select the license in Desktop Analytica's Help->Update License dialog.
  • Test that it saves this info by exiting and restarting, again as ACPUser, and checking the Help-Update License dialog.
  • Now restart and test the Suan.exe application - see the sections below

Install/upgrade to a newer build of ACP3

Download and install the Analytica installer

  • Download the Analytica release appropriate for your new ACP release, currently https://downloads.analytica.com/ANA/AnaSetup6_0_10.exe
  • Install this Analytica release build. Install to the default folder. Use your existing ACP3 or ACP3 w/optimizer license.
  • Now you need to ensure your database user can use the Analytica license - In a non admin CMD prompt:
    CD "C:\Program Files\Lumina\Analytica 6.0"
    RunAs /user:ACPUser .\Analytica
  • When prompted, enter the password for ACPUser
  • When Analytica launches, accept the terms and select the license in Desktop Analytica's Help->Update License dialog
  • Test that it saves this info by exiting and restarting, again as ACPUser, and checking the Help-Update License dialog.

Download files to be updated and copy them to your ACP installation

  • Download this Zip Archive, and extract it to a folder on your computer. ACP3_0.zip

Save files to the Analytica folder

  • These files (from the archive extracted in the previous sections) need to be saved to C:\Program Files\Lumina\Analytica 6.0 Overwrite the existing files with the same name.
  1. Analytica.ini
  2. suan.exe
  3. libssl-3.dll
  4. libcrypto-3.dll
  5. SuanFirebaseAuth

Before proceeding with the next step, you will need to stop the current Suan.exe process in the task manager (if it is running), so that you can overwrite it with the new version.

  • Save these files to C:\Program Files\Lumina\Analytica 6.0 (When prompted click yes to replace existing files)

Save files to the UI folder

  • The rest of the files from the extracted archive, in folders assets and build, need to saved to the ACP\ui folder
  • Save these folders to D:\ACP\ui\. Replace the existing folders.
    .
  1. Assets
  2. Build

Test this part

    • In the config files D:\Acp\ui\Assets Session.config and Server.config, in a text editor, temporarily set DesktopUI=1. Save the files.
    • In a non-admin CMD prompt:
      CD "c:\program files\lumina\Analytica 6.0"
      .\Suan.exe /config:d:\Acp\ui\assets\server.config
      Expected: An Analytica desktop instance should launch with an architecture drawing. It should stick around and not vanish.
    • In Chrome: http://localhost:8080
      Expected: Login page should appear
  • Once this test succeeds:
    • Quit all Desktop Analytica instances
    • Edit both Server.config and Session.config and set:
      DesktopUI=0

Make any updates to the database

  • Run: Analytica.exe "d:\Acp\ui\assets\Database alterations.ana"
  • In the text input Updating from release number enter your release you are updating from eg. 0.22
  • In the text input Updating to release number enter your release you are updating to eg. 0.34
  • Press the output node Required alterations
  • Look at the result for number of alterations to be applied. If more than 0 press the button Apply Alterations. Once you get a message the the alterations have been applied, of If no alterations need to be applied just close the model.

Add a Subscription Administrator

If you have not added a Subscription administrator, this one time update needs to be performed. This feature was introduced in ACP beta build 0.41. Starting in build 0.41, only subscription administrators can add or delete projects. See more on his page ACP Group accounts.

  • If you do not have a subscription administrator , perform these steps.
    • Copy the latest version of

d:\acp\ui\assets\suan account admin.ana

and

d:\acp\ui\assets\db driver info.ana

to:
d:\acp\accounts\suan account admin.ana

and

d:\acp\accounts\db driver info.ana

(overwrite any existing files).

    • In a command prompt

cd c:\"Program Files\Lumina\Analytica 6.0"
.\suan.exe /config:d:\acp\ui\assets\singleinstance.config "d:\acp\accounts\suan account admin.ana"

When prompted to create a subscription administrator, click yes.

    • Open the module Manage existing Group subscription.
      • In the pulldown menu for Subscription Admin, ensure that at least one user is selected as the subscription admin.
      • Close the suan account admin.ana model for now.

Expected: You should have a subscription manager for the Group account on your server, the user(s) whose email address you entered

    • Notify the Subscription Administrator. They can add or delete projects, and manage other subscription administrators by using the Subscription Administration project. See more on the ACP Group accounts page here.

Restart Apache

In an elevated command prompt: C:\Apache24\bin>httpd.exe -k restart

Restart the Suan.exe

  • Launch task scheduler
  • Select your scheduled task to launch acp at boot
  • End all instances
  • Run the task

Now you should have suan.exe running in task manager. If not there is something wrong with the configuration.

Test

Browse to your ACP instance and check to see that you can get to the user portal and log in.

Comments


You are not allowed to post comments.