Install Cityworks
This section includes the steps necessary to install a new Cityworks site. The 23.x site needs to be installed first, then the Office Companion site can be installed. See the Introducing the New Cityworks Platform webinar that discusses other implementations of Cityworks 23.x beyond running both a Cityworks 23.x and Office Companion 23.x site.
NOTE: If you must do a manual installation, you can find the install file at ...\Users\<user>\AppData\Local\Temp\2\Cityworks.Server.Installer.
|
- Navigate to where the Cityworks installer is located.
- Right-click the installer and select Run as Administrator to launch the installer.
The installer automatically checks to make sure all the prerequisites are installed. If an application is missing, the installer will display a message instructing you to install the needed prerequisites.
If all prerequisites are properly installed, two green check marks appear.
- Click Next.
The installer includes the following function:
- Install: This option is used when first creating a Cityworks site.
- Click Next.
- Select a Web Site under which the site will be installed. In this case, select Default Web Site.
- Give the site an Alias and define the physical path where the Cityworks files will be stored if the path is different from the default specified in Install Location.
IMPORTANT: The Alias must be different from the Office Companion Alias so that each site can be accessed separately, even though they are using the same database.
- Click Next.
The user data location can be set to Default, or you can enter a custom path that Cityworks will publish user data to.
- Select either Default or Custom. If you selected Custom, enter the Data Location.
- Click Next.
Key files encrypt data to provide greater security.
- The Key File Location automatically populates. Edit the location if desired.
Once the installer is done running, the key file will be generated and saved at this location.
IMPORTANT: Once the key file is created, copy the key file and back it up in a secure location. If a server is destroyed and only one copy of the key file exists on that server, the encrypted data will be lost. The password must also be retained. If the password is lost, the encrypted data cannot be accessed.
- Enter a Key File Password and Confirm Password. The password must be at least eight characters long.
- Click Next.
- Enter the Scheme. The default is https.
- Enter the Host.
- Enter the Port, if desired.
The Path is automatically populated with the Alias.
- Select Enable Windows Authentication to set the site to use Windows Authentication and to make the corresponding changes in the app-settings.yaml file.
IMPORTANT: Starting in 23, Cityworks handles Windows Authentication completely in the app and does not use IIS to handle Windows Authentication. The following settings need to be configured manually in IIS Manager to support this. Anonymous Authentication should be set to Enabled and Windows Authentication should be set to Disabled.
- Select the Timezone. The time zone can also be set in the app-settings.yaml file using the general.timezone key. See Appendix 1: Time Zone Values for more information.
- Select either SQL Server or Oracle for the Cityworks database.
- Select Custom Connection String to enter the connection string manually, if desired.
- Enter the Server instance that the database resides on.
- Enter the Database name.
- Enter the user you want Cityworks to utilize in the Azteca User field.
NOTE: If desired, the CWDB_USER, or your own user mapped to the CWDB_USER_ROLE, can be used instead of the azteca user. The CWDB_USER runs the application and all the plugins, but has less permissions than the azteca user. After entering the user and password here, map the CWDB_USER_ROLE to the user and enter azteca as the Default Schema.
- Enter the Azteca Password.
- Click Next.
There are two options for activating your license key: Online or Offline. Online is the preferred method, while Offline is only used in rare cases when a site is unable to reach the authorization servers that Azteca Systems uses. Please note that this is usually caused by a proxy server being involved with internet access at the site. See Offline Activation for more information.
- Select Online to activate the license key.
- Enter the License Key number.
- Click Activate. It is important to do this step to avoid issues when installing the site.
- When the license information has been retrieved and a success message displays, click Next.
- Verify that the site information is correct in the Review section and click Save.
NOTE: If the Alias includes any underscores, the first underscore will display as removed in the Install Directory filepath. This is merely a display issue with the underlying Microsoft label control and will not affect the installation process. The installer will run correctly and the site will be named as stated in the Alias and will be installed in the correct filepath.
You will be asked if you want to proceed.
- Click Yes.
A box with a status bar displays while the virtual application is created. This could take several minutes.
- Click OK.
NOTE: At this point, the site folders have been created under the alias and site location specified in the installer. These include the WebSite, cw-site, cw-site-data, DataMigrationManager, PluginManagerCli, and DatabaseManager folders.
Database Manager opens if .Net Framework 4.8 or newer is installed. If not, a message will display telling you to open and run Database Manager.
TIP: If you need to manually open Database Manager, it can be accessed under ...\inetpub\wwwroot\<site_name>\DatabaseManager\Cityworks.DatabaseManager.exe or from the Cityworks 23 download file that you downloaded from MyCityworks.
- Select either SQL Server or Oracle.
- Enter the Azteca user's password in the first text box.
- Select the server instance and Cityworks database from the drop-down lists.
- Click Login.
The Database Manager screen shows the progress while it checks the CWVERSION and migration history tables. Click Log to open or close the log. When the log is open, there are three options: Clear the contents of the log, Copy the log’s contents to clipboard, or Save the log’s contents.
Click the arrow next to Advanced Options for the following options:
- Verify Database: This option verifies the structure of the Cityworks database and identifies any errors. The errors are displayed in the log, followed by a list of SQL scripts that can be run to correct the errors.
- Check Database Version: This option checks the Cityworks database version.
- Configure CWDBAs: This option allows for the configuration of Cityworks Database Administrator (CWDBA) users. A CWDBA is created during the installation of the Cityworks database. These users will have access to the Admins and Domains options in Designer via the home page or General tab.
- Generate SQL: This option generates SQL syntax for the update. The syntax could be copied and ran directly against the Cityworks database outside of Database Manager.
- Disconnect: This option disconnects from the Cityworks database.
IMPORTANT: The red Database is not up-to-date message might not appear under certain circumstances, such as when upgrading from one service pack to another of the same version (for example, 23 to 23.1). Even if it does not appear, you still need to complete the following steps to update the database.
- The Update Default Data check box is selected by default. If left selected, Database Manager will check the default data in each of the tables listed below and update the data if it does not match the default values. Check the default behavior for these tables. If you have modified any of the default data in these tables and feel like those changes could be altered based on this information, you should clear the Update Default Data check box before proceeding. Ask our support department for more information.
- Data in these tables will always insert new or missing, and update existing records:
- azteca.CODEDESCFIELD
- azteca.DESCSCOREFIELD
- azteca.DEPOSIT_TYPE
- azteca.DISTRESSCODE
- azteca.EMPRELTABLEFIELD
- azteca.FEATURE_CONSOLE
- azteca.FEE_TYPE
- azteca.FLAG_SEVERITY
- azteca.FUNCTIONS_LEVELS
- azteca.INSPECTIONTYPE
- azteca.REPORTCATEGORY
- azteca.SOURCETABLEFIELD
- azteca.SYSTEM_STATUS
- azteca.SYSTEM_TABLES
- azteca.TASK_TYPE
- Specific codes involved with our Paver integration will also be updated like this.
- Data in these tables will only insert new or missing records:
- azteca.AUDIT_TRACE
- azteca.FUNCTIONS
- azteca.PWCODE
- azteca.PWCODETYPE
- azteca.QUERYFIELDCONFIGURATION
- azteca.SYSTEM_TABLES_COLUMNS
- Data in these tables is only insert if the table is empty:
- azteca.CCTVSCORE
- azteca.PWCONDSCORE
- azteca.PWUNIT
- azteca.TABLEFIELDMAP
- Click Update to V2023XXXX. You must do this step, regardless of which version of Cityworks you are upgrading from and to.
Once the six steps have been successfully completed, users will receive a message indicating that the database was successfully updated. If not, the log will show where any issues were encountered.
- Click Verify Database, found under Advanced Options, to identify any additional schema changes that need to be made. If there are any errors in the log after verifying the database, you can fix them by running the SQL scripts provided at the bottom of the log. For more information, see Knowledge Base article 11674: Upgrade Existing Cityworks Databases.