Skip to Content

Auto Start HTTPS Workaround

Overview

In order to work around the HTTPS restriction in IIS Auto Initialization, we recommend setting up a scheduled task in windows that pings Vinyl every 5 minutes. A script is provided in the install folder inside the Scripts directory. Alternatively, the scheduled task can be created manually.

Option 1: Create Scheduled Task Manually

First open up the Windows Task Scheduler:

Image 2018 1 3 15 42 21

Create a folder called Jitterbit

Image 2018 1 3 15 44 42

Select the Jitterbit folder and click the Create Task button in the right panel. Fill out the General tab as follows:

Image 2018 1 3 15 52 21

Add a trigger to run every 5 minutes. This trigger will ping Vinyl every 5 minutes to ensure that if the application has shutdown, it will start back up. This interval can be smaller if required.

Image 2018 1 3 15 54 25

Next, specify the action that will be taken every N minutes.

Image 2018 1 3 15 58 32

The program to run is: "powershell"

The arguments are:

-File Path\To\PingVinyl.ps1 -VinylRootUrl http(s)://HostName/VinylAppName/ -LogFile Path\To\LogResults

After each ping, the result will be logged in the LogFile path. This parameter is optional and should only be used for debugging.

Examples of host names:

  • https://localhost/
  • https://localhost/vinyl/
  • https://someserver.com/vinyl/

The VinylRootUrl can be pasted into a browser on the server and tested. If Vinyl appears, the url is good. If an error occurs, then the url is invalid.

The File path for the PingVinyl.ps1 script is inside the Vinyl installation folder. Typically this is:

C:\inetpub\www\Vinyl\Scripts\PingVinyl.ps1

Notice that the quotation marks are required for each of the 3 parameters. Following is an example argument that would be used for the action:

-File C:\inetpub\www\Vinyl\Scripts\PingVinyl.ps1 -VinylRootUrl https://localhost/Vinyl -LogFile ""

(no logging will be performed in the above example)

Save your new task:

Image 2018 1 3 16 8 30

To confirm that the task is working, use the Test Always Running Behavior instructions. However, allow up to N minutes for Vinyl to start back up after shutting down (where N is the frequency specified on the trigger tab).

Option 2: Create Scheduled Task with a Vinyl Script

Locate the Scripts folder inside the Vinyl installation directory. Right-click on the CreateScheduledTaskToPingVinyl.bat file and choose "Run as Administrator".

Image 2018 1 3 16 16 31

Enter a valid Root Url. Examples of Root Urls would be:

  • https://localhost/
  • https://localhost/vinyl/
  • https://someserver.com/vinyl/

The url can be pasted into a browser on the server and tested. If Vinyl appears, the url is good. If an error occurs, then the url is invalid. Note that you should not include any quotation marks when providing the URL.

Upon typing the URL, press enter. Click enter again to skip logging. Logging should only be necessary if ping operation is for some reason unsuccessful. In which case, go back through these steps, and choose to log.

Image 2018 1 3 16 20 17

The script will attempt to ping the address provided. If it is successful, it will then attempt to store a scheduled task inside the Windows Task Scheduler. Open up the Task Scheduler and locate the Jitterbit folder to ensure the task was created.

Image 2018 1 3 16 8 30

Every 5 minutes, this task will ping Vinyl. If the application shuts down for some reason, such as a server reboot, the ping will cause Vinyl to start up.

To confirm that the task is working, use the Test Always Running Behavior instructions. However, allow up to 5 minutes for Vinyl to start back up after shutting down the web server.