Overall, you need to follow the steps detailed in Installing Application Servers. If you're looking to install Aptify just so you have an environment (Desktop, Web, or e-Business) to play around with, it might be easier to download the Community Virtual Machine rather than go through the install process. If interested in trying it out, please contact Aptify Support.
But for a quick checklist, if you're setting up a new Application Server, make sure to follow these steps/verify these items are done. This guide can also be used to setup additional Async services on an existing Application Server. If you're looking to install Aptify Web, e-Business 6, or other items, refer to links in the parent guide: Quick List for Setting up and Troubleshooting Aptify Infrastructure
This process should work with both the stock Aptify Application Server as well as the Consulting-built Async Processor X.
Pre-requisites
Make sure your environment has the following items installed:
- .NET 3.5 framework
- .NET 4.5 framework
- Aptify Desktop client. Make sure to connect the Desktop client to the DB server at least once before proceeding.
You must have the Aptify Object Repository Service running for this to work. That is installed alongside the Aptify Desktop client automatically. If you don't have it (e.g., you copied the Aptify 5.0 folder instead of running through the install) it can easily be added per the below instructions.
Creating the AptifyObjectRepositoryService
This is required only if it does not already exist on your system.
- Make sure your Desktop client can connect to the DB first.
- Then open Command Prompt as an Administrator.
- Copy the below test, right click in Command Prompt and click Paste.
It should create your AptifyObjectRepositoryService for you. Once it's created, go to services.msc and start it.
So create AptifyObjectRepositoryService binPath= "C:\Program Files\Aptify 5.0\Services\Object Repository\AptifyObjectRepositoryService.exe" DisplayName= "Aptify Object Repository Service" start= auto
Aptify Setup
- You'll need to setup an Aptify user to run the App Server.
If you do not have a user already setup for this, you can create a new user or update an existing user to have the proper permissions.
- This user needs to have the Administrators and Application Servers security groups applied. Otherwise, it can use an End User license. Tie this user to an Employee record on the final step of the wizard.
- Navigate to the Application Servers service under the Process Pipeline application. Create a new record.
-
Under Name, you can enter whatever you'd like. Under Server Name, enter the Server Name and specific SQL instance if applicable.
For example, in the below given screenshot, this targets the default instance of the APTIFYDEV server. If I needed to target an instance named SQL2019, I would put APTIFYDEV\SQL2019 as the ServerName.If using the Consulting-built Async Processor X, you will have two additional fields.- Select Process Untargeted Runs if you wish this application server to pick up open jobs
- Enter your choice for ServiceName. It can be "AptifyAsyncProcessor" by default, or, if setting up backup async processes, something like "AptifyAsyncBackup1." Make a note of what you choose as it'll be used later. (Note, it must be unique per server, e,g, you cannot have two services named AptifyAsyncService on the same server, but you could have an AptifyAsyncService on two separate servers)
- On the Account Information tab, enter in the username and password (including domain) of the Aptify User who will be running this Async service. This should either previously have been setup or setup in Instructions 1→4 above.
- On the Account Information tab, enter the Account Name and Account Password (including domain) of the Aptify User who will be running this Async service. This should either previously have been setup or setup in Instructions 1→4 as given above.
- Make a note of the Application Server ID record that was created.
Config File Settings
This process will setup an Async Service target the typical C:\Program Files\Aptify 5.0 folder. Note, you can also have it target other folders which may be preferred to separate the Async Processor's bin folder from the Aptify 5.0 client folder. To do so, just copy the Aptify 5.0 folder to your preferred location and name the folder as you wish. All the config file changes should happen in that new folder.
This process assumes your Aptify 5.0 folder has the AptifyAsyncProcessor.exe.config file. If not, you'll need to download the attachment named "Async Files.zip" from this page, unzip, and place in your Aptify 5.0 folder. Note, there is both an Async Files STOCK.zip and an Async Files CONSULTING.zip, pick the correct one depending on which version of the Application Server you are using. (These should work for both Aptify 6.0 and Aptify 6.1)
You should then have these files in your Aptify 5.0 bin folder:
- AptifyAsyncProcessor.exe
- AptifyAsyncProcessor.exe.config
- AptifyCreateProcessFlowRun.exe
- AptifyCreateProcessFlowRun.exe.config
- Open the AptifyAsyncProcessor.exe.config file. (Typically at C:\Program Files\Aptify 5.0\ but can be different if you setup a separate folder)
- Find the attribute named "Aptify.Framework.LoginServices.AptifyLogin.Server".
- Insert your database server in the value, replacing the "Insert Server Name Here" section.
- Make sure quotations remain surrounding this and other attributes so your database should be like "APTIFYDEV"
- If your database is setup on a different instance than default, make sure to specify the full servername/instance like section 7a under the Aptify setup section.
- Find the attribute named "Aptify.Framework.BusinessLogic.ProcessPipeline.AptifyAsyncProcessor.AptifyApplicationPath.
- Insert your Aptify 5.0 folder path here in the value, replacing the "Insert Aptify Client Application Path Here" section.
- Make sure quotations remain surrounding your DB, like "C:\Program Files\Aptify 5.0")
- If you are setting up your Application Server under a different folder, enter it here, e,g, "E:\Apps\AptifyAsync"
- Find the attribute named "Aptify.Framework.BusinessLogic.ProcessPipeline.AptifyAsyncProcessor.ApplicationServerID".
- Insert your Application Server ID in the value (created in the previous section) replacing the "Insert Application ID Here" section.
- Save and close the config file.
Aptify Consulting Async X-processor specific config settings
There are a few other attributes in the AptifyAsyncProcessor.exe.config file for the Consulting-built Async service.
- Find the attribute named "Aptify.Framework.BusinessLogic.ProcessPipeline.AptifyAsyncProcessor.ServiceName".
- Insert your service name in the value, replacing the "AptifyAsyncProcessor" value if not applicable.
- Find the attribute named "Aptify.Framework.BusinessLogic.ProcessPipeline.AptifyAsyncProcessor.ServiceDisplayName".
- You can enter whatever you'd like here as the display name of the Windows service, you will re-use this later. Insert your service name in the value, replacing the "Aptify Asynchronous Processor X 1" value if not applicable.
- Find the attribute named "Aptify.Framework.BusinessLogic.ProcessPipeline.AptifyAsyncProcessor.GetAttributeValuesFromAptify".
- This is set to 0 by default, meaning most values like ApplicationServerID, ProcessUntargettedRuns, etc will be taken from the config file rather than what's in Aptify. This should be left as is, or changed to 1 if you'd prefer to have Aptify manage these config settings.
Windows Service Creation
Once these items have been set up, there's a simple way to create your Aptify Async Windows service.
- Run Command Prompt as a Windows Administrator.
- Copy and paste this value to somewhere on your local machine, e,g, a new tab of a browser.
-
sc create AptifyAsyncProcessor binPath= "C:\Program Files\Aptify 5.0\AptifyAsyncProcessor.exe" DisplayName= "Aptify 5.0 Asynchronous Processor" start= auto
- When run in Command Prompt, this will generate your Async service. First, verify the values are correct per below.
-
- The construct of this is sc create YourServiceName binPath= "LocationOfYourAptifyAsyncProcessor.exe file" DisplayName= "YourDisplayName" start=auto
- Make the following changes to that text, if applicable.
- For example, if I want to create an Async Service with a different service name for the Consulting Async Service, my text might be:
- sc create AptifyAsyncBackupProcessor binPath= "C:\Program Files\Aptify 5.0\AptifyAsyncProcessor.exe" DisplayName= "Aptify Backup Asynchronous Processor" start= auto
- You'd then need to make sure your config file and Aptify Application Server record have the ServiceName of AptifyAsyncBackupProcessor and in the config file, appropriate Display Name
- If I wanted to create an Async Service running off a different Aptify 5.0 folder, my text might be:
- sc create AptifyAsyncProcessor binPath= "E:\Apps\AptifyAsync\AptifyAsyncProcessor.exe" DisplayName= "Aptify 5.0 Asynchronous Processor" start= auto
- sc create AptifyAsyncProcessor binPath= "E:\Apps\AptifyAsync\AptifyAsyncProcessor.exe" DisplayName= "Aptify 5.0 Asynchronous Processor" start= auto
- For example, if I want to create an Async Service with a different service name for the Consulting Async Service, my text might be:
- Once you have the right text, copy it.
- Right-click and paste it into the Administrator Command Prompt, it should quickly say Success. It will have created your Windows Service here:
- Now we need to set up the Async Processor to use the right user. Type Services.msc into the Windows Start Menu. Then double click the Aptify 5.0 Asynchronous Processor (or whatever yours is named).
- Under the Logon tab, change it from Local System account to This Account and specify the username/password for the Aptify user account that runs the app server. This should be the same values that are on the Application Server Account Information tab.
- On the Recovery Tab, you can specify optional actions if the service fails. At the minimum, it's recommended to setup Restart for the First and second failure.
- Click Apply and OK.
- Right-click the Async Service and click start. (By default, it'll start up with the server in the future) If it starts, great.
- If it's having trouble logging into the database or executing certain files, it may immediately stop after starting. Check the Event Viewer on the Application Server for more details as well as the Event Viewer on the database server.
- The most common issue is usually the Aptify 5.0 folder running the Async service is out of sync with the Object Repository. Try performing a full object repository sync on the folder and logging in to confirm the Desktop client is functional.
- If using the Consulting version, double check the Aptify ApplicationServer ServiceName, the config file service name, and the service name in services.msc to confirm all 3 matches.
- If you need to delete your Windows Service to try and setup a different one, in an Administrator Command Prompt you can enter sc delete YourServiceName.
- The most common issue is usually the Aptify 5.0 folder running the Async service is out of sync with the Object Repository. Try performing a full object repository sync on the folder and logging in to confirm the Desktop client is functional.
Comments
Please sign in to leave a comment.